Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for low-power run/sleep mode #45

merged 7 commits into from Oct 1, 2019

Add support for low-power run/sleep mode #45

merged 7 commits into from Oct 1, 2019


Copy link

@hannobraun hannobraun commented Oct 1, 2019

This adds complete support for entering all low-power modes supported by the hardware. Also contains a commit with a small PWR-related fix.

hannobraun added 7 commits Oct 1, 2019
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
Copy link
Contributor Author

hannobraun commented Oct 1, 2019

cc @lthiery

Copy link

arkorobotics commented Oct 1, 2019


@arkorobotics arkorobotics merged commit 1f2c083 into stm32-rs:master Oct 1, 2019
@hannobraun hannobraun deleted the pwr branch Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants