marcus chiou / mbed-src

Fork of mbed-src by mbed official

Revision:
446:b421ac8a7b41
Parent:
294:78f9587bb26d
--- a/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c	Thu Jan 15 19:30:07 2015 +0000
+++ b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c	Sat Jan 17 10:30:07 2015 +0000
@@ -150,12 +150,10 @@
     SCB->VTOR = (unsigned int) &g_pfnVectors;
 #endif
 
-#if !defined(TOOLCHAIN_GCC)
 #if defined(__FPU_PRESENT) && __FPU_PRESENT == 1
     /* Initialize floating point */
     fpuInit();
 #endif
-#endif
 
     SystemSetupPins(pre_clock_mux, COUNT_OF(pre_clock_mux)); /* Configure pins */
     SystemSetupClock();   /* Configure processor and peripheral clocks */
@@ -367,7 +365,7 @@
 
 static void WaitUs(uint32_t us)
 {
-    uint32_t  cyc = us * CPU_NANOSEC(1000) / 4;
+    volatile uint32_t  cyc = us * CPU_NANOSEC(1000) / 4;
     while (cyc--)
         ;
 }