Skip to content

Commit

Permalink
pic16bit/pic16bit_mphal: Use MP_REGISTER_ROOT_POINTER().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dlech authored and dpgeorge committed Jul 18, 2022
1 parent 8a69c54 commit c09e31d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ports/pic16bit/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions ports/pic16bit/pic16bit_mphal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit c09e31d

Please sign in to comment.