diff options
| author | David Lechner <david@pybricks.com> | 2022-07-01 15:20:14 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-18 13:50:34 +1000 |
| commit | c09e31dabbac1324b396f47274f83174dc1bfd68 (patch) | |
| tree | 07732eae91d403bbba8144ba6aebf80249c05098 | |
| parent | 8a69c54211663157b68438e4b93d11a064c9078a (diff) | |
pic16bit/pic16bit_mphal: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register keyboard_interrupt_obj
and removes the same from mpconfigport.h.
Signed-off-by: David Lechner <david@pybricks.com>
| -rw-r--r-- | ports/pic16bit/mpconfigport.h | 3 | ||||
| -rw-r--r-- | ports/pic16bit/pic16bit_mphal.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ports/pic16bit/mpconfigport.h b/ports/pic16bit/mpconfigport.h index e03fb81a6..f1bfa4cd6 100644 --- a/ports/pic16bit/mpconfigport.h +++ b/ports/pic16bit/mpconfigport.h @@ -91,9 +91,6 @@ typedef int mp_off_t; #define MP_STATE_PORT MP_STATE_VM -#define MICROPY_PORT_ROOT_POINTERS \ - mp_obj_t keyboard_interrupt_obj; \ - #define MICROPY_MPHALPORT_H "pic16bit_mphal.h" #define MICROPY_HW_BOARD_NAME "dsPICSK" #define MICROPY_HW_MCU_NAME "dsPIC33" diff --git a/ports/pic16bit/pic16bit_mphal.c b/ports/pic16bit/pic16bit_mphal.c index adab38193..48e8af87d 100644 --- a/ports/pic16bit/pic16bit_mphal.c +++ b/ports/pic16bit/pic16bit_mphal.c @@ -86,3 +86,5 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, size_t len) { uart_tx_char(*str++); } } + +MP_REGISTER_ROOT_POINTER(mp_obj_t keyboard_interrupt_obj); |
