mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Revision:
93:e188a91d3eaa
Parent:
81:7d30d6019079
--- 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);