cpu/stm32f1: remove unnecessary line
This commit is contained in:
parent
787d255ccd
commit
163d1634a7
@ -111,7 +111,6 @@ static void clk_init(void)
|
|||||||
/* PCLK1 = HCLK */
|
/* PCLK1 = HCLK */
|
||||||
RCC->CFGR |= (uint32_t)CLOCK_APB1_DIV;
|
RCC->CFGR |= (uint32_t)CLOCK_APB1_DIV;
|
||||||
/* PLL configuration: PLLCLK = CLOCK_SOURCE / PLL_DIV * PLL_MUL */
|
/* PLL configuration: PLLCLK = CLOCK_SOURCE / PLL_DIV * PLL_MUL */
|
||||||
RCC->CFGR &= ~((uint32_t)(RCC_CFGR_PLLSRC | RCC_CFGR_PLLXTPRE | RCC_CFGR_PLLMULL));
|
|
||||||
RCC->CFGR |= (uint32_t)(CLOCK_PLL_SOURCE | CLOCK_PLL_DIVMSK | ((CLOCK_PLL_MUL - 2) << 18));
|
RCC->CFGR |= (uint32_t)(CLOCK_PLL_SOURCE | CLOCK_PLL_DIVMSK | ((CLOCK_PLL_MUL - 2) << 18));
|
||||||
/* Enable PLL */
|
/* Enable PLL */
|
||||||
RCC->CR |= RCC_CR_PLLON;
|
RCC->CR |= RCC_CR_PLLON;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user