Fix link issue for mbed-cloud-client-example with ARM toolchain.

pull/7856/head
Fred.Li 2018-08-22 15:01:55 +08:00
parent b53a9ea4c0
commit 84eda278a5
1 changed files with 9 additions and 0 deletions

View File

@ -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