Skip to content

Commit 79fd8b7

Browse files
authored
Merge pull request #9889 from dhalbert/espressif-CIRCUITPY_USB_DEVICE_INSTANCE
CIRCUITPY_USB_DEVICE_INSTANCE should default to 0 on most Espressif boards
2 parents 00bc184 + 920ee2b commit 79fd8b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ports/espressif/boards/espressif_esp32p4_function_ev/mpconfigboard.h

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515

1616
#define DEFAULT_UART_BUS_RX (&pin_GPIO38)
1717
#define DEFAULT_UART_BUS_TX (&pin_GPIO37)
18+
19+
// Use the second USB device (numbered 0 and 1)
20+
#define CIRCUITPY_USB_DEVICE_INSTANCE 1

ports/espressif/mpconfigport.h

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
#define CIRCUITPY_DIGITALIO_HAVE_INPUT_ONLY (1)
1919

20-
#define CIRCUITPY_USB_DEVICE_INSTANCE 1
21-
2220
#include "py/circuitpy_mpconfig.h"
2321

2422
#define MICROPY_NLR_SETJMP (1)

0 commit comments

Comments
 (0)