Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_object.h
- Revision:
- 455:8bc3a354916d
- Parent:
- 227:7bd0639b8911
diff -r a07e52520545 -r 8bc3a354916d targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_object.h
--- a/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_object.h Tue Jan 27 07:15:07 2015 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_object.h Tue Jan 27 13:30:08 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
