-
Notifications
You must be signed in to change notification settings - Fork 2k
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
boards/esp32: changes the approach for configurations of PWM channels in board definitions #11292
boards/esp32: changes the approach for configurations of PWM channels in board definitions #11292
Conversation
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.
Looks good. Tested on esp32-wroom-32 and still works as intended. ACK
7e56842
to
f5adc45
Compare
PWM channels are now configured using static array in header files instead of static variables in implementation.
PWM channels are now configured using static array in header files instead of static variables in implementation.
f5adc45
to
bd354dd
Compare
@leandrolanzieri Can we merge this PR and PR #11293 to keep board definition approach consistent for all peripherals of ESP2 boards? |
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.
Retested, looks good. ACK.
Thanks for testing again. |
Contribution description
This PR changes the approach of peripheral configurations for PWM channels in board definitions to the usual RIOT approach. With these changes, peripheral configurations use static const arrays in the
boards/esp32*/periph_conf.h
files and define the*_NUMOF
macros using the size of these static array.The static configuration arrays contain only definitions that can be changed by the board definition or the application. They do not contain any MCU implementation detail. The board definitions use preprocessor defines as before to fill these static configuration arrays. This makes it possible to override all configurations either with the make command or application specific configuration files.
Please note that commit 8b48dfd is in also in related PRs to get each PR compilable separately.
Testing procedure
Compilation and test with the most common ESP32 board should be executed
Issues/PRs references
PRs #11289 #11290 #11291 #11292 #11293 #11294 are releated and should be merged together.
Depends on PR #11289