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: hal/gpio_api.h
- Revision:
- 455:8bc3a354916d
- Parent:
- 113:65a335a675de
--- a/hal/gpio_api.h Tue Jan 27 07:15:07 2015 +0000 +++ b/hal/gpio_api.h Tue Jan 27 13:30:08 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);