boards/esp32: changes the approach for configurations of SPI interfaces in board definitions#11293
Merged
leandrolanzieri merged 2 commits intoMay 14, 2019
Merged
Conversation
This was referenced Mar 27, 2019
boards/esp32: changes the approach for configurations of UART interfaces in board definitions
#11294
Merged
Merged
Merged
leandrolanzieri
approved these changes
Mar 29, 2019
leandrolanzieri
left a comment
Contributor
There was a problem hiding this comment.
Tested and everything is working fine. ACK.
Contributor
Author
|
@leandrolanzieri Thanks a lot for testing and reviewing. Should we activate label |
2ef94f3 to
2666723
Compare
SPI devices are now configured using static array in header files instead of static variables in implementation to be able to define SPI_NUMOF using the size of the array instead of a variable.
SPI devices are now configured using static array in header files instead of static variables in implementation to be able to define SPI_NUMOF using the size of the array instead of a variable.
2666723 to
23cc987
Compare
Contributor
|
@gschorcht all of them are merged now. Thanks for the contribution. |
Contributor
Author
|
@leandrolanzieri Thanks a lot for reviewing and testing all of them 😄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR changes the approach of peripheral configurations for SPI interfaces 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.