Skip to content

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

Merged
arkorobotics merged 7 commits intostm32-rs:masterfrom
braun-embedded:pwr
Oct 1, 2019
Merged

Add support for low-power run/sleep mode#45
arkorobotics merged 7 commits intostm32-rs:masterfrom
braun-embedded:pwr

Conversation

@hannobraun
Copy link
Contributor

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

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.
@hannobraun
Copy link
Contributor Author

cc @lthiery

@arkorobotics
Copy link
Member

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants