gpio_enable()
Get or set the GPIO enable state
Synopsis:
#include <hw/gpio_hw.h>
int32_t (*gpio_enable)( gpio_header_t *gpio_hdr,
gpio_enable_t *enable,
uint8_t set );
Arguments:
- gpio_hdr
- A pointer to the GPIO header.
- enable
- A pointer to the GPIO enable state.
- set
- The operation selector. The
GPIO_CFG_SETflag sets the enable state. Otherwise, the function returns the current state.
Description:
The gpio_enable() function gets or sets the GPIO enable state. Using this function is optional.
Returns:
EOK on success or errno if an error occurred.
Page updated:
