mirror of https://github.com/ARMmbed/mbed-os.git
Nucleo F103RB - gpio_is_connected method readdition
parent
bad3d049d8
commit
b75b7a456e
|
@ -64,6 +64,10 @@ static inline int gpio_read(gpio_t *obj)
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue