mbed library sources

Fork of mbed-src by mbed official

Revision:
527:74d34ce5a2b5
Parent:
525:c320967f86b9
Child:
548:1abac31e188e
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/mbed_overrides.c	Tue Apr 28 13:00:10 2015 +0100
+++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/mbed_overrides.c	Tue Apr 28 22:45:18 2015 +0100
@@ -50,7 +50,12 @@
     CMU_ClockSelectSet(cmuClock_LFA, LFXO);
 #endif
 #ifdef CMU_LFBCLKSEL_REG
-    CMU_ClockSelectSet(cmuClock_LFB, LFXO);
+	  /* cmuClock_LFB (to date) only has LEUART peripherals.
+		*  Do NOT set it up here, as LEUARTs might have been initialized
+		*	 before this code is called. (Limitation of the override mechanism of ARMCC) 
+		*/
+		//TODO: Look for a more elegant fix.
+    //CMU_ClockSelectSet(cmuClock_LFB, LFXO);
 #endif
 #ifdef CMU_LFECLKSEL_REG
     CMU_ClockSelectSet(cmuClock_LFE, LFXO);