diff options
| author | Ha Thach <[email protected]> | 2025-08-05 23:23:19 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-05 23:23:19 +0700 |
| commit | a014df995d863ee5f4345a7f2254807dbf565d4f (patch) | |
| tree | 993983cdfae20aa1a90bae1382055d0b341f6966 | |
| parent | 51533129cf7c8635b08bec590625ffd8e76bce1d (diff) | |
| parent | 2298c2f410faaf3016ae0e43aa51be869d502bc9 (diff) | |
Merge pull request #3200 from peppapighs/at32f405-usb-hs
Fix AT32F405xx missing USB HS definition
| -rw-r--r-- | src/common/tusb_mcu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index a91759b84..6632341d7 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -601,6 +601,15 @@ #define TUP_USBIP_DWC2_AT32 #define TUP_DCD_ENDPOINT_MAX 8 + // AT32F405xx has on-chip HS PHY + #if defined(AT32F405CBT7) || defined(AT32F405CBU7) || \ + defined(AT32F405CCT7) || defined(AT32F405CCU7) || \ + defined(AT32F405KBU7_4) || defined(AT32F405KCU7_4) || \ + defined(AT32F405RBT7_7) || defined(AT32F405RBT7) || \ + defined(AT32F405RCT7_7) || defined(AT32F405RCT7) + #define TUP_RHPORT_HIGHSPEED 1 // Port0: FS, Port1: HS + #endif + #elif TU_CHECK_MCU(OPT_MCU_AT32F425) #define TUP_USBIP_DWC2 #define TUP_USBIP_DWC2_AT32 |
