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

Fixes ESP32-S2 LEDC PWM #5375 #5050 #5452

Merged
merged 1 commit into from
Jul 26, 2021
Merged

Fixes ESP32-S2 LEDC PWM #5375 #5050 #5452

merged 1 commit into from
Jul 26, 2021

Conversation

SuGlider
Copy link
Collaborator

Fixes: #5375
Fixes: #5050

@SuGlider SuGlider requested a review from me-no-dev July 25, 2021 23:12
@SuGlider SuGlider self-assigned this Jul 25, 2021
@@ -115,6 +115,10 @@ static void _ledcSetupTimer(uint8_t chan, uint32_t div_num, uint8_t bit_num, boo
uint8_t group=(chan/8), timer=((chan/2)%4);
static bool tHasStarted = false;
static uint16_t _activeChannels = 0;
#if CONFIG_IDF_TARGET_ESP32S2
Copy link
Member

Choose a reason for hiding this comment

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

is this true just for S2 or also for C3 (S3 maybe?)

Copy link
Collaborator Author

@SuGlider SuGlider Jul 26, 2021

Choose a reason for hiding this comment

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

I tested it on C3 as well. It works fine on it given that C3 has not such bit, thus there is no issue/fix to be done.

Copy link
Collaborator Author

@SuGlider SuGlider Jul 26, 2021

Choose a reason for hiding this comment

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

S3 not tested, but it shall work as it follows the same register/bit set of C3 regarding CLK SELECTION for LEDC Timer/Counter.

@me-no-dev me-no-dev merged commit 65eafd1 into espressif:master Jul 26, 2021
@SuGlider SuGlider deleted the issue_5375 branch August 9, 2021 17:46
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.

LEDC on ESP32-S2 frequency calculation ESP32-S2 PWM for a Servo pulse
2 participants