summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-06-15 23:34:09 +0700
committerhathach <[email protected]>2020-06-15 23:34:09 +0700
commitc67b3a242e8873788e32bbb589836e265e8a9b53 (patch)
tree6d876fce67280b050d74dbfbdc662c0a3a6fcea6 /test
parent2dd1be13e5780509cc6ab4e5877dd8c4ffe77e45 (diff)
update example config and descriptor with better Highspeed support
Diffstat (limited to 'test')
-rw-r--r--test/test/device/msc/test_msc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test/device/msc/test_msc_device.c b/test/test/device/msc/test_msc_device.c
index 34bd90c7e..0382fb327 100644
--- a/test/test/device/msc/test_msc_device.c
+++ b/test/test/device/msc/test_msc_device.c
@@ -66,7 +66,7 @@ uint8_t const data_desc_configuration[] =
TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
// Interface number, string index, EP Out & EP In address, EP size
- TUD_MSC_DESCRIPTOR(ITF_NUM_MSC, 0, EDPT_MSC_OUT, EDPT_MSC_IN, (CFG_TUSB_RHPORT0_MODE & OPT_MODE_HIGH_SPEED) ? 512 : 64),
+ TUD_MSC_DESCRIPTOR(ITF_NUM_MSC, 0, EDPT_MSC_OUT, EDPT_MSC_IN, TUD_OPT_HIGH_SPEED ? 512 : 64),
};
tusb_control_request_t const request_set_configuration =