-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/esp32: changes the approach for configurations of DAC channels in board definitions #11290
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 DAC channels in board definitions #11290
Conversation
|
Tested on esp32-wroom-32 and works fine. I would still move the esp32-olimex-evb change to a different commit as it actually is not so related to the change of the way it is configured. |
|
@leandrolanzieri I reverted the commit with |
|
@gschorcht please squash |
leandrolanzieri
left a comment
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.
ACK
43bec86 to
bd64629
Compare
|
@leandrolanzieri Thanks for reviewing and testing. Squashed. |
bd64629 to
372f97c
Compare
98053e1 to
7e52c57
Compare
I meant rebase >:( |
|
@leandrolanzieri All PRs are rebased. I'm not sure about the order in which we should merge them. All PRs are compilable and are working separatly. However, all of them require the changes in commit 8ede5be and include this commit therefore. Therefore, I would suggest to start with PR #11289. After that, I will rebase all of them again. |
DAC pins are now configured using static arrays in header files instead of static variables in implementation to be able to define DAC_NUMOF using the size of these arrays instead of a variable.
DAC pins are now configured using static arrays in header files instead of static variables in implementation to be able to define DAC_NUMOF using the size of these arrays instead of a variable.
7e52c57 to
7e8a1c1
Compare
|
@leandrolanzieri I rebased PRs #11290 to #11294. |
leandrolanzieri
left a comment
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.
ACK
|
@leandrolanzieri Thanks. |
Contribution description
This PR changes the approach of peripheral configurations for DAC channels in board definitions to the usual RIOT approach. With these changes, peripheral configurations use static const arrays in the
boards/esp32*/periph_conf.hfiles and define the*_NUMOFmacros 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.