1
0
mirror of https://github.com/arduino-libraries/ArduinoLowPower.git synced 2025-10-14 15:48:09 +03:00
Commit Graph

10 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
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
9204b58012 Target only SAMD architecture 2017-03-13 12:58:48 +01:00
Martino Facchin
562190f552 Add APIs for boards with companion chip (eg. Tian) 2016-12-06 18:43:05 +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
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