Skip to content

Commit a014df9

Browse files
authored
Merge pull request #3200 from peppapighs/at32f405-usb-hs
Fix AT32F405xx missing USB HS definition
2 parents 5153312 + 2298c2f commit a014df9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/common/tusb_mcu.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,15 @@
601601
#define TUP_USBIP_DWC2_AT32
602602
#define TUP_DCD_ENDPOINT_MAX 8
603603

604+
// AT32F405xx has on-chip HS PHY
605+
#if defined(AT32F405CBT7) || defined(AT32F405CBU7) || \
606+
defined(AT32F405CCT7) || defined(AT32F405CCU7) || \
607+
defined(AT32F405KBU7_4) || defined(AT32F405KCU7_4) || \
608+
defined(AT32F405RBT7_7) || defined(AT32F405RBT7) || \
609+
defined(AT32F405RCT7_7) || defined(AT32F405RCT7)
610+
#define TUP_RHPORT_HIGHSPEED 1 // Port0: FS, Port1: HS
611+
#endif
612+
604613
#elif TU_CHECK_MCU(OPT_MCU_AT32F425)
605614
#define TUP_USBIP_DWC2
606615
#define TUP_USBIP_DWC2_AT32

0 commit comments

Comments
 (0)