mynewt::hw::hal
pub unsafe extern "C" fn hal_gpio_read(pin: c_int) -> c_int
Reads the specified pin.
pin
Return: int 0: low, 1: high