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:
127:ce7cebc0511f
Parent:
113:65a335a675de
Child:
160:6870f452afa4
--- a/common/gpio.c	Wed Mar 19 16:00:09 2014 +0000
+++ b/common/gpio.c	Wed Mar 19 17:15:21 2014 +0000
@@ -17,9 +17,9 @@
 
 static inline void _gpio_init_in(gpio_t* gpio, PinName pin, PinMode mode)
 {
-    gpio_init(gpio, pin);
+    gpio_init(gpio, pin);    
+    gpio_dir(gpio, PIN_INPUT);
     gpio_mode(gpio, mode);
-    gpio_dir(gpio, PIN_INPUT);
 }
     
 static inline void _gpio_init_out(gpio_t* gpio, PinName pin, PinMode mode, int value)