summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-11-26 14:56:07 +0700
committerhathach <[email protected]>2018-11-26 14:56:07 +0700
commit80ecf1fd54de86fb5d84bb061d0d63cc85a4d86c (patch)
tree7a947a1a7cba6f8c858c9a8e1a1abbe5c7d2bc24 /examples
parent60d5ac1c394380eab351ac2c1ad9ba374875fc35 (diff)
add OPT_MODE_HIGH_SPEED
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_hid/src/tusb_config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/device/cdc_msc_hid/src/tusb_config.h b/examples/device/cdc_msc_hid/src/tusb_config.h
index 0aa023352..0634c9576 100644
--- a/examples/device/cdc_msc_hid/src/tusb_config.h
+++ b/examples/device/cdc_msc_hid/src/tusb_config.h
@@ -55,7 +55,12 @@
#error CFG_TUSB_MCU should be defined using compiler flags
#endif
+#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX
+#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED)
+#else
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE
+#endif
+
#define CFG_TUSB_DEBUG 2
#define CFG_TUSB_OS OPT_OS_NONE
@@ -121,7 +126,6 @@
//--------------------------------------------------------------------
// MSC
//--------------------------------------------------------------------
-
// Number of supported Logical Unit Number (At least 1)
#define CFG_TUD_MSC_MAXLUN 1