diff options
| author | Zixun LI <[email protected]> | 2026-07-19 22:21:53 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-19 22:21:53 +0200 |
| commit | 53f8c53c2cbd73a91a172f1ae35e9abc00eb5075 (patch) | |
| tree | fbc91ce0bc18ccb67b1090d7cfe252842b622ee0 /src/portable | |
| parent | 2555891761f771bd87504574c48096eb2d07c985 (diff) | |
| parent | a3e58adf6008f3199cf653859bea4dc73217a55a (diff) | |
Merge pull request #3757 from rhgndf/at32f403a_larger_pma
Larger at32f403a PMA area
Diffstat (limited to 'src/portable')
| -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..9c9233d12 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 = 1; + #endif } // De-initialize the USB Core |
