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:
160:6870f452afa4
Parent:
13:0645d8841f51
Child:
458:8bc3a354916d
diff -r 3b23f6d9ecb9 -r 6870f452afa4 common/BusIn.cpp
--- a/common/BusIn.cpp	Mon Apr 14 10:30:07 2014 +0100
+++ b/common/BusIn.cpp	Mon Apr 14 11:30:06 2014 +0100
@@ -49,6 +49,14 @@
     return v;
 }
 
+void BusIn::mode(PinMode pull) {
+    for (int i=0; i<16; i++) {
+        if (_pin[i] != 0) {
+            _pin[i]->mode(pull);
+        }
+    }
+}
+
 #ifdef MBED_OPERATORS
 BusIn::operator int() {
     return read();