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

Refactor the LEDC driver to reduce duplicated code #130

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

jessebraham
Copy link
Member

There's still some code duplication, which may or may not be able to be simplified, however this reduces the size of the module quite significantly. Removed a few calls to unwrap() as well which weren't strictly necessary.

Only real difference will be that the High Speed timers will be documented for all chips in the module-level docs, though there is a clear note that they're only present on the ESP32.

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the cleanup!

@MabezDev MabezDev merged commit 601d70d into esp-rs:main Aug 3, 2022
@jessebraham jessebraham deleted the fixes/ledc-refactor branch August 3, 2022 14:17
har7an pushed a commit to har7an/esp-hal that referenced this pull request Aug 8, 2022
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