mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
534:6cdb58309977
Parent:
526:7c4bdfe6a168
Child:
548:1abac31e188e
--- 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