shared/tinyusb: Remove MICROPY_HW_USB_EXTERNAL_TINYUSB.

No longer needed as shared tinyusb is now used by the esp32 port.

Signed-off-by: Andrew Leech <andrew@alelec.net>
This commit is contained in:
Andrew Leech 2024-05-23 17:23:41 +10:00 committed by Damien George
parent 4247921c4e
commit 641f60045f
2 changed files with 1 additions and 11 deletions

View File

@ -149,13 +149,7 @@ static void usbd_cdc_run_bootloader_task(mp_sched_node_t *node) {
}
#endif
void
#if MICROPY_HW_USB_EXTERNAL_TINYUSB
mp_usbd_line_state_cb
#else
tud_cdc_line_state_cb
#endif
(uint8_t itf, bool dtr, bool rts) {
void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) {
#if MICROPY_HW_USB_CDC && !MICROPY_EXCLUDE_SHARED_TINYUSB_USBD_CDC
if (dtr) {
// A host application has started to open the cdc serial port.

View File

@ -35,8 +35,4 @@ uintptr_t mp_usbd_cdc_poll_interfaces(uintptr_t poll_flags);
void tud_cdc_rx_cb(uint8_t itf);
mp_uint_t mp_usbd_cdc_tx_strn(const char *str, mp_uint_t len);
#if MICROPY_HW_USB_EXTERNAL_TINYUSB
void mp_usbd_line_state_cb(uint8_t itf, bool dtr, bool rts);
#endif
#endif // MICROPY_INCLUDED_SHARED_TINYUSB_MP_USBD_CDC_H