Some IRQ clears the flag by just the hardware just jumping to the ISR, some does it when you read a register, with GPIO's you have to clear it by hand. >Toggle interrupt edge SWITCH DEBOUNCING If it was just that simple, due do so many fast noise-spikes on a Switch button, you could end up missing the last edge and looking for a edge that you missed.
↧