cdc_msc_hid: Limit number of endpoints used by STM32F4 for demo.

This commit is contained in:
William D. Jones 2019-08-11 17:42:22 -04:00
parent 6a3d84306e
commit 3f9e79ae9b

View File

@ -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