}
}
+/*
+ * This function enables filtering the GPIO input signal, using one of the filtering
+ * clock dividers which must be configured before calling this function by using the
+ * config_gpio_filtering_clk_divider() function.
+ */
+void config_gpio_add_filtering(const struct pio* gpio, uint8_t filt_cnt, uint8_t filt_clk)
+{
+ config_pio(gpio, LPC_IO_SAMPLE_MODE(filt_cnt) | LPC_IO_SAMPLE_CLK_DIV(filt_clk) | LPC_IO_DIGITAL);
+}
+
/***************************************************************************** */
/* GPIO Interrupts Callbacks */
static void (*gpio_callbacks_port0[PORT0_NB_PINS]) (uint32_t);
*/
void config_gpio(const struct pio* gpio, uint32_t mode, uint8_t dir, uint8_t ini_val);
+/*
+ * This function enables filtering the GPIO input signal, using one of the filtering
+ * clock dividers which must be configured before calling this function by using the
+ * config_gpio_filtering_clk_divider() function.
+ */
+void config_gpio_add_filtering(const struct pio* gpio, uint8_t filt_cnt, uint8_t filt_clk);
+
+
/* GPIO Interrupts */
/* Add a callback on a GPIO interrupt.