[NUCLEO_F302R8] Move back SetSysClock() call in SystemInit()

The serial_init() function is called before the mbed_sdk_init() (I don't
know why?) and this causes an incorrect baudrate calculation.
pull/272/head
bcostm 2014-04-23 09:53:35 +02:00
parent 3aa9e58c88
commit 6abba68998
2 changed files with 4 additions and 4 deletions

View File

@ -212,6 +212,10 @@ void SystemInit(void)
#else
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
#endif
/* Configure the System clock source, PLL Multiplier and Divider factors,
AHB/APBx prescalers and Flash settings */
SetSysClock();
}
/**

View File

@ -29,10 +29,6 @@
// This function is called after RAM initialization and before main.
void mbed_sdk_init() {
/* Configure the System clock source, PLL Multiplier and Divider factors,
AHB/APBx prescalers and Flash settings */
SetSysClock();
// Update the SystemCoreClock variable.
SystemCoreClockUpdate();
}