summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-02-26 17:34:29 +0700
committerhathach <[email protected]>2022-02-26 17:34:29 +0700
commit2fe3a925fbee91c1b5d8515c9fba25e5bd8b87a6 (patch)
tree87b3dc77aac3048febb0ee1b7059a8a8ff2ef41a /src
parenta4ba3f2891bad76cb3188159ac8e8dc223175230 (diff)
add highspeed detect for f723/730/733
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_mcu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 5fc504437..465e33ec7 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -153,6 +153,11 @@
// FS has 6, HS has 9
#define TUP_DCD_ENDPOINT_MAX 9
+ // MCU with on-chip HS Phy
+ #if defined(STM32F723xx) || defined(STM32F730xx) || defined(STM32F733xx)
+ #define TUP_RHPORT_HIGHSPEED 0x02 // Port 0: FS, Port 1: HS
+ #endif
+
#elif TU_CHECK_MCU(OPT_MCU_STM32H7)
#define TUP_USBIP_DWC2
#define TUP_USBIP_DWC2_STM32