The official mbed C/C SDK provides the software platform and libraries to build your applications.
Fork of mbed by
Diff: TARGET_LPC11U35_501/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h
- Revision:
- 93:e188a91d3eaa
- Parent:
- 86:04dd9b1680ae
--- a/TARGET_LPC11U35_501/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h Thu Nov 27 13:33:22 2014 +0000 +++ b/TARGET_LPC11U35_501/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h Tue Feb 03 15:31:20 2015 +0000 @@ -45,6 +45,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