diff options
| author | Ha Thach <[email protected]> | 2022-10-19 23:10:30 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-19 23:10:30 +0700 |
| commit | 39be00975cc5a1238e25650a2b1524635893f07d (patch) | |
| tree | b998e4b2db47ea66ac1de313c9073412cce1c675 /src | |
| parent | e79325adec150d232416c30e0a587dda9942874b (diff) | |
| parent | 4238467b2d78fcb11ba63026daa525d1c09e17ac (diff) | |
Merge pull request #1680 from LynnL4/port-stm32u5xx
Port stm32u5xx
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/tusb_mcu.h | 5 | ||||
| -rw-r--r-- | src/portable/synopsys/dwc2/dwc2_stm32.h | 6 | ||||
| -rw-r--r-- | src/tusb_option.h | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index 514ffcd4d..86c68baf8 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -189,6 +189,11 @@ #elif TU_CHECK_MCU(OPT_MCU_STM32WB) #define TUP_DCD_ENDPOINT_MAX 8 +#elif TU_CHECK_MCU(OPT_MCU_STM32U5) + #define TUP_USBIP_DWC2 + #define TUP_USBIP_DWC2_STM32 + #define TUP_DCD_ENDPOINT_MAX 6 + //------------- Sony -------------// #elif TU_CHECK_MCU(OPT_MCU_CXD56) #define TUP_DCD_ENDPOINT_MAX 7 diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h index 337f611d8..ea786362e 100644 --- a/src/portable/synopsys/dwc2/dwc2_stm32.h +++ b/src/portable/synopsys/dwc2/dwc2_stm32.h @@ -82,6 +82,12 @@ #define EP_MAX_FS 6 #define EP_FIFO_SIZE_FS 1280 +#elif CFG_TUSB_MCU == OPT_MCU_STM32U5 + #include "stm32u5xx.h" + #define USB_OTG_FS_PERIPH_BASE USB_OTG_FS_BASE + #define EP_MAX_FS 6 + #define EP_FIFO_SIZE_FS 1280 + #else #error "Unsupported MCUs" #endif diff --git a/src/tusb_option.h b/src/tusb_option.h index 4c2dd0258..f95ae6273 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -84,6 +84,7 @@ typedef int make_iso_compilers_happy; #define OPT_MCU_STM32G0 310 ///< ST G0 #define OPT_MCU_STM32G4 311 ///< ST G4 #define OPT_MCU_STM32WB 312 ///< ST WB +#define OPT_MCU_STM32U5 313 ///< ST U5 // Sony #define OPT_MCU_CXD56 400 ///< SONY CXD56 |
