Skip to content

cpu/esp32: use ESP-IDF ledc HAL for periph/pwm#18276

Merged
benpicco merged 4 commits intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/periph_hal_esp32_pwm
Jul 14, 2022
Merged

cpu/esp32: use ESP-IDF ledc HAL for periph/pwm#18276
benpicco merged 4 commits intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/periph_hal_esp32_pwm

Conversation

@gschorcht
Copy link
Copy Markdown
Contributor

Contribution description

This PR is a split-off from PR #17841 with following changes:

  • ESP-IDF dac interface API for RIOT is added.
  • ESP-IDF ledc HAL is used for periph/pwm
  • `periph/pwm driver uses the ESP32 LEDC_PWM controller instead of the MCPWM controller.

The reason why the LEDC_PWM controller is now used instead of the MCPWM controller is that the LEDC_PWM is available on all ESP32x SoC variants while the MCPWM is only available on ESP32 and ESP32-S3. To be able to use the driver for all ESP32x SoC variants the LEDC_PWM control is used.

Testing procedure

Compile and test with

BOARD=esp32-wroom-32 make -j8 -C tests/periph_pwm flash term

Issues/PRs references

Split-off from PR #17841

@github-actions github-actions bot added Area: boards Area: Board ports Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation Platform: ESP Platform: This PR/issue effects ESP-based platforms labels Jun 28, 2022
@gschorcht gschorcht requested a review from benpicco June 28, 2022 16:45
@gschorcht gschorcht added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jun 28, 2022
Copy link
Copy Markdown
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

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

Please squash

@gschorcht gschorcht force-pushed the cpu/esp32/periph_hal_esp32_pwm branch from c24762f to 77647ea Compare July 14, 2022 13:51
@benpicco benpicco enabled auto-merge July 14, 2022 14:10
@benpicco benpicco merged commit 94e9116 into RIOT-OS:master Jul 14, 2022
@gschorcht
Copy link
Copy Markdown
Contributor Author

@benpicco Thanks for reviewing and merging.

@gschorcht gschorcht deleted the cpu/esp32/periph_hal_esp32_pwm branch July 14, 2022 16:14
@chrysn chrysn added this to the Release 2022.07 milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: boards Area: Board ports Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants