stm32/boardctrl: Define MICROPY_BOARD_EARLY_INIT alongside others.

Signed-off-by: Damien George <damien@micropython.org>
bound-method-equality
Damien George 2020-11-11 18:14:50 +11:00
parent 4c3976bbca
commit b99300b53e
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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)