mirror of https://github.com/ARMmbed/mbed-os.git
Fix link issue for mbed-cloud-client-example with ARM toolchain.
parent
e70f3b52ed
commit
c0f99a47a4
|
@ -199,4 +199,13 @@ void gpio_deinit(gpio_t *obj)
|
|||
HAL_GPIO_DeInit(&obj->hal_pin);
|
||||
}
|
||||
|
||||
int gpio_is_connected(const gpio_t *obj)
|
||||
{
|
||||
if(obj->pin != (PinName)NC){
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue