define and use TUD_ENDPOINT_EXCLUSIVE_NUMBER
This commit is contained in:
@@ -84,20 +84,24 @@ enum
|
||||
#if CFG_TUSB_MCU == OPT_MCU_LPC175X_6X || CFG_TUSB_MCU == OPT_MCU_LPC177X_8X || CFG_TUSB_MCU == OPT_MCU_LPC40XX
|
||||
// LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number
|
||||
// 0 control, 1 In, 2 Bulk, 3 Iso, 4 In etc ...
|
||||
#define EPNUM_MIDI_OUT 0x02
|
||||
#define EPNUM_MIDI_IN 0x02
|
||||
#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
|
||||
// On Bridgetek FT9xx endpoint numbers must be unique...
|
||||
#define EPNUM_MIDI_OUT 0x02
|
||||
#define EPNUM_MIDI_IN 0x03
|
||||
#elif CFG_TUSB_MCU == OPT_MCU_MAX32690 || CFG_TUSB_MCU == OPT_MCU_MAX32650 || \
|
||||
CFG_TUSB_MCU == OPT_MCU_MAX32666 || CFG_TUSB_MCU == OPT_MCU_MAX78002
|
||||
// On MAX32 endpoint numbers must be unique...
|
||||
#define EPNUM_MIDI_OUT 0x02
|
||||
#define EPNUM_MIDI_IN 0x03
|
||||
#define EPNUM_MIDI_OUT 0x02
|
||||
#define EPNUM_MIDI_IN 0x82
|
||||
|
||||
#elif CFG_TUSB_MCU == OPT_MCU_CXD56
|
||||
// CXD56 USB driver has fixed endpoint type (bulk/interrupt/iso) and direction (IN/OUT) by its number
|
||||
// 0 control (IN/OUT), 1 Bulk (IN), 2 Bulk (OUT), 3 In (IN), 4 Bulk (IN), 5 Bulk (OUT), 6 In (IN)
|
||||
#define EPNUM_MIDI_OUT 0x02
|
||||
#define EPNUM_MIDI_IN 0x81
|
||||
|
||||
#elif defined(TUD_ENDPOINT_EXCLUSIVE_NUMBER)
|
||||
// MCUs that don't support a same endpoint number with different direction IN and OUT defined in tusb_mcu.h
|
||||
// e.g EP1 OUT & EP1 IN cannot exist together
|
||||
#define EPNUM_MIDI_OUT 0x01
|
||||
#define EPNUM_MIDI_IN 0x82
|
||||
|
||||
#else
|
||||
#define EPNUM_MIDI_OUT 0x01
|
||||
#define EPNUM_MIDI_IN 0x01
|
||||
#define EPNUM_MIDI_OUT 0x01
|
||||
#define EPNUM_MIDI_IN 0x81
|
||||
#endif
|
||||
|
||||
uint8_t const desc_fs_configuration[] =
|
||||
|
Reference in New Issue
Block a user