From 713ce159d3b0835683ef512e2c6ba3fcddb68af4 Mon Sep 17 00:00:00 2001 From: inmarket Date: Thu, 5 Nov 2015 17:09:11 +1000 Subject: Updates to STM32F746-Discovery support Clean out a lot of junk --- .../STM32F746-Discovery/stm32f746g_raw32_ugfx.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c') diff --git a/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c b/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c index 4fb5cebb..de499f3a 100644 --- a/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c +++ b/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c @@ -19,8 +19,10 @@ static void SystemClock_Config(void); static void CPU_CACHE_Enable(void); void Raw32OSInit(void) { - /* Enable the CPU Cache */ - CPU_CACHE_Enable(); + /* Enable the CPU Cache's */ + SCB_EnableICache(); // Enable I-Cache + SCB_EnableDCache(); // Enable D-Cache + /* STM32F7xx HAL library initialization: - Configure the Flash ART accelerator on ITCM interface @@ -106,18 +108,3 @@ void SystemClock_Config(void) HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK); } - -/** - * @brief CPU L1-Cache enable. - * @param None - * @retval None - */ -static void CPU_CACHE_Enable(void) -{ - /* Enable I-Cache */ - SCB_EnableICache(); - - /* Enable D-Cache */ - SCB_EnableDCache(); -} - -- cgit v1.2.3