Skip to content

Commit c9ed80b

Browse files
committed
Merge branch 'release/v5.4' of https://github.com/espressif/esp32-arduino-lib-builder into release/v5.5
2 parents 18643f2 + 491c59e commit c9ed80b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Diff for: components/arduino_tinyusb/Kconfig.projbuild

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ menu "Arduino TinyUSB"
4242
help
4343
CDC FIFO size of TX
4444

45+
config TINYUSB_CDC_MAX_PORTS
46+
int "Maximum enabled CDC ports"
47+
range 1 2
48+
default 1
49+
depends on TINYUSB_CDC_ENABLED
50+
help
51+
Maximum enabled CDC ports
52+
4553
endmenu
4654

4755
menu "Mass Storage (MSC) driver"

Diff for: components/arduino_tinyusb/include/tusb_config.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ extern "C" {
115115
#define CFG_TUD_ENDOINT0_SIZE 64
116116

117117
// Enabled Drivers
118-
#define CFG_TUD_CDC CONFIG_TINYUSB_CDC_ENABLED
118+
#ifdef CONFIG_TINYUSB_CDC_MAX_PORTS
119+
#define CFG_TUD_CDC CONFIG_TINYUSB_CDC_MAX_PORTS
120+
#else
121+
#define CFG_TUD_CDC 0
122+
#endif
119123
#define CFG_TUD_MSC CONFIG_TINYUSB_MSC_ENABLED
120124
#define CFG_TUD_HID CONFIG_TINYUSB_HID_ENABLED
121125
#define CFG_TUD_MIDI CONFIG_TINYUSB_MIDI_ENABLED

Diff for: configs/defconfig.common

+3
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,6 @@ CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING=n
131131
CONFIG_ENABLE_ESP_INSIGHTS_TRACE=n
132132
# Use compact attribute storage mode
133133
CONFIG_ESP_MATTER_NVS_USE_COMPACT_ATTR_STORAGE=y
134+
135+
#TinyUSB Config
136+
CONFIG_TINYUSB_CDC_MAX_PORTS=2

0 commit comments

Comments
 (0)