Skip to content

Commit 1e35625

Browse files
pi-anlwiznet-grace
authored andcommitted
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 <[email protected]>
1 parent b903adf commit 1e35625

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Diff for: shared/tinyusb/mp_usbd_cdc.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,7 @@ static void usbd_cdc_run_bootloader_task(mp_sched_node_t *node) {
149149
}
150150
#endif
151151

152-
void
153-
#if MICROPY_HW_USB_EXTERNAL_TINYUSB
154-
mp_usbd_line_state_cb
155-
#else
156-
tud_cdc_line_state_cb
157-
#endif
158-
(uint8_t itf, bool dtr, bool rts) {
152+
void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) {
159153
#if MICROPY_HW_USB_CDC && !MICROPY_EXCLUDE_SHARED_TINYUSB_USBD_CDC
160154
if (dtr) {
161155
// A host application has started to open the cdc serial port.

Diff for: shared/tinyusb/mp_usbd_cdc.h

-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,4 @@ uintptr_t mp_usbd_cdc_poll_interfaces(uintptr_t poll_flags);
3535
void tud_cdc_rx_cb(uint8_t itf);
3636
mp_uint_t mp_usbd_cdc_tx_strn(const char *str, mp_uint_t len);
3737

38-
#if MICROPY_HW_USB_EXTERNAL_TINYUSB
39-
void mp_usbd_line_state_cb(uint8_t itf, bool dtr, bool rts);
40-
#endif
41-
4238
#endif // MICROPY_INCLUDED_SHARED_TINYUSB_MP_USBD_CDC_H

0 commit comments

Comments
 (0)