mbed(SerialHalfDuplex入り)
Fork of mbed by
Diff: TARGET_XADOW_M0/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h
- Revision:
- 93:e188a91d3eaa
- Parent:
- 87:6213f644d804
--- a/TARGET_XADOW_M0/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h Thu Nov 27 13:33:22 2014 +0000 +++ b/TARGET_XADOW_M0/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