summaryrefslogtreecommitdiff
path: root/examples/device/uac2_headset/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-02-25 13:00:05 +0700
committerhathach <[email protected]>2022-02-25 18:35:21 +0700
commita8af609dfef0f82ce22e6f0bf48146b4b2433633 (patch)
tree41e17ddb03ffa8574f34071ce6a74c76568b8260 /examples/device/uac2_headset/src
parent31aa077cb0b345464548b9cb2e2913227348a969 (diff)
auto detect max rhport speed based on mcu
Diffstat (limited to 'examples/device/uac2_headset/src')
-rw-r--r--examples/device/uac2_headset/src/tusb_config.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/uac2_headset/src/tusb_config.h b/examples/device/uac2_headset/src/tusb_config.h
index e8d93f56a..3b2f7df48 100644
--- a/examples/device/uac2_headset/src/tusb_config.h
+++ b/examples/device/uac2_headset/src/tusb_config.h
@@ -42,10 +42,10 @@ extern "C" {
#error CFG_TUSB_MCU must be defined
#endif
-#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
-#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED)
-#else
-#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE
+// RHPort max operational speed can defined by board.mk
+// Default to max (auto) speed for MCU with internal HighSpeed PHY
+#ifndef BOARD_DEVICE_RHPORT_SPEED
+ #define BOARD_DEVICE_RHPORT_SPEED OPT_MODE_DEFAULT_SPEED
#endif
#ifndef CFG_TUSB_OS