1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/saml21
Benjamin Valentin 5d123cbb22 cpu/sam0_common: distribute PM_NUM_MODES among siblings
Also adapt the defines to the documentation

 - CPUs define up to 4 power modes (from zero, the lowest power mode,
   to PM_NUM_MODES-1, the highest)
 - >> there is an implicit extra idle mode (which has the number PM_NUM_MODES) <<

Previously on saml21 this would always generate pm_set(3) which is an illegal state.
Now pm_layered will correctly generate pm_set(2) for IDLE modes.

Idle power consumption dropped from 750µA to 368µA and wake-up from standby is also
possible. (Before it would just enter STANDBY again as the mode register was never
written with the illegal value.)
2020-04-01 18:10:23 +02:00
..
include cpu/sam0_common: distribute PM_NUM_MODES among siblings 2020-04-01 18:10:23 +02:00
periph cpu/sam0*: Wrap cortexm_sleep call 2020-02-24 11:48:13 +01:00
cpu.c cpu/sam0_common: add cpu_pm_cb_enter()/leave() 2020-03-31 17:18:58 +02:00
doc.txt cpu/sam0: add missing doxygen group definition + cleanup 2017-08-24 14:54:47 +02:00
Kconfig cpu/saml21: Add Kconfig file 2020-03-31 13:39:41 +02:00
Makefile cpu/sam0: renamed sam21_common to sam0_common 2016-12-15 11:47:03 +01:00
Makefile.dep cpu/sam0_common/periph/uart: implement buffered write 2019-11-27 19:01:00 +01:00
Makefile.features cpu/cortexm: move CPU_ARCH/FAM to Makefile.features 2020-02-17 16:02:48 +01:00
Makefile.include cpu/cortexm: move CPU_ARCH/FAM to Makefile.features 2020-02-17 16:02:48 +01:00
vectors.c cpu/cortexm: Remove leftover _estack declarations 2017-11-10 15:38:14 +01:00