1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam0_common/include
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
..
vendor cpu/sam0_common: samr30: add integer literal macros 2020-02-25 21:52:24 +01:00
cpu_conf.h Merge pull request #12928 from benpicco/newlib-multiheap 2020-02-25 19:16:42 +01:00
exti_config.h cpu/sam0_common: use generic exti_config 2020-02-20 11:23:51 +01:00
periph_cpu_common.h cpu/sam0_common: distribute PM_NUM_MODES among siblings 2020-04-01 18:10:23 +02:00
sam_usb.h