mirror of
https://github.com/arduino-libraries/ArduinoLowPower.git
synced 2025-04-22 09:42:54 +03:00
Sleep also triggers USB subsystem standly
Requires SAMD core >= 1.6.14
This commit is contained in:
parent
e0fcfbd199
commit
10471dd7f3
@ -14,6 +14,7 @@ void ArduinoLowPowerClass::idle(uint32_t millis) {
|
||||
}
|
||||
|
||||
void ArduinoLowPowerClass::sleep() {
|
||||
USBDevice.standby();
|
||||
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
|
||||
__DSB();
|
||||
__WFI();
|
||||
|
Loading…
x
Reference in New Issue
Block a user