mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
cdc_msc_hid: Limit number of endpoints used by STM32F4 for demo.
This commit is contained in:
parent
6a3d84306e
commit
3f9e79ae9b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user