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:
hathach 2019-08-12 13:02:17 +07:00 committed by GitHub
commit 7a0073e081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

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