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.
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.