sys/shell: add pm command for power management#13679
sys/shell: add pm command for power management#13679gschorcht wants to merge 2 commits intoRIOT-OS:masterfrom
Conversation
|
Sorry, duplicate of #11731... |
|
@aabadie Sorry, duplicate of #11731 Okay, I didn't realize that, no problem. I just needed the |
|
At first glance this looks more mature than #11731 so I'm inclined to abandon it. @gschorcht could you add a |
Sure. |
Not sure, this PR introduces pm_cmd which I think is not needed (well, there are design decisions that should be further discussed, since The pm show command is also a nice addition in #11731. |
|
@aabadie you're right I'm sorry I completely forgot there was a review on that one already. IIRC I addressed the comments and neglected to say anything about it. I'll check on it now. |
Contribution description
This PR moves the
pmcommands fromtests/periph_pm' to a shell command modulepm_cmdto make them available for embedding in other applications, e.g. for debugging by usingThe test application
tests/periph_pmnow uses the shell command module instead of defining thepmcommands by itself.Dependent on module
pm_layeredand featureperiph_rtcthe following commands are available:The
set,block,unblockcommands are available if the platform supportspm_layerd. Theunblock_rtcis only available if the platform supportpm_layeredand featureperiph_rtc.Testing procedure
Compile and flash
tests/periphfor a board withperiph_rtcfeature, for exampleand excute the following tests:
pmcommandpmcommandIssues/PRs references