mbed library sources
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F303RE/gpio_object.h
- Revision:
- 461:b90c5392bbcd
- Parent:
- 423:560d1a9f3083
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F303RE/gpio_object.h Mon Feb 02 11:30:07 2015 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F303RE/gpio_object.h Mon Feb 02 16:00:07 2015 +0000 @@ -64,6 +64,10 @@ return ((*obj->reg_in & obj->mask) ? 1 : 0); } +static inline int gpio_is_connected(const gpio_t *obj) { + return obj->pin != (PinName)NC; +} + #ifdef __cplusplus } #endif