1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam0_common
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
ldscripts sam0_common: Adjust ldscript memory segment attributes 2018-05-09 06:49:02 +02:00
periph cpu/sam0_common: Add CPU-specific WDT peripheral configuration 2020-03-31 13:39:39 +02:00
doc.txt cpu/sam0: update doc.txt with new MCU families 2019-07-17 11:37:46 +02:00
Kconfig cpu/sam0_common: Add CPU-specific WDT peripheral configuration 2020-03-31 13:39:39 +02:00
Makefile cpu/sam0: renamed sam21_common to sam0_common 2016-12-15 11:47:03 +01:00
Makefile.dep cpu/cortexm_common: Move common modules to Makefile.dep 2020-04-01 09:46:21 +02:00
Makefile.features cpu/sam0_common/periph/uart: implement buffered write 2019-11-27 19:01:00 +01:00
Makefile.include Merge pull request #13607 from benpicco/cpu/sam0_common/generic_RAM_ROM 2020-03-31 15:55:04 +02:00