summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzhiqiang-ch <[email protected]>2025-12-30 10:44:03 +0800
committerzhiqiang-ch <[email protected]>2025-12-30 10:44:03 +0800
commit239e20ba7399fc026325c4cd8c98c08a160a9773 (patch)
tree6cc029d84232bea3f1898193cd62eaebc09ffe57 /src
parentb209b177ecc41ca733a4420c60fb7c1170be2342 (diff)
support for the AT32F45X series
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_mcu.h5
-rw-r--r--src/portable/synopsys/dwc2/dwc2_at32.h5
-rw-r--r--src/tusb_option.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 55f7e0b7c..ce690acb8 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -661,6 +661,11 @@
#define TUP_USBIP_DWC2_AT32
#define TUP_DCD_ENDPOINT_MAX 8
+#elif TU_CHECK_MCU(OPT_MCU_AT32F45X)
+ #define TUP_USBIP_DWC2
+ #define TUP_USBIP_DWC2_AT32
+ #define TUP_DCD_ENDPOINT_MAX 8
+
//--------------------------------------------------------------------+
// HPMicro
//--------------------------------------------------------------------+
diff --git a/src/portable/synopsys/dwc2/dwc2_at32.h b/src/portable/synopsys/dwc2/dwc2_at32.h
index 513495eb1..10824ae92 100644
--- a/src/portable/synopsys/dwc2/dwc2_at32.h
+++ b/src/portable/synopsys/dwc2/dwc2_at32.h
@@ -61,6 +61,11 @@
#define OTG1_FIFO_SIZE 1280
#define OTG1_IRQn OTGFS1_IRQn
#define DWC2_OTG1_REG_BASE 0x50000000UL
+#elif CFG_TUSB_MCU == OPT_MCU_AT32F45X
+ #include <at32f45x.h>
+ #define OTG1_FIFO_SIZE 1280
+ #define OTG1_IRQn OTGFS1_IRQn
+ #define DWC2_OTG1_REG_BASE 0x50000000UL
#endif
#ifdef __cplusplus
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 64fe899db..35a0d97db 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -216,6 +216,7 @@
#define OPT_MCU_AT32F402_405 2504 ///< ArteryTek AT32F402_405
#define OPT_MCU_AT32F425 2505 ///< ArteryTek AT32F425
#define OPT_MCU_AT32F413 2506 ///< ArteryTek AT32F413
+#define OPT_MCU_AT32F45X 2507 ///< ArteryTek AT32F45x
// HPMicro
#define OPT_MCU_HPM 2600 ///< HPMicro