131
131
is no need to call the 2 first functions listed above, since SystemCoreClock
132
132
variable is updated automatically.
133
133
*/
134
- uint32_t SystemCoreClock = 16000000 ;
134
+ uint32_t SystemCoreClock = 8000000 ;
135
135
136
136
const uint8_t AHBPrescTable [16U ] = {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 2 , 3 , 4 , 6 , 7 , 8 , 9 };
137
137
const uint8_t APBPrescTable [8U ] = {0 , 0 , 0 , 0 , 1 , 2 , 3 , 4 };
@@ -202,7 +202,7 @@ void SystemInit (void)
202
202
RCC -> CIR = 0x009F0000U ;
203
203
204
204
/* Reset CFGR2 register */
205
- RCC -> CFGR2 = 0x00000000U ;
205
+ RCC -> CFGR2 = 0x00000000U ;
206
206
#else
207
207
/* Disable all interrupts and clear pending bits */
208
208
RCC -> CIR = 0x009F0000U ;
@@ -317,7 +317,7 @@ void SystemCoreClockUpdate (void)
317
317
}
318
318
else
319
319
{ /* PLL multiplication factor = PLL input clock * 6.5 */
320
- pllmull = 13U / 2U ;
320
+ pllmull = 13U / 2U ;
321
321
}
322
322
323
323
if (pllsource == 0x00U )
@@ -342,7 +342,7 @@ void SystemCoreClockUpdate (void)
342
342
343
343
/* Get PREDIV2 division factor and PLL2 multiplication factor */
344
344
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 ;
346
346
SystemCoreClock = (((HSE_VALUE / prediv2factor ) * pll2mull ) / prediv1factor ) * pllmull ;
347
347
}
348
348
}
@@ -404,16 +404,16 @@ void SystemInit_ExtMemCtl(void)
404
404
/*---------------- NE3 configuration ----------------------------------------*/
405
405
/*---------------- NBL0, NBL1 configuration ---------------------------------*/
406
406
407
- GPIOD -> CRL = 0x44BB44BBU ;
407
+ GPIOD -> CRL = 0x44BB44BBU ;
408
408
GPIOD -> CRH = 0xBBBBBBBBU ;
409
409
410
- GPIOE -> CRL = 0xB44444BBU ;
410
+ GPIOE -> CRL = 0xB44444BBU ;
411
411
GPIOE -> CRH = 0xBBBBBBBBU ;
412
412
413
- GPIOF -> CRL = 0x44BBBBBBU ;
413
+ GPIOF -> CRL = 0x44BBBBBBU ;
414
414
GPIOF -> CRH = 0xBBBB4444U ;
415
415
416
- GPIOG -> CRL = 0x44BBBBBBU ;
416
+ GPIOG -> CRL = 0x44BBBBBBU ;
417
417
GPIOG -> CRH = 0x444B4B44U ;
418
418
419
419
/*---------------- FSMC Configuration ---------------------------------------*/
0 commit comments