Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: stm32: Do not hardcode the prescalers
The prescalers are currently hardcoded and are not user-selectable. As a result, the frequency of the timer can be inadequate to the task. For instance, the frequency of the 16-bit timers (prescaler 10000) is usually too low to correctly generate of PWM of a few kilohertz. Hardcoded prescalers are replaced by Kconfigs so the user can choose at compile time. The default value of each Kconfig matches the hardcoded prescaler, so the change will be transparent. Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
- Loading branch information
Showing
2 changed files
with
160 additions
and
20 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
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