-
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 UART interfaces in board definitions #11294
boards/esp32: changes the approach for configurations of UART interfaces in board definitions #11294
Conversation
496c306
to
0ce90a2
Compare
I have pushed required fixes after rebasing this PR onto master with merged PR #11231. Since this PR is related to PR #11231, @MrKevinWeiss might review it. |
Yup I can, maybe it won't be until Monday though. |
Great, thanks. No problem. |
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.
Small thing, otherwise looks OK. I also tested with trying alternate uarts and with uart_mode_cfg and it works fine.
@MrKevinWeiss Thanks for reviewing and testing it. |
0ce90a2
to
acb5493
Compare
UART devices are now configured using static array in header files instead of static variables in implementation to be able to define UART_NUMOF using the size of the array instead of a variable.
UART devices are now configured using static array in header files instead of static variables in implementation to be able to define UART_NUMOF using the size of the array instead of a variable.
acb5493
to
3cb08e9
Compare
@MrKevinWeiss Rebased after PR # 11289 has been merged. Should be ready now to be merged. |
OK, I will retest tomorrow morning! |
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.
Quick retest, looks good. ACK!
@MrKevinWeiss Thanks a lot for testing and reviewing it again 😄 |
Contribution description
This PR changes the approach of peripheral configurations for UART interfaces 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.