mbed library sources
Fork of mbed-src by
Revision 446:b421ac8a7b41, committed 2015-01-17
- Comitter:
- mbed_official
- Date:
- Sat Jan 17 10:30:07 2015 +0000
- Parent:
- 445:3312ed629f01
- Child:
- 447:78d5dca142f0
- Commit message:
- Synchronized with git revision af8cf8447dda537306a2f54a4d02b9c162a1a4ce
Full URL: https://github.com/mbedmicro/mbed/commit/af8cf8447dda537306a2f54a4d02b9c162a1a4ce/
Fixes to get LPC4330 GCC based builds to run
Changed in this revision
targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c | Show annotated file Show diff for this revision Revisions of this file |
--- 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--) ; }