1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph_pm
Benjamin Valentin 05db5c64bd tests/periph_pm: use button as a wake-up source
To test if GPIO interrupts can wake the CPU from sleep, configure
BTN0 (if availiable) as a wake-up source.

Pressing the buttong should wake up the CPU.
2019-12-04 16:18:16 +01:00
..
main.c tests/periph_pm: use button as a wake-up source 2019-12-04 16:18:16 +01:00
Makefile tests/periph_pm: use button as a wake-up source 2019-12-04 16:18:16 +01:00
Makefile.ci tests: add stm32f030f4-demo to Makefile.ci 2019-10-21 15:33:11 +02:00
README.md

Expected result

You should be presented with the RIOT shell, providing you with commands to test the power management implementation by forcing the CPU to set a certain power mode. An external power measurement device is needed to observe the effect.

Some power modes may require a certain event to wake up. Reset the CPU if needed.

If a RTC peripheral is available, an additional command to temporarily unblock a power mode is available (provided that the CPU can wake-up from given power mode).

Background

Test the functionality of the platform's power management implementation.