Skip to content

Commit 11bc7d0

Browse files
pi-anldpgeorge
authored andcommitted
esp32/boards: Update ARDUINO_NANO_ESP32 USB configuration.
The custom line state handling is no longer needed as MicroPython runs it directly now. Signed-off-by: Andrew Leech <[email protected]>
1 parent 386771e commit 11bc7d0

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

ports/esp32/boards/ARDUINO_NANO_ESP32/board_init.c

-8
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
#include "double_tap.h"
3636
#include "usb.h"
3737

38-
#include "tinyusb.h"
39-
#include "tusb_cdc_acm.h"
40-
4138
#define LED_RED GPIO_NUM_46
4239
#define LED_GREEN GPIO_NUM_0
4340
#define LED_BLUE GPIO_NUM_45
@@ -87,11 +84,6 @@ void NANO_ESP32_enter_bootloader(void) {
8784
esp_restart();
8885
}
8986

90-
void NANO_ESP32_usb_callback_line_state_changed(int itf, void *event_in) {
91-
cdcacm_event_t *event = event_in;
92-
mp_usbd_line_state_cb(itf, event->line_state_changed_data.dtr, event->line_state_changed_data.rts);
93-
}
94-
9587
void NANO_ESP32_board_startup(void) {
9688
boardctrl_startup();
9789

ports/esp32/boards/ARDUINO_NANO_ESP32/mpconfigboard.h

-5
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@
1919
#define MICROPY_HW_SPI2_SCK (18)
2020

2121
#define MICROPY_HW_ENABLE_USBDEV (1)
22-
#define MICROPY_EXCLUDE_SHARED_TINYUSB_USBD_CDC (1)
23-
#define MICROPY_HW_USB_EXTERNAL_TINYUSB (1)
2422
#define MICROPY_HW_USB_CDC_1200BPS_TOUCH (1)
2523
#define MICROPY_SCHEDULER_STATIC_NODES (1)
2624

27-
#define MICROPY_HW_USB_CUSTOM_LINE_STATE_CB NANO_ESP32_usb_callback_line_state_changed
28-
void NANO_ESP32_usb_callback_line_state_changed(int itf, void *event);
29-
3025
#define MICROPY_BOARD_STARTUP NANO_ESP32_board_startup
3126
void NANO_ESP32_board_startup(void);
3227

0 commit comments

Comments
 (0)