mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
update config
This commit is contained in:
parent
e123cad7bb
commit
c2d0d2d4d8
@ -75,12 +75,13 @@
|
|||||||
#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
|
// Some STM32 MCUs does not have enough endpoints (4, including control
|
||||||
// STM32F4 does not have enough endpoints (4, including hardcoded control
|
|
||||||
// endpoint) to enable CDC, MSC, and HID simultaneously, so disable HID as a compromise.
|
// endpoint) to enable CDC, MSC, and HID simultaneously, so disable HID as a compromise.
|
||||||
#define CFG_TUD_HID 0
|
#if CFG_TUSB_MCU == OPT_MCU_STM32F4
|
||||||
|
#include "stm32f4xx.h"
|
||||||
|
#define CFG_TUD_HID ((USB_OTG_FS_MAX_IN_ENDPOINTS > 4) ? 1 : 0)
|
||||||
#else
|
#else
|
||||||
#define CFG_TUD_HID 1
|
#define CFG_TUD_HID 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CFG_TUD_MIDI 0
|
#define CFG_TUD_MIDI 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user