gpio_pull()

Get or set the GPIO pull configuration for a pin

Synopsis:

#include <hw/gpio_hw.h>

int32_t (*gpio_pull)( gpio_header_t *gpio_hdr,
                      gpio_pull_t *pull,
                      uint8_t set );

Arguments:

gpio_hdr
A pointer to the GPIO header.
pull
A pointer to the GPIO pull configuration.
set
The operation selector. The GPIO_CFG_SET flag sets the pull configuration. Otherwise, the function returns the current pull.

Description:

The gpio_pull() function gets or sets the GPIO pull configuration. Using this function is optional.

Returns:

EOK on success or errno if an error occurred.

Page updated: