Glitch filter is not supported yet
The TRM screenshot seems to imply that configuring the glitch filter needs the corresponding filter (#2647) to be enabled, too.
selects one signal from the [...] output signals from the GPIO Filter hardware
Apart from that, we can add support for this feature by:
- Creating peripheral singletons for the glitch filter channels
- Adding a
with_glitch_filterfunction toInputthat works similar to how we assign pins to peripherals - it would take aimpl Peripheral<P=CH>+'dand use it as the glith filter for the lifetime of the pin. I'd probably pass the glitch filter's configuration here, too.
Because there seems to be a way to implement this after 1.0, I'm changing the blocker label to reflect this.
+1 on this - i'm using the esp32c6 to read an anemometer (among other sensors), but the 'glitching' on the input pins is causing interrupts to trigger multiple times - usually on both posedge and negedge.
Being able to use the built-in peripheral for dealing with this would be greatly preferred - i've already added hardware de-bouncing via an RC filter, but despite cleaning up the signal the interrupt is still triggering multiple times.
Thanks!