[][src]Function rpi_pico_sdk::gpio_set_pulls

pub unsafe extern "C" fn gpio_set_pulls(gpio: uint, up: bool, down: bool)

\brief Select up and down pulls on specific GPIO \ingroup hardware_gpio

\param gpio GPIO number \param up If true set a pull up on the GPIO \param down If true set a pull down on the GPIO

\note On the RP2040, setting both pulls enables a "bus keep" function, i.e. a weak pull to whatever is current high/low state of GPIO.