Seeed-Studio / ArduinoCore-samd

49 stars 27 forks source link

Wrong assignment of wakeup bits to external interrupts in EnergySaving library (Seeeduino XIAO) #70

Closed jonas-koeritz closed 2 weeks ago

jonas-koeritz commented 10 months ago

Inside EnergySaving::enable_eic_wake, there is a switch/case that assigns the input pin number to a WAKEUPENx bit. This function mangles them up in a way that will never wake a Seeeduino XIAO correctly. The WAKEUPENx bits are not mixed up like the function suggests. Waking up from external interrupts start's working as soon as you set the WAKEUPENx bit of the pin used to ::begin() the EnergySaving calls with.

Lesords commented 1 month ago

Hello,

I'm very sorry to have kept you waiting so long.

Do you still have this problem now?

Lesords commented 2 weeks ago

Hello,

I\'m going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]