summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_hid/src/tusb_config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_hid/src/tusb_config.h b/examples/device/cdc_msc_hid/src/tusb_config.h
index 1c0ee349c..92cc2bbd4 100644
--- a/examples/device/cdc_msc_hid/src/tusb_config.h
+++ b/examples/device/cdc_msc_hid/src/tusb_config.h
@@ -74,7 +74,14 @@
//------------- CLASS -------------//
#define CFG_TUD_CDC 1
#define CFG_TUD_MSC 1
+#if CFG_TUSB_MCU == OPT_MCU_STM32F4
+// STM32F4 does not have enough endpoints (4, including hardcoded control
+// endpoint) to enable CDC, MSC, and HID simultaneously, so disable HID as a
+// compromise.
+#define CFG_TUD_HID 0
+#else
#define CFG_TUD_HID 1
+#endif
#define CFG_TUD_MIDI 0
#define CFG_TUD_VENDOR 0