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.
Dependents: WizFi250_AP_HelloWorld
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_STM32F4XX/gpio_object.h
- Revision:
- 461:b90c5392bbcd
- Parent:
- 227:7bd0639b8911
--- a/targets/hal/TARGET_STM/TARGET_STM32F4XX/gpio_object.h Mon Feb 02 11:30:07 2015 +0000
+++ b/targets/hal/TARGET_STM/TARGET_STM32F4XX/gpio_object.h Mon Feb 02 16:00:07 2015 +0000
@@ -46,6 +46,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
