diff options
Diffstat (limited to 'shared/tinyusb/mp_usbd_cdc.h')
| -rw-r--r-- | shared/tinyusb/mp_usbd_cdc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/tinyusb/mp_usbd_cdc.h b/shared/tinyusb/mp_usbd_cdc.h index 8d37a7731..6d653a1d0 100644 --- a/shared/tinyusb/mp_usbd_cdc.h +++ b/shared/tinyusb/mp_usbd_cdc.h @@ -27,6 +27,8 @@ #ifndef MICROPY_INCLUDED_SHARED_TINYUSB_MP_USBD_CDC_H #define MICROPY_INCLUDED_SHARED_TINYUSB_MP_USBD_CDC_H +#include "mp_usbd.h" + #ifndef MICROPY_HW_USB_CDC_TX_TIMEOUT #define MICROPY_HW_USB_CDC_TX_TIMEOUT (500) #endif @@ -38,7 +40,7 @@ #endif uintptr_t mp_usbd_cdc_poll_interfaces(uintptr_t poll_flags); -void tud_cdc_rx_cb(uint8_t itf); +void MICROPY_WRAP_TUD_CDC_RX_CB(tud_cdc_rx_cb)(uint8_t itf); mp_uint_t mp_usbd_cdc_tx_strn(const char *str, mp_uint_t len); #endif // MICROPY_INCLUDED_SHARED_TINYUSB_MP_USBD_CDC_H |
