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
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.
Diff: targets/hal/TARGET_STM/TARGET_STM32F3/gpio_object.h
- Revision:
- 548:1af5f1c39e80
- Parent:
- 511:4f5903e025e6
--- a/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_object.h Wed May 20 08:45:07 2015 +0100 +++ b/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_object.h Thu May 21 09:45:08 2015 +0100 @@ -64,7 +64,8 @@ return ((*obj->reg_in & obj->mask) ? 1 : 0); } -static inline int gpio_is_connected(const gpio_t *obj) { +static inline int gpio_is_connected(const gpio_t *obj) +{ return obj->pin != (PinName)NC; }