131131 is no need to call the 2 first functions listed above, since SystemCoreClock
132132 variable is updated automatically.
133133 */
134- uint32_t SystemCoreClock = 16000000 ;
134+ uint32_t SystemCoreClock = 8000000 ;
135135
136136const uint8_t AHBPrescTable [16U ] = {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 2 , 3 , 4 , 6 , 7 , 8 , 9 };
137137const uint8_t APBPrescTable [8U ] = {0 , 0 , 0 , 0 , 1 , 2 , 3 , 4 };
@@ -202,7 +202,7 @@ void SystemInit (void)
202202 RCC -> CIR = 0x009F0000U ;
203203
204204 /* Reset CFGR2 register */
205- RCC -> CFGR2 = 0x00000000U ;
205+ RCC -> CFGR2 = 0x00000000U ;
206206#else
207207 /* Disable all interrupts and clear pending bits */
208208 RCC -> CIR = 0x009F0000U ;
@@ -317,7 +317,7 @@ void SystemCoreClockUpdate (void)
317317 }
318318 else
319319 { /* PLL multiplication factor = PLL input clock * 6.5 */
320- pllmull = 13U / 2U ;
320+ pllmull = 13U / 2U ;
321321 }
322322
323323 if (pllsource == 0x00U )
@@ -342,7 +342,7 @@ void SystemCoreClockUpdate (void)
342342
343343 /* Get PREDIV2 division factor and PLL2 multiplication factor */
344344 prediv2factor = ((RCC -> CFGR2 & RCC_CFGR2_PREDIV2 ) >> 4U ) + 1U ;
345- pll2mull = ((RCC -> CFGR2 & RCC_CFGR2_PLL2MUL ) >> 8U ) + 2U ;
345+ pll2mull = ((RCC -> CFGR2 & RCC_CFGR2_PLL2MUL ) >> 8U ) + 2U ;
346346 SystemCoreClock = (((HSE_VALUE / prediv2factor ) * pll2mull ) / prediv1factor ) * pllmull ;
347347 }
348348 }
@@ -404,16 +404,16 @@ void SystemInit_ExtMemCtl(void)
404404/*---------------- NE3 configuration ----------------------------------------*/
405405/*---------------- NBL0, NBL1 configuration ---------------------------------*/
406406
407- GPIOD -> CRL = 0x44BB44BBU ;
407+ GPIOD -> CRL = 0x44BB44BBU ;
408408 GPIOD -> CRH = 0xBBBBBBBBU ;
409409
410- GPIOE -> CRL = 0xB44444BBU ;
410+ GPIOE -> CRL = 0xB44444BBU ;
411411 GPIOE -> CRH = 0xBBBBBBBBU ;
412412
413- GPIOF -> CRL = 0x44BBBBBBU ;
413+ GPIOF -> CRL = 0x44BBBBBBU ;
414414 GPIOF -> CRH = 0xBBBB4444U ;
415415
416- GPIOG -> CRL = 0x44BBBBBBU ;
416+ GPIOG -> CRL = 0x44BBBBBBU ;
417417 GPIOG -> CRH = 0x444B4B44U ;
418418
419419/*---------------- FSMC Configuration ---------------------------------------*/
0 commit comments