Skip to content

Conversation

@gschorcht
Copy link
Contributor

@gschorcht gschorcht commented Mar 27, 2019

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

make BOARD=esp32-wroom-32 -C tests/periph_uart flash test

Issues/PRs references

PRs #11289 #11290 #11291 #11292 #11293 #11294 are releated and should be merged together.

@gschorcht
Copy link
Contributor Author

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.

@MrKevinWeiss
Copy link
Contributor

Yup I can, maybe it won't be until Monday though.

@MrKevinWeiss MrKevinWeiss self-requested a review March 29, 2019 10:02
@gschorcht
Copy link
Contributor Author

gschorcht commented Mar 29, 2019

@MrKevinWeiss

Yup I can, maybe it won't be until Monday though.

Great, thanks. No problem.

Copy link
Contributor

@MrKevinWeiss MrKevinWeiss left a 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 MrKevinWeiss added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 1, 2019
@gschorcht
Copy link
Contributor Author

@MrKevinWeiss Thanks for reviewing and testing it.

gschorcht added 3 commits May 6, 2019 13:34
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.
@gschorcht gschorcht force-pushed the cpu/esp32/periph/conf/uart branch from acb5493 to 3cb08e9 Compare May 6, 2019 11:35
@gschorcht
Copy link
Contributor Author

@MrKevinWeiss Rebased after PR # 11289 has been merged. Should be ready now to be merged.

@MrKevinWeiss
Copy link
Contributor

OK, I will retest tomorrow morning!

Copy link
Contributor

@MrKevinWeiss MrKevinWeiss left a 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 MrKevinWeiss added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels May 9, 2019
@MrKevinWeiss MrKevinWeiss merged commit 795ad18 into RIOT-OS:master May 9, 2019
@gschorcht
Copy link
Contributor Author

@MrKevinWeiss Thanks a lot for testing and reviewing it again 😄

@gschorcht gschorcht deleted the cpu/esp32/periph/conf/uart branch May 9, 2019 15:42
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 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: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants