File tree 3 files changed +16
-1
lines changed
components/arduino_tinyusb
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ menu "Arduino TinyUSB"
42
42
help
43
43
CDC FIFO size of TX
44
44
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
+
45
53
endmenu
46
54
47
55
menu "Mass Storage (MSC) driver"
Original file line number Diff line number Diff line change @@ -115,7 +115,11 @@ extern "C" {
115
115
#define CFG_TUD_ENDOINT0_SIZE 64
116
116
117
117
// 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
119
123
#define CFG_TUD_MSC CONFIG_TINYUSB_MSC_ENABLED
120
124
#define CFG_TUD_HID CONFIG_TINYUSB_HID_ENABLED
121
125
#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
131
131
CONFIG_ENABLE_ESP_INSIGHTS_TRACE=n
132
132
# Use compact attribute storage mode
133
133
CONFIG_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