stm32/boardctrl: Define MICROPY_BOARD_EARLY_INIT alongside others.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
4c3976bbca
commit
b99300b53e
|
@ -28,6 +28,10 @@
|
|||
|
||||
#include "py/mpconfig.h"
|
||||
|
||||
#ifndef MICROPY_BOARD_EARLY_INIT
|
||||
#define MICROPY_BOARD_EARLY_INIT()
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_BOARD_BEFORE_SOFT_RESET_LOOP
|
||||
#define MICROPY_BOARD_BEFORE_SOFT_RESET_LOOP boardctrl_before_soft_reset_loop
|
||||
#endif
|
||||
|
|
|
@ -385,10 +385,7 @@ void stm32_main(uint32_t reset_mode) {
|
|||
__HAL_RCC_D2SRAM3_CLK_ENABLE();
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(MICROPY_BOARD_EARLY_INIT)
|
||||
MICROPY_BOARD_EARLY_INIT();
|
||||
#endif
|
||||
|
||||
// basic sub-system init
|
||||
#if defined(STM32WB)
|
||||
|
|
Loading…
Reference in New Issue