stm32/modmachine: Allow boards to provide custom bootloader code.

And expose the machine_bootloader() C function so it can be used elsewhere.
This commit is contained in:
iabdalkader
2022-04-27 10:58:09 +02:00
committed by Damien George
parent 921dd94676
commit 0adf0dd3d7
4 changed files with 10 additions and 2 deletions

View File

@@ -37,6 +37,10 @@
#define MICROPY_BOARD_STARTUP powerctrl_check_enter_bootloader
#endif
#ifndef MICROPY_BOARD_ENTER_BOOTLOADER
#define MICROPY_BOARD_ENTER_BOOTLOADER(nargs, args)
#endif
#ifndef MICROPY_BOARD_EARLY_INIT
#define MICROPY_BOARD_EARLY_INIT()
#endif