summaryrefslogtreecommitdiff
path: root/ports/stm32/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/main.c')
-rw-r--r--ports/stm32/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index bdf7328f6..888b20513 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -313,8 +313,9 @@ void stm32_main(uint32_t reset_mode) {
// Enable 8-byte stack alignment for IRQ handlers, in accord with EABI
SCB->CCR |= SCB_CCR_STKALIGN_Msk;
- // Check if bootloader should be entered instead of main application
- powerctrl_check_enter_bootloader();
+ // Hook for a board to run code at start up, for example check if a
+ // bootloader should be entered instead of the main application.
+ MICROPY_BOARD_STARTUP();
// Enable caches and prefetch buffers