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

pull/8341/head
Fred.Li 2018-08-22 15:01:55 +08:00 committed by adbridge
parent e70f3b52ed
commit c0f99a47a4
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); 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 #endif