Skip to content

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

@jonas-koeritz

Description

@jonas-koeritz

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.

Metadata

Metadata

Assignees

Labels

ArduinoCore-samdLabel for ArduinoCore-samdUAYUnassigned yet

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions