We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739ac19 commit b4dd8caCopy full SHA for b4dd8ca
components/arduino_tinyusb/include/tusb_config.h
@@ -115,7 +115,11 @@ extern "C" {
115
#define CFG_TUD_ENDOINT0_SIZE 64
116
117
// Enabled Drivers
118
-#define CFG_TUD_CDC CONFIG_TINYUSB_CDC_ENABLED
+#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
123
#define CFG_TUD_MSC CONFIG_TINYUSB_MSC_ENABLED
124
#define CFG_TUD_HID CONFIG_TINYUSB_HID_ENABLED
125
#define CFG_TUD_MIDI CONFIG_TINYUSB_MIDI_ENABLED
0 commit comments