1
0
mirror of https://github.com/arduino-libraries/ArduinoLowPower.git synced 2025-11-05 17:10:38 +03:00
Commit Graph

7 Commits

Author SHA1 Message Date
Martino Facchin
b44168f223 Make the library compatible with both API and non API cores (#35)
Fixes https://github.com/arduino/ArduinoCore-samd/issues/578
2020-12-17 10:54:44 +01:00
Simon Knopp
fa71703f58 Add support for ADC wakeup interrupt on SAMD21
This can be used to configure the ADC window interrupt on the SAMD21. It
uses OSCULP32K via GCLK6 to clock the ADC while in sleep mode (the same
as used for the EIC).

Note that attachAdcInterrupt()/detachAdcInterrupt() should be called
immediately before/after LowPower.sleep() otherwise analogRead() will
not work as expected.

There is also an example (AdcWakeup.ino) which is much like the
ExternalWakeup example but uses the ADC interrupt instead.
2020-03-02 10:02:11 +13:00
per1234
fa5c24937c Allow sleep durations of 1 day or longer
Previously, sleep durations "overflowed" at one day, resulting in a maximum sleep duration of 1 millisecond less than a day.
2020-02-20 00:57:37 -08:00
sslupsky
892594adbc Fix SysTick timer lockup when waking from sleep (#17)
* fix SysTick timer lockup when waking from sleep
2019-05-14 09:56:55 +02:00
Stefan Lehmann
b38a5bc50c Add support for boards with different name of serial USB connection (#6)
* Replace SerialUSB by SERIAL_PORT_USBVIRTUAL

Support boards where USB serial is named differently. E.g. the
Adafruit Feather M0 uses Serial1 as name for serial USB port.
2018-08-20 15:43:46 +02:00
Martino Facchin
8cf4c737dd [SAMD] Disable USB on standby() 2017-07-13 17:01:03 +02:00
chiararuggeri
21d2f7527f Added nRF52 compatibility
Waking from deepSleep() is comparable to an hard reset; the sketch won't restart from the sleep invocation but the wakeuup source can be retrieved with wakeupReason()
2017-04-20 14:38:15 +02:00