summaryrefslogtreecommitdiff
path: root/examples/device/usbtest/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-08-18 22:59:49 +0700
committerGitHub <[email protected]>2026-08-18 22:59:49 +0700
commit5c0e31cdabaf37f14e1f5e988a020abfc1000495 (patch)
tree1035bcaa6242d5bcbe5fd81827ecded0dafdcb6d /examples/device/usbtest/src
parentaf7d199e73461c25555abbdc72441ab79eb74245 (diff)
parent19ff2ed615e4a97984aab5551ac8835ead53b9e7 (diff)
Merge pull request #3831 from hathach/fix-ci-hs
dcd(ci_hs): rework bus reset handling per the reference manual, and work around ERR050101
Diffstat (limited to 'examples/device/usbtest/src')
-rw-r--r--examples/device/usbtest/src/usb_descriptors.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/device/usbtest/src/usb_descriptors.c b/examples/device/usbtest/src/usb_descriptors.c
index b4f46adb8..8453885c4 100644
--- a/examples/device/usbtest/src/usb_descriptors.c
+++ b/examples/device/usbtest/src/usb_descriptors.c
@@ -132,6 +132,22 @@ enum {
#define EPNUM_ISO_OUT 0x08
#define EPNUM_ISO_IN 0x88
+#elif CFG_TUSB_MCU == OPT_MCU_MIMXRT1XXX
+ #define EPNUM_BULK_OUT 0x01
+ #define EPNUM_BULK_IN 0x81
+ #define EPNUM_INT_OUT 0x02
+ #define EPNUM_INT_IN 0x82
+ #define EPNUM_ISO_OUT 0x03
+ // ERR050101 (see CFG_TUSB_MIMXRT1XXX_ERRATA_ERR050101): park the iso IN endpoint clear of the numbers
+ // other devices use. Override per board when several affected boards share a hub.
+ #ifndef EPNUM_ISO_IN
+ #if CFG_TUSB_MIMXRT1XXX_ERRATA_ERR050101
+ #define EPNUM_ISO_IN 0x87
+ #else
+ #define EPNUM_ISO_IN 0x83
+ #endif
+ #endif
+
#else
#define EPNUM_BULK_OUT 0x01
#define EPNUM_BULK_IN 0x81