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-dev by
Diff: targets/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c
- Revision:
- 182:57724642e740
- Parent:
- 149:156823d33999
diff -r 96ed750bd169 -r 57724642e740 targets/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c
--- a/targets/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c Wed Jan 17 15:23:54 2018 +0000
+++ b/targets/TARGET_NUVOTON/TARGET_NUC472/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;
