summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-02-13 13:52:53 +1100
committerDamien George <damien@micropython.org>2021-02-13 13:52:53 +1100
commit701fdcacafe017c88c8cf18f64d8c26f25987e97 (patch)
treec47aa4239c55d62ba4848cce3de62103b3d22690
parentede6b86a08ea3a749e1785c5263723c875b08359 (diff)
downloadmicropython-701fdcacafe017c88c8cf18f64d8c26f25987e97.tar.gz
micropython-701fdcacafe017c88c8cf18f64d8c26f25987e97.zip
nrf/drivers/usb: Add USBD_IRQHandler which calls tud_int_handler.
This is needed for TinyUSB to process USB device IRQs. Related to #6325. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/nrf/drivers/usb/usb_cdc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/nrf/drivers/usb/usb_cdc.c b/ports/nrf/drivers/usb/usb_cdc.c
index c90bced6bb..9d7c832e20 100644
--- a/ports/nrf/drivers/usb/usb_cdc.c
+++ b/ports/nrf/drivers/usb/usb_cdc.c
@@ -223,4 +223,8 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) {
}
}
+void USBD_IRQHandler(void) {
+ tud_int_handler(0);
+}
+
#endif // MICROPY_HW_USB_CDC