mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-22 19:20:52 +00:00
Add endpoint definitions for more example projects.
This commit is contained in:
parent
fe63e30a44
commit
1437ad1dfb
@ -145,6 +145,19 @@ enum
|
|||||||
#define EPNUM_1_MSC_OUT 0x01
|
#define EPNUM_1_MSC_OUT 0x01
|
||||||
#define EPNUM_1_MSC_IN 0x82
|
#define EPNUM_1_MSC_IN 0x82
|
||||||
|
|
||||||
|
#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
|
||||||
|
// FT9XX doesn't support a same endpoint number with different direction IN and OUT
|
||||||
|
// e.g EP1 OUT & EP1 IN cannot exist together
|
||||||
|
#define EPNUM_0_CDC_NOTIF 0x81
|
||||||
|
#define EPNUM_0_CDC_OUT 0x02
|
||||||
|
#define EPNUM_0_CDC_IN 0x83
|
||||||
|
|
||||||
|
#define EPNUM_0_MIDI_OUT 0x04
|
||||||
|
#define EPNUM_0_MIDI_IN 0x85
|
||||||
|
|
||||||
|
#define EPNUM_1_MSC_OUT 0x01
|
||||||
|
#define EPNUM_1_MSC_IN 0x82
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define EPNUM_0_CDC_NOTIF 0x81
|
#define EPNUM_0_CDC_NOTIF 0x81
|
||||||
#define EPNUM_0_CDC_OUT 0x02
|
#define EPNUM_0_CDC_OUT 0x02
|
||||||
|
@ -90,6 +90,12 @@ enum
|
|||||||
#define EPNUM_MSC_OUT 0x01
|
#define EPNUM_MSC_OUT 0x01
|
||||||
#define EPNUM_MSC_IN 0x82
|
#define EPNUM_MSC_IN 0x82
|
||||||
|
|
||||||
|
#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
|
||||||
|
// FT9XX doesn't support a same endpoint number with different direction IN and OUT
|
||||||
|
// e.g EP1 OUT & EP1 IN cannot exist together
|
||||||
|
#define EPNUM_MSC_OUT 0x01
|
||||||
|
#define EPNUM_MSC_IN 0x82
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define EPNUM_MSC_OUT 0x01
|
#define EPNUM_MSC_OUT 0x01
|
||||||
#define EPNUM_MSC_IN 0x81
|
#define EPNUM_MSC_IN 0x81
|
||||||
|
@ -93,6 +93,12 @@ uint8_t const * tud_descriptor_device_cb(void)
|
|||||||
#define EPNUM_AUDIO_IN 0x01
|
#define EPNUM_AUDIO_IN 0x01
|
||||||
#define EPNUM_AUDIO_OUT 0x02
|
#define EPNUM_AUDIO_OUT 0x02
|
||||||
|
|
||||||
|
#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
|
||||||
|
// FT9XX doesn't support a same endpoint number with different direction IN and OUT
|
||||||
|
// e.g EP1 OUT & EP1 IN cannot exist together
|
||||||
|
#define EPNUM_AUDIO_IN 0x01
|
||||||
|
#define EPNUM_AUDIO_OUT 0x02
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define EPNUM_AUDIO_IN 0x01
|
#define EPNUM_AUDIO_IN 0x01
|
||||||
#define EPNUM_AUDIO_OUT 0x01
|
#define EPNUM_AUDIO_OUT 0x01
|
||||||
|
@ -97,6 +97,13 @@ enum
|
|||||||
#define EPNUM_CDC_OUT 3
|
#define EPNUM_CDC_OUT 3
|
||||||
#define EPNUM_VENDOR_IN 4
|
#define EPNUM_VENDOR_IN 4
|
||||||
#define EPNUM_VENDOR_OUT 5
|
#define EPNUM_VENDOR_OUT 5
|
||||||
|
#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
|
||||||
|
// FT9XX doesn't support a same endpoint number with different direction IN and OUT
|
||||||
|
// e.g EP1 OUT & EP1 IN cannot exist together
|
||||||
|
#define EPNUM_CDC_IN 2
|
||||||
|
#define EPNUM_CDC_OUT 3
|
||||||
|
#define EPNUM_VENDOR_IN 4
|
||||||
|
#define EPNUM_VENDOR_OUT 5
|
||||||
#else
|
#else
|
||||||
#define EPNUM_CDC_IN 2
|
#define EPNUM_CDC_IN 2
|
||||||
#define EPNUM_CDC_OUT 2
|
#define EPNUM_CDC_OUT 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user