diff options
| author | hathach <[email protected]> | 2019-08-12 13:02:17 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-12 13:02:17 +0700 |
| commit | 7a0073e081bf3c6f6e917daf08ef1cea018e08a1 (patch) | |
| tree | 49fcf53d8111937c9e1653422b61f6528cc05b38 | |
| parent | 6a3d84306e891a72426d543caaf753e47db92fe2 (diff) | |
| parent | 3f9e79ae9b5e6522507e50b208f7ec9b0b1317db (diff) | |
Merge pull request #95 from cr1901/stm32f4-ep-fix
cdc_msc_hid: Limit number of endpoints used by STM32F4 for demo.
| -rw-r--r-- | examples/device/cdc_msc_hid/src/tusb_config.h | 7 |
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 |
