summaryrefslogtreecommitdiff
path: root/src/portable/st/stm32_fsdev/fsdev_common.c
diff options
context:
space:
mode:
authorJie Feng <[email protected]>2026-07-06 00:15:22 +0800
committerJie Feng <[email protected]>2026-07-06 16:21:24 +0800
commit3beaa799a92005bf1982d9c8bf65a368f5b1946f (patch)
tree2c6554291a7ce593f4fcc9797c5cd8ec11a89d4a /src/portable/st/stm32_fsdev/fsdev_common.c
parentfcd5a0603e3588cbf4b33f0335da2b630dc76368 (diff)
Set larger AT32 FSDEV PMA area
Diffstat (limited to 'src/portable/st/stm32_fsdev/fsdev_common.c')
-rw-r--r--src/portable/st/stm32_fsdev/fsdev_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portable/st/stm32_fsdev/fsdev_common.c b/src/portable/st/stm32_fsdev/fsdev_common.c
index 2b573899a..def3b2c2e 100644
--- a/src/portable/st/stm32_fsdev/fsdev_common.c
+++ b/src/portable/st/stm32_fsdev/fsdev_common.c
@@ -33,6 +33,11 @@ void fsdev_core_reset(void) {
// Clear pending interrupts
FSDEV_REG->ISTR = 0;
+
+ #if (CFG_TUSB_MCU == OPT_MCU_AT32F403A_407) || (CFG_TUSB_MCU == OPT_MCU_AT32F413)
+ // Enable larger PMA area
+ CRM->misc1_bit.usbbufs = TRUE;
+ #endif
}
// De-initialize the USB Core