summaryrefslogtreecommitdiff
path: root/ports/stm32/usb.c
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2022-07-01 14:48:59 -0500
committerDamien George <damien@micropython.org>2022-07-18 13:50:34 +1000
commit816e4537f27ce6e1737225dbfaece0ec75150913 (patch)
tree1ade863381aeb422970671085f51fef3107c81bf /ports/stm32/usb.c
parentffa22b8f97dcd4696d1e7628c56f9fe2d93f3049 (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.c5
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