mbed library sources for airmote

Fork of mbed-src by mbed official

Revision:
582:a89625bcd809
Parent:
573:ad23fe03a082
Child:
610:813dcc80987e
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.c	Thu Jul 02 16:30:08 2015 +0100
+++ b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.c	Mon Jul 06 09:00:34 2015 +0100
@@ -227,6 +227,10 @@
   SystemCoreClock = HSI_VALUE; // At this stage the HSI is used as system clock
   HAL_Init();
 
+  // Enable CPU L1-Cache
+  SCB_EnableICache();
+  SCB_EnableDCache();
+
   /* Configure the System clock source, PLL Multiplier and Divider factors,
      AHB/APBx prescalers and Flash settings */
   SetSysClock();
@@ -575,10 +579,6 @@
   RCC_ClkInitTypeDef RCC_ClkInitStruct;
   RCC_OscInitTypeDef RCC_OscInitStruct;
 
-  // Enable CPU L1-Cache
-  SCB_EnableICache();
-  SCB_EnableDCache();
-
   // Enable power clock  
   __PWR_CLK_ENABLE();