File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
components/arduino_tinyusb Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -131,3 +131,6 @@ CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING=n
131131CONFIG_ENABLE_ESP_INSIGHTS_TRACE=n
132132# Use compact attribute storage mode
133133CONFIG_ESP_MATTER_NVS_USE_COMPACT_ATTR_STORAGE=y
134+
135+ #TinyUSB Config
136+ CONFIG_TINYUSB_CDC_MAX_PORTS=2
You can’t perform that action at this time.
0 commit comments