summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2021-08-21 18:00:11 +0200
committerDamien George <damien@micropython.org>2021-08-29 12:22:50 +1000
commita3ce8f08ec19358fd1a3e64733a2644f371f7c1f (patch)
treee7edfe6f41b4fed20219b6cbc206016f94a7aac4
parent79baef843b29b098ec34789e5b9f46a66753cd01 (diff)
downloadmicropython-a3ce8f08ec19358fd1a3e64733a2644f371f7c1f.tar.gz
micropython-a3ce8f08ec19358fd1a3e64733a2644f371f7c1f.zip
rp2/mpconfigport.h: Allow boards to add root pointers.
-rw-r--r--ports/rp2/mpconfigport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h
index ccf11d4f70..8d053ac1cd 100644
--- a/ports/rp2/mpconfigport.h
+++ b/ports/rp2/mpconfigport.h
@@ -171,6 +171,10 @@ extern const struct _mp_obj_module_t mp_module_utime;
{ MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_uos) }, \
{ MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_utime) }, \
+#ifndef MICROPY_BOARD_ROOT_POINTERS
+#define MICROPY_BOARD_ROOT_POINTERS
+#endif
+
#define MICROPY_PORT_ROOT_POINTERS \
const char *readline_hist[8]; \
void *machine_pin_irq_obj[30]; \
@@ -178,6 +182,7 @@ extern const struct _mp_obj_module_t mp_module_utime;
void *rp2_state_machine_irq_obj[8]; \
void *rp2_uart_rx_buffer[2]; \
void *rp2_uart_tx_buffer[2]; \
+ MICROPY_BOARD_ROOT_POINTERS \
#define MP_STATE_PORT MP_STATE_VM