summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChintalagiri Shashank <[email protected]>2024-11-08 18:13:54 +0530
committerChintalagiri Shashank <[email protected]>2024-11-16 12:32:26 +0530
commita780071d20d26ee308acda0e84096563f4f47f41 (patch)
tree927265e5440a89c4210d48e44d655935ab468ab1 /src
parent0569188aed17d19d5954f1e1b911e989814ec93d (diff)
Add support for STM32H7RSxx
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_mcu.h7
-rw-r--r--src/portable/synopsys/dwc2/dwc2_stm32.h8
-rw-r--r--src/tusb_option.h1
3 files changed, 16 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 41f552d33..0264da89e 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -299,6 +299,13 @@
#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
+
//--------------------------------------------------------------------+
// 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