Hi,
Working with a nRF9160dk here.
Documentation states, that the GPIO_INT_DEBOUNCE flag should just be ignored when configuring a pin, if it is not available in the driver.
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/peripherals/gpio.html

But in the PCAL6408 driver you can find the following:
static int pcal6408a_pin_configure(const struct device *dev,
gpio_pin_t pin,
gpio_flags_t flags)
{
struct pcal6408a_drv_data *drv_data = dev->data;
struct pcal6408a_pins_cfg pins_cfg;
gpio_flags_t flags_io;
int rc;
/* This device does not support open-source outputs, and open-drain
* outputs can be only configured port-wise. It also does not support
* debouncing.
*/
if ((flags & GPIO_SINGLE_ENDED) != 0 ||
(flags & GPIO_INT_DEBOUNCE) != 0) {
return -ENOTSUP;
}
// ...
}
When the debounce flag is given, it aborts with -ENOTSUP.
Since this C-Module has the Nordic Copyright on it, I thought to post this here, so either the documentation or the driver can get updated, or I will get told that I am misunderstanding something, which is also very possible :)