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:
81:7d30d6019079
Child:
122:f9eeca106725
--- a/gpio_api.h	Thu Nov 27 13:33:22 2014 +0000
+++ b/gpio_api.h	Tue Feb 03 15:31:20 2015 +0000
@@ -28,6 +28,12 @@
  **/
 uint32_t gpio_set(PinName pin);
 
+/* Checks if gpio object is connected (pin was not initialized with NC)
+ * @param pin The pin to be set as GPIO
+ * @return 0 if port is initialized with NC
+ **/
+int gpio_is_connected(const gpio_t *obj);
+
 /* GPIO object */
 void gpio_init(gpio_t *obj, PinName pin);