I need a quick way of adding some de-bouncing to a button in hardware. I am aware that ultimately the software should really do it, but for now I came up with this, saw it somewhere on internet:
Does it make sense? I would say GPIO node is HIGH when the button is not pressed, and it will be LOW when button is pressed.
In that case, what should be the configuration on MCU side? Obviously the pin should be configured as INPUT, but the question is should I enable any pull-up or pull-down resistors internally in the MCU?
Should the trigger be POS EDGE or NEG EDGE or HIGH or LOW? I am a bit confused about all the different possibilities.