Add support for low-power run/sleep mode#45
Merged
arkorobotics merged 7 commits intostm32-rs:masterfrom Oct 1, 2019
braun-embedded:pwr
Merged
Add support for low-power run/sleep mode#45arkorobotics merged 7 commits intostm32-rs:masterfrom braun-embedded:pwr
arkorobotics merged 7 commits intostm32-rs:masterfrom
braun-embedded:pwr
Conversation
I haven't seen any specific problems, but I've come across the piece of documentation linked in the comment. Since resetting the peripheral is not necessary here, I prefer to be on the safe side.
This makes all low-power modes with `LowPowerSleepMode`, which already works this way. It's also going to be useful going forward, as it's strictly more flexible for the very little cost of an additional `.0` here and there.
This makes the code a bit nicer, and will also enable re-use going forward.
Contributor
Author
|
cc @lthiery |
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds complete support for entering all low-power modes supported by the hardware. Also contains a commit with a small PWR-related fix.