diff options
| author | Gordon McNab <[email protected]> | 2022-11-30 12:15:27 +0000 |
|---|---|---|
| committer | Gordon McNab <[email protected]> | 2022-11-30 12:15:27 +0000 |
| commit | 1437ad1dfb5b48169f680253707821bd9751fc65 (patch) | |
| tree | cc49261b8d5f561eea5c405782c87b5d3298166f /examples/device/dynamic_configuration/src | |
| parent | fe63e30a4408dacc714ad9fcf39cf6fcf7c7d865 (diff) | |
Add endpoint definitions for more example projects.
Diffstat (limited to 'examples/device/dynamic_configuration/src')
| -rw-r--r-- | examples/device/dynamic_configuration/src/usb_descriptors.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/device/dynamic_configuration/src/usb_descriptors.c b/examples/device/dynamic_configuration/src/usb_descriptors.c index 457f774d0..092229b99 100644 --- a/examples/device/dynamic_configuration/src/usb_descriptors.c +++ b/examples/device/dynamic_configuration/src/usb_descriptors.c @@ -145,6 +145,19 @@ enum #define EPNUM_1_MSC_OUT 0x01 #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 #define EPNUM_0_CDC_NOTIF 0x81 #define EPNUM_0_CDC_OUT 0x02 |
