X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Flib%2Fsystem_stm32f4xx.c;h=51aaba1b8838993a3372f3ec422a4d218983f66e;hp=0ffcea09b012c3e10e016f3551b11b4588e95f8c;hb=f244df1b2d3010548ed2cceabdde44f36089a29a;hpb=b58937eb83447c1c3d073ed6343f5ac062f9f969 diff --git a/firmware/lib/system_stm32f4xx.c b/firmware/lib/system_stm32f4xx.c index 0ffcea0..51aaba1 100644 --- a/firmware/lib/system_stm32f4xx.c +++ b/firmware/lib/system_stm32f4xx.c @@ -176,7 +176,8 @@ uint32_t SystemCoreClock = 168000000; - __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; +//__I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; +__attribute__ ((section (".text"))) uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; /** * @} @@ -208,6 +209,8 @@ static void SetSysClock(void); */ void SystemInit(void) { + SystemCoreClock = 168000000; //In case global variables aren't initted. + /* Reset the RCC clock configuration to the default reset state ------------*/ /* Set HSION bit */ RCC->CR |= (uint32_t)0x00000001;