[−][src]Function mynewt::hw::hal::hal_gpio_init_in
pub unsafe extern "C" fn hal_gpio_init_in(
pin: c_int,
pull: hal_gpio_pull_t
) -> c_int
Initializes the specified pin as an input
pin
: Pin number to set as inputpull
: pull type
Return: int 0: no error; -1 otherwise.