gpio_set_pulls

Function gpio_set_pulls 

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

\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.