gpio_debounce()

Get or set the GPIO interrupt debounce configuration

Synopsis:

#include <hw/gpio_hw.h>

int32_t (*gpio_itype)( gpio_header_t *gpio_hdr,
                       int32_t *debounce,
                       uint8_t set );

Arguments:

gpio_hdr
A pointer to the GPIO header.
debounce
The debounce value.
set
The operation selector. The GPIO_CFG_SET flag sets the interrupt trigger type. Otherwise, the function returns the current type.

Description:

The gpio_debounce() function gets or sets the GPIO interrupt debounce configuration. Using this function is optional.

Returns:

EOK on success or errno if an error occurred.

Page updated: