cpu/sam0_common: GPIO: ignore interrupts when interrupts are disabled
cpu/sam0_common: GPIO: ignore interrupts when interrupts are disabled

If we disable an external interrupt, GPIO events that would generate an interrupt will still set the interrupt flag.
That means once we enable the interrupt again, a stale interrupt will be triggered.

This is surprising and probably not what the user wants, unfortunately the API documentation is not very clear about what to expect.
There is however no way to drop those intermediate interrupts with the current API.

Ignoring the events that occurred while the GPIO interrupt were disabled is probably the right (and expected) thing to.

OTAkeys/RIOT,ant9000/RIOT,RIOT-OS/RIOT,OlegHahm/RIOT,OlegHahm/RIOT,OTAkeys/RIOT,miri64/RIOT,kYc0o/RIOT,jasonatran/RIOT,kYc0o/RIOT,authmillenon/RIOT,jasonatran/RIOT,miri64/RIOT,OTAkeys/RIOT,kaspar030/RIOT,jasonatran/RIOT,miri64/RIOT,authmillenon/RIOT,kaspar030/RIOT,kaspar030/RIOT,authmillenon/RIOT,kYc0o/RIOT,ant9000/RIOT,RIOT-OS/RIOT,jasonatran/RIOT,kaspar030/RIOT,RIOT-OS/RIOT,kaspar030/RIOT,kYc0o/RIOT,ant9000/RIOT,jasonatran/RIOT,authmillenon/RIOT,OTAkeys/RIOT,authmillenon/RIOT,authmillenon/RIOT,OlegHahm/RIOT,miri64/RIOT,RIOT-OS/RIOT,OTAkeys/RIOT,ant9000/RIOT,OlegHahm/RIOT,miri64/RIOT,RIOT-OS/RIOT,ant9000/RIOT,kYc0o/RIOT,OlegHahm/RIOT