[−][src]Function mynewt::hw::hal::hal_gpio_init_out
pub unsafe extern "C" fn hal_gpio_init_out(pin: c_int, val: c_int) -> c_int
Initialize the specified pin as an output, setting the pin to the specified value.
pin
: Pin number to set as outputval
: Value to set pin
Return: int 0: no error; -1 otherwise.