mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
181:57724642e740
Parent:
149:156823d33999
Child:
188:bcfe06ba3d64
--- a/targets/TARGET_NUVOTON/TARGET_M451/gpio_api.c	Wed Jan 17 15:23:54 2018 +0000
+++ b/targets/TARGET_NUVOTON/TARGET_M451/gpio_api.c	Fri Feb 16 16:09:33 2018 +0000
@@ -37,6 +37,11 @@
     return (uint32_t)(1 << pin_index);    // Return the pin mask
 }
 
+int gpio_is_connected(const gpio_t *obj)
+{
+    return (obj->pin != (PinName) NC);
+}
+
 void gpio_init(gpio_t *obj, PinName pin)
 {
     obj->pin = pin;