1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Marian Buschsieweke
9b0cf39312
tests/periph_pm: avoid abusing shell command
To allow marking the shell command static, add a trivial
_show_blockers() function that lists the current pm layered blocker
state.
2022-06-11 14:38:58 +02:00
Benjamin Valentin
7fb8f3b7c5 sys/pm_layered: rename val_u8 -> blockers 2022-04-06 12:29:25 +02:00
Benjamin Valentin
bb3995b462 tests/periph_pm: introduce set_rtc
Similar to unblock_rtc, but uses `pm_set()` instead of `pm_unblock()`.
2020-04-29 18:06:36 +02:00
Benjamin Valentin
ffdb115ffe tests/periph_pm: drop use of mktime()
The RTC implementation are expected to normalize the input struct.
2020-04-29 18:04:27 +02:00
Marian Buschsieweke
f6873dbac3
sys/pm: Add pm_get_blocker()
Provide access to pm_blocker via a well-defined API rather than hacks.
2020-04-29 11:21:03 +02:00
Thomas Stilwell
325ab426d4
sys/shell/commands: pm: add set mode block mode unblock mode 2020-04-28 16:56:34 +02:00
Thomas Stilwell
aa97e7b49a
tests/periph_pm: be more verbose about what pm_set() is doing 2020-04-28 16:51:24 +02:00
Thomas Stilwell
90579e81c9
tests/periph_pm: print current PM blockers on startup 2020-04-28 16:51:24 +02:00
Thomas Stilwell
100390cdca
tests/periph_pm: print block/unblock error instead of assertion failure 2020-04-28 16:51:23 +02:00
Gunar Schorcht
c0c478a145 tests/periph_pm: allow interrupt flank definition 2020-03-19 08:19:10 +01:00
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
Bas Stottelaar
74d496f99f tests: periph_pm: add peripheral test. 2018-04-05 10:57:52 +02:00