ArduinoCore-samd icon indicating copy to clipboard operation
ArduinoCore-samd copied to clipboard

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

Open jonas-koeritz opened this issue 2 years ago • 0 comments

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.

jonas-koeritz avatar Jan 11 '24 08:01 jonas-koeritz