mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.

Dependents:   mbed_blinky-bmd-200 bmd-200_accel_demo firstRig

Fork of mbed-src by mbed official

Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.

Revision:
127:ce7cebc0511f
Parent:
113:65a335a675de
Child:
160:6870f452afa4
diff -r 549ba18ddd81 -r ce7cebc0511f common/gpio.c
--- 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)