summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-01-09 11:46:23 +0700
committerGitHub <[email protected]>2026-01-09 11:46:23 +0700
commitd5f0260267bf53fd5ba416c38e9cbce9f7b596ff (patch)
treeba8e9e8217cf47d318efb0fa813691ebc413fe4d /src/portable
parent4025036e03dcea0da51b247140ecc707dc8a15db (diff)
parent6ab368f655f8aff3bf684066af85ccd4287aadad (diff)
Merge pull request #3442 from zhiqiang-ch/master
support for the AT32F45X series
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/synopsys/dwc2/dwc2_at32.h5
1 files changed, 5 insertions, 0 deletions
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