stm32/main: Clean up and optimise initial start-up code of the MCU.

This commit is contained in:
Damien George
2018-05-02 15:20:24 +10:00
parent a03e6c1e05
commit 051686b0a8
2 changed files with 42 additions and 19 deletions

View File

@@ -602,13 +602,3 @@ void SystemClock_Config(void)
NVIC_SetPriority(SysTick_IRQn, NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, TICK_INT_PRIORITY, 0));
#endif
}
void HAL_MspInit(void) {
#if defined(STM32F7) || defined(STM32H7)
/* Enable I-Cache */
SCB_EnableICache();
/* Enable D-Cache */
SCB_EnableDCache();
#endif
}