aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-11-05 17:09:11 +1000
committerinmarket <andrewh@inmarket.com.au>2015-11-05 17:09:11 +1000
commit713ce159d3b0835683ef512e2c6ba3fcddb68af4 (patch)
treec84b07b397ad02ae895c2f09885208efb9e5a1e1 /boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c
parent383be6964ecee62844e842c08e50464fd5b56d5e (diff)
downloaduGFX-713ce159d3b0835683ef512e2c6ba3fcddb68af4.tar.gz
uGFX-713ce159d3b0835683ef512e2c6ba3fcddb68af4.tar.bz2
uGFX-713ce159d3b0835683ef512e2c6ba3fcddb68af4.zip
Updates to STM32F746-Discovery support
Clean out a lot of junk
Diffstat (limited to 'boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c')
-rw-r--r--boards/base/STM32F746-Discovery/stm32f746g_raw32_ugfx.c21
1 files changed, 4 insertions, 17 deletions
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();
-}
-