summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorGordon McNab <[email protected]>2022-11-30 11:46:13 +0000
committerGordon McNab <[email protected]>2022-11-30 11:46:13 +0000
commitfe63e30a4408dacc714ad9fcf39cf6fcf7c7d865 (patch)
tree218a35c0b34b326eead1ec7622db20fb0fc6a185 /examples/device
parent7d8d3eca730552355b5ad442f58b5a6b070d4d03 (diff)
Add FT9xx for cdc_dual_ports
Fix handling of interrupt endpoints. i.e. no ZLPs. Fix the assignation of endpoint types. Add button support for MM900evx boards. On board support do not block for UART input.
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/cdc_dual_ports/src/usb_descriptors.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/device/cdc_dual_ports/src/usb_descriptors.c b/examples/device/cdc_dual_ports/src/usb_descriptors.c
index 5a8dea553..4eb8c7c27 100644
--- a/examples/device/cdc_dual_ports/src/usb_descriptors.c
+++ b/examples/device/cdc_dual_ports/src/usb_descriptors.c
@@ -111,12 +111,13 @@ enum
#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_NOTIF 0x81
- #define EPNUM_CDC_OUT 0x02
- #define EPNUM_CDC_IN 0x83
+ #define EPNUM_CDC_0_NOTIF 0x81
+ #define EPNUM_CDC_0_OUT 0x02
+ #define EPNUM_CDC_0_IN 0x83
- #define EPNUM_MSC_OUT 0x04
- #define EPNUM_MSC_IN 0x85
+ #define EPNUM_CDC_1_NOTIF 0x84
+ #define EPNUM_CDC_1_OUT 0x05
+ #define EPNUM_CDC_1_IN 0x86
#else
#define EPNUM_CDC_0_NOTIF 0x81