mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Revision:
93:e188a91d3eaa
Parent:
88:9327015d4013
--- a/TARGET_ARCH_BLE/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_object.h	Thu Nov 27 13:33:22 2014 +0000
+++ b/TARGET_ARCH_BLE/TARGET_NORDIC/TARGET_MCU_NRF51822/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