summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter D. Gray <peter@conalgo.com>2018-01-04 12:10:15 -0500
committerDamien George <damien@micropython.org>2022-02-04 10:29:53 +1100
commitae5f647a2d294cf940367918fbb250f1a9c0c8c0 (patch)
treecec2fff3b165aa1bdb3e5139500fb67c1e1ea61e
parente306f2285ba497f4d12e4068149cb245036a99b9 (diff)
stm32/system_stm32: Make SystemClock_Config() a weak symbol.
This allows boards to override as needed.
-rw-r--r--ports/stm32/system_stm32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/system_stm32.c b/ports/stm32/system_stm32.c
index 582d7a369..2ee745a49 100644
--- a/ports/stm32/system_stm32.c
+++ b/ports/stm32/system_stm32.c
@@ -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