-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
feat(LEDC): Adds the ability to set the clock source for the LEDC #10171
Conversation
👋 Hello konzen, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @konzen for this nice improvement.
Just one thing, I would rather change the APIs to:
ledcSetClockSource
and ledcGetClockSource
Also will you be able to update the documentation with those new functions?
(If not I can handle that :))
@P-R-O-C-H-Y seems there is no response here. Could you please take over and finish the PR so we can merge it? |
Sure |
Test Results 56 files 56 suites 4m 51s ⏱️ Results for commit 5bed7e0. ♻️ This comment has been updated with latest results. |
Sorry for the delay in responding, I was traveling for work. |
As for updating the documentation, my English is "by Google Translate", I don't think it would be suitable. Could you handle that, please? |
cores/esp32/esp32-hal-ledc.c
Outdated
@@ -47,6 +47,21 @@ ledc_periph_t ledc_handle = {0}; | |||
|
|||
static bool fade_initialized = false; | |||
|
|||
ledc_clk_cfg_t clock_source = LEDC_DEFAULT_CLK; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you!
Thanks @konzen ! Looks good to me now |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
Today the LEDC clock source is fixed, which limits the possibilities, such as light sleep compatibility "ledcWriteClockSource(LEDC_USE_RC_FAST_CLK)".