stmhal: Enable I & D caches for M7

This commit is contained in:
Dave Hylands 2015-08-15 10:27:35 -07:00
parent 3179d23cee
commit c6f1d47dcb
1 changed files with 10 additions and 0 deletions

View File

@ -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
}