rp2/mpconfigport.h: Allow boards to add root pointers.
This commit is contained in:
parent
79baef843b
commit
a3ce8f08ec
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user