Interrupts on DUE. Odd behaviour of attachinterrupt()

I checked the data sheet. Before being explicitly configured, the pin interrupts will be detected on any input transition, potentially the ones that happen during device startup. And there are a bunch of different register to set, so it might go though intermediate states when other conditions set the int bit. uggh.

Otoh, it looks like reading some of those int statuses might reset the all, which would be a bad thing…. Sigh.