1
0
mirror of https://github.com/arduino-libraries/ArduinoLowPower.git synced 2025-04-19 11:42:14 +03:00

20 Commits

Author SHA1 Message Date
Alexander Entinger
b615a89714
Remove support for ArduinoCore-Primo. (#55)
The board is retired and the corresponding core (https://github.com/arduino/ArduinoCore-primo) has been archived. Considering that no one is going to maintain the low power code for nRF52/Primo its better to get rid of it alltogether (and no longer advertise compatibility to 'nrf52' which - imho rightfully - seems to confuse a lot of people.
2023-01-02 09:22:47 +01:00
per1234
fbee85bfbc Correct typos in comments and documentation 2021-04-12 02:42:35 -07:00
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
Martino Facchin
10471dd7f3 Sleep also triggers USB subsystem standly
Requires SAMD core >= 1.6.14
2017-04-04 11:01:57 +02:00
Martino Facchin
9204b58012 Target only SAMD architecture 2017-03-13 12:58:48 +01:00
Martino Facchin
0f7f5904ad [SAMD] use RTC.begin(false) for new RTC library behaviour 2017-01-17 16:37:34 +01:00
Martino Facchin
562190f552 Add APIs for boards with companion chip (eg. Tian) 2016-12-06 18:43:05 +01:00
Martino Facchin
5175ae9fd2 [ARC32] add missing includes 2016-12-06 18:42:55 +01:00
Martino Facchin
3e4915e8c9 Import latest code from @bigdinotech 2016-12-06 17:10:13 +01:00
Martino Facchin
7304fe0419 [ARC32] RTC wakeup from idle() works
code from https://github.com/bigdinotech/Arduino101Power/
2016-11-14 17:24:10 +01:00
Martino Facchin
e99fcefe8b Initial ARC32 implementation
The includes and relevant (non wrapper) functions are borrowed from Zephyr 1.5.0

The implementation is still broken:
- an RTC driver is still missing, so no timed wakeup possible
- only the AON pins configured as LEVEL can wakeup the processor
  on Arduino101, the only AON broken out is RESET button
  Changing the main loop in CODK-A allows operating the button without triggering a reboot. However, the board doesn't wakeup from deep sleep (am I missing something maybe?)
2016-11-11 16:20:30 +01:00
Martino Facchin
63b24bed79 Move SAMD implementation to proper file 2016-11-11 16:18:51 +01:00
Martino Facchin
60dedcc4b0 [SAMD] fix RTC wakeup and FALLING/RISING on pin 2016-11-03 16:52:54 +01:00
Martino Facchin
e159ecf46f [WIP] initial API design
samd basic functions ported
2016-10-28 18:30:13 +02:00