8000 NRF: Enable MICROPY_BOARD_EARLY_INIT if defined. · micropython/micropython@5113305 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5113305

Browse files
committed
NRF: Enable MICROPY_BOARD_EARLY_INIT if defined.
1 parent f7aafc0 commit 5113305

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/nrf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ SRC_C += \
248248
drivers/ticker.c \
249249
drivers/bluetooth/ble_drv.c \
250250
drivers/bluetooth/ble_uart.c \
251+
$(wildcard boards/$(BOARD)/*.c) \
251252

252253
ifeq ($(MCU_SUB_VARIANT), nrf52840)
253254

ports/nrf/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ int main(int argc, char **argv) {
103103

104104

105105
soft_reset:
106+
#if defined(MICROPY_BOARD_EARLY_INIT)
107+
MICROPY_BOARD_EARLY_INIT();
108+
#endif
109+
106110
#if MICROPY_PY_TIME_TICKS
107111
rtc1_init_time_ticks();
108112
#endif

0 commit comments

Comments
 (0)
0