diff options
| author | Jie Feng <[email protected]> | 2026-07-06 00:15:22 +0800 |
|---|---|---|
| committer | Jie Feng <[email protected]> | 2026-07-06 16:21:24 +0800 |
| commit | 3beaa799a92005bf1982d9c8bf65a368f5b1946f (patch) | |
| tree | 2c6554291a7ce593f4fcc9797c5cd8ec11a89d4a /src/portable/st/stm32_fsdev | |
| parent | fcd5a0603e3588cbf4b33f0335da2b630dc76368 (diff) | |
Set larger AT32 FSDEV PMA area
Diffstat (limited to 'src/portable/st/stm32_fsdev')
| -rw-r--r-- | src/portable/st/stm32_fsdev/fsdev_at32.h | 2 | ||||
| -rw-r--r-- | src/portable/st/stm32_fsdev/fsdev_common.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/portable/st/stm32_fsdev/fsdev_at32.h b/src/portable/st/stm32_fsdev/fsdev_at32.h index 212c3b86d..9138dc101 100644 --- a/src/portable/st/stm32_fsdev/fsdev_at32.h +++ b/src/portable/st/stm32_fsdev/fsdev_at32.h @@ -17,7 +17,7 @@ #define FSDEV_USE_SBUF_ISO 0 #define FSDEV_REG_BASE (APB1PERIPH_BASE + 0x00005C00UL) -#define FSDEV_PMA_BASE (APB1PERIPH_BASE + 0x00006000UL) +#define FSDEV_PMA_BASE (APB1PERIPH_BASE + 0x00007800UL) #ifndef CFG_TUD_FSDEV_DOUBLE_BUFFERED_ISO_EP #define CFG_TUD_FSDEV_DOUBLE_BUFFERED_ISO_EP 0 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 |
