The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
93:e188a91d3eaa
Parent:
86:04dd9b1680ae
--- a/TARGET_LPC11U35_401/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h	Thu Nov 27 13:33:22 2014 +0000
+++ b/TARGET_LPC11U35_401/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