add highspeed detect for f723/730/733

This commit is contained in:
hathach 2022-02-26 17:34:29 +07:00
parent a4ba3f2891
commit 2fe3a925fb
1 changed files with 5 additions and 0 deletions

View File

@ -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