mbed library sources

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue May 05 08:00:08 2015 +0100
Parent:
533:589848968e4d
Child:
535:35ad5cbb2f6a
Commit message:
Synchronized with git revision 16156f526db4b960762ba02dab48025d9d9a4531

Full URL: https://github.com/mbedmicro/mbed/commit/16156f526db4b960762ba02dab48025d9d9a4531/

Updated Thread.cpp|.h to support signal clear

Changed in this revision

targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h	Mon May 04 08:30:08 2015 +0100
+++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h	Tue May 05 08:00:08 2015 +0100
@@ -64,7 +64,7 @@
 #define HFRCO_FREQUENCY 		CMU_HFRCOCTRL_BAND_14MHZ
 
 #define LFXO_FREQUENCY			32768
-#define HFXO_FREQUENCY			32000000
+#define HFXO_FREQUENCY			48000000
 
 #if (LOW_ENERGY_CLOCK_SOURCE == LFXO)
 #define LOW_ENERGY_CLOCK_FREQUENCY	LFXO_FREQUENCY
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h	Mon May 04 08:30:08 2015 +0100
+++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h	Tue May 05 08:00:08 2015 +0100
@@ -64,7 +64,7 @@
 #define HFRCO_FREQUENCY 		CMU_HFRCOCTRL_BAND_14MHZ
 
 #define LFXO_FREQUENCY			32768
-#define HFXO_FREQUENCY			32000000
+#define HFXO_FREQUENCY			48000000
 
 #if (LOW_ENERGY_CLOCK_SOURCE == LFXO)
 #define LOW_ENERGY_CLOCK_FREQUENCY	LFXO_FREQUENCY
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c	Mon May 04 08:30:08 2015 +0100
+++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c	Tue May 05 08:00:08 2015 +0100
@@ -59,6 +59,12 @@
 {
     obj->mode = mode; // Update object
     pin_mode(obj->pin, mode); // Update register
+    
+    //Handle pullup for input
+    if(mode == InputPullUp) {
+        //Set DOUT
+        GPIO->P[obj->port & 0xF].DOUTSET = 1 << (obj->pin & 0xF);
+    }
 }
 
 // Used by DigitalInOut to set correct mode when direction is set