stm32/system_stm32: Make SystemClock_Config() a weak symbol.

This allows boards to override as needed.
This commit is contained in:
Peter D. Gray 2018-01-04 12:10:15 -05:00 committed by Damien George
parent e306f2285b
commit ae5f647a2d
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ void __fatal_error(const char *msg);
*
* Timers run from APBx if APBx_PRESC=1, else 2x APBx
*/
void SystemClock_Config(void) {
MP_WEAK void SystemClock_Config(void) {
#if defined(STM32F7)
// The DFU bootloader changes the clocksource register from its default power
// on reset value, so we set it back here, so the clocksources are the same