Merge pull request #95 from cr1901/stm32f4-ep-fix
cdc_msc_hid: Limit number of endpoints used by STM32F4 for demo.
This commit is contained in:
commit
7a0073e081
|
@ -74,7 +74,14 @@
|
||||||
//------------- CLASS -------------//
|
//------------- CLASS -------------//
|
||||||
#define CFG_TUD_CDC 1
|
#define CFG_TUD_CDC 1
|
||||||
#define CFG_TUD_MSC 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
|
#define CFG_TUD_HID 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CFG_TUD_MIDI 0
|
#define CFG_TUD_MIDI 0
|
||||||
#define CFG_TUD_VENDOR 0
|
#define CFG_TUD_VENDOR 0
|
||||||
|
|
Loading…
Reference in New Issue