Debouncing multiple buttons using schmitt trigger

If an interrupt and SW debounce is needed simply disable it in the ISR and enable it after the button is released again. You may use the enable bit instead of the SW flag.