diff options
Diffstat (limited to 'stmhal/system_stm32.c')
-rw-r--r-- | stmhal/system_stm32.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stmhal/system_stm32.c b/stmhal/system_stm32.c index 3e7e1bc689..22c917adcb 100644 --- a/stmhal/system_stm32.c +++ b/stmhal/system_stm32.c @@ -316,3 +316,13 @@ void SystemClock_Config(void) RCC->DCKCFGR2 = 0; #endif } + +void HAL_MspInit(void) { +#if defined(MCU_SERIES_F7) + /* Enable I-Cache */ + SCB_EnableICache(); + + /* Enable D-Cache */ + SCB_EnableDCache(); +#endif +} |