diff options
author | Damien George <damien@micropython.org> | 2021-02-13 13:52:53 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-13 13:52:53 +1100 |
commit | 701fdcacafe017c88c8cf18f64d8c26f25987e97 (patch) | |
tree | c47aa4239c55d62ba4848cce3de62103b3d22690 | |
parent | ede6b86a08ea3a749e1785c5263723c875b08359 (diff) | |
download | micropython-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.c | 4 |
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 |