summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-11-18 15:48:31 +0700
committerGitHub <[email protected]>2024-11-18 15:48:31 +0700
commitb3efa8eb6ae1a45591c9a3883d27470dc9f757d8 (patch)
tree32df735623910e1358741340080969889db86f70 /src
parentfee5ee6f0a64c3f4318940fe8b46eb7ea1add374 (diff)
parentc291b831e80f572a68553edddc5e65799ce3551d (diff)
Merge pull request #2871 from ebs-universe/master
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_mcu.h10
-rw-r--r--src/portable/synopsys/dwc2/dwc2_stm32.h8
-rw-r--r--src/tusb_option.h1
3 files changed, 19 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 41f552d33..2a517f7a7 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -299,6 +299,16 @@
#define TUP_USBIP_FSDEV_STM32
#define TUP_DCD_ENDPOINT_MAX 8
+#elif TU_CHECK_MCU(OPT_MCU_STM32H7RS)
+ #define TUP_USBIP_DWC2
+ #define TUP_USBIP_DWC2_STM32
+
+ // FS has 6, HS has 9
+ #define TUP_DCD_ENDPOINT_MAX 9
+
+ // MCU with on-chip HS Phy
+ #define TUP_RHPORT_HIGHSPEED 1
+
//--------------------------------------------------------------------+
// Sony
//--------------------------------------------------------------------+
diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h
index 8719c4820..c11c1eb05 100644
--- a/src/portable/synopsys/dwc2/dwc2_stm32.h
+++ b/src/portable/synopsys/dwc2/dwc2_stm32.h
@@ -69,6 +69,14 @@ extern "C" {
#define OTG_FS_IRQn OTG_HS_IRQn
#endif
+#elif CFG_TUSB_MCU == OPT_MCU_STM32H7RS
+ #include "stm32h7rsxx.h"
+ #define EP_MAX_FS 6
+ #define EP_FIFO_SIZE_FS 1280
+
+ #define EP_MAX_HS 9
+ #define EP_FIFO_SIZE_HS 4096
+
#elif CFG_TUSB_MCU == OPT_MCU_STM32F7
#include "stm32f7xx.h"
#define EP_MAX_FS 6
diff --git a/src/tusb_option.h b/src/tusb_option.h
index e9b6a5806..8bc30e940 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -92,6 +92,7 @@
#define OPT_MCU_STM32L5 314 ///< ST L5
#define OPT_MCU_STM32H5 315 ///< ST H5
#define OPT_MCU_STM32U0 316 ///< ST U0
+#define OPT_MCU_STM32H7RS 317 ///< ST F7RS
// Sony
#define OPT_MCU_CXD56 400 ///< SONY CXD56