Skip to content

Commit 2fe3a92

Browse files
committed
add highspeed detect for f723/730/733
1 parent a4ba3f2 commit 2fe3a92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/common/tusb_mcu.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
// FS has 6, HS has 9
154154
#define TUP_DCD_ENDPOINT_MAX 9
155155

156+
// MCU with on-chip HS Phy
157+
#if defined(STM32F723xx) || defined(STM32F730xx) || defined(STM32F733xx)
158+
#define TUP_RHPORT_HIGHSPEED 0x02 // Port 0: FS, Port 1: HS
159+
#endif
160+
156161
#elif TU_CHECK_MCU(OPT_MCU_STM32H7)
157162
#define TUP_USBIP_DWC2
158163
#define TUP_USBIP_DWC2_STM32

0 commit comments

Comments
 (0)