forked from stm32-rs/stm32l0xx-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add set_frequency method on PWM channels
This adds a method to PWM channels to change the underlying timer's frequency. This allows to dynamically change the PWM frequency when we have associated a channel with a pin. Otherwise this required unsafe to work around a partial move error because the channel was moved out of the timer struct. See stm32-rs#172 for more information
- Loading branch information
Showing
1 changed file
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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