ads1115 only

Fork of mbed by mbed official

Revision:
93:e188a91d3eaa
Parent:
86:04dd9b1680ae
diff -r 4fc01daae5a5 -r e188a91d3eaa TARGET_LPC1114/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h
--- a/TARGET_LPC1114/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h	Thu Nov 27 13:33:22 2014 +0000
+++ b/TARGET_LPC1114/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h	Tue Feb 03 15:31:20 2015 +0000
@@ -43,6 +43,10 @@
     return ((*obj->reg_mask_read) ? 1 : 0);
 }
 
+static inline int gpio_is_connected(const gpio_t *obj) {
+    return obj->pin != (PinName)NC;
+}
+
 #ifdef __cplusplus
 }
 #endif