Skip to content

Rework PWM_RESOLUTION #814

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

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Dec 3, 2019

Summary

Rework PWM_RESOLUTION

There is no more distinction between pwm resolution
at Arduino API level and at HardwareTimer level.
PWM_RESOLUTION is default resolution (Arduinio API and HardwareTimer)
It is set to 8 bits like default Arduino pwm resolution.
HardwareTimer resolution can now take any value from 1bit to 16bit
(like Arduino API).
Remove variant PWM_RESOLUTION configuration when it is set to 8,
as it is already the default value.

Fixes #790

There is no more distinction between pwm resolution
at arduino API level and at HardwareTimer level.
PWM_RESOLUTION is default resolution (Arduinio API and HardwareTimer)
It is set to 8bit like default arduino pwm resolution.
HardwareTimer resolution can now take any value from 1bit to 16bit
(like Arduino API).
Remove variant PWM_RESOLUTION configuration when it is set to 8,
as it is already the default value.
Fixes stm32duino#790
@ABOSTM ABOSTM force-pushed the HARDWARETIMER_PWMRESOLUTION branch from 0979ffe to 9f74349 Compare December 4, 2019 14:31
@fpistm fpistm self-requested a review December 9, 2019 07:44
@fpistm fpistm added the fix 🩹 Bug fix label Dec 9, 2019
@fpistm fpistm added this to the 1.8.0🎄 🎅 milestone Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 🩹 Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HardwareTimer PWM resolution stuck at 12-bit?
2 participants