diff options
| author | David Lechner <david@pybricks.com> | 2022-07-01 14:48:59 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-18 13:50:34 +1000 |
| commit | 816e4537f27ce6e1737225dbfaece0ec75150913 (patch) | |
| tree | 1ade863381aeb422970671085f51fef3107c81bf /ports/stm32/usb.c | |
| parent | ffa22b8f97dcd4696d1e7628c56f9fe2d93f3049 (diff) | |
stm32: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register all port-specific root
pointers in the stm32 port.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'ports/stm32/usb.c')
| -rw-r--r-- | ports/stm32/usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/stm32/usb.c b/ports/stm32/usb.c index cf9faed11..2a669b2a2 100644 --- a/ports/stm32/usb.c +++ b/ports/stm32/usb.c @@ -1152,4 +1152,9 @@ void USR_KEYBRD_ProcessData(uint8_t pbuf) { #endif // USE_HOST_MODE +#if MICROPY_HW_USB_HID +MP_REGISTER_ROOT_POINTER(mp_obj_t pyb_hid_report_desc); +#endif +MP_REGISTER_ROOT_POINTER(mp_obj_t pyb_usb_vcp_irq[MICROPY_HW_USB_CDC_NUM]); + #endif // MICROPY_HW_ENABLE_USB |
