The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: TARGET_NUCLEO_F302R8/TARGET_STM/TARGET_STM32F3/gpio_object.h
- Revision:
- 100:cbbeb26dbd92
- Parent:
- 97:433970e64889
- Child:
- 122:f9eeca106725
--- a/TARGET_NUCLEO_F302R8/TARGET_STM/TARGET_STM32F3/gpio_object.h Wed May 13 08:08:21 2015 +0200 +++ b/TARGET_NUCLEO_F302R8/TARGET_STM/TARGET_STM32F3/gpio_object.h Wed May 27 08:07:35 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; }