Skip to content
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

cpu/efm32: provide periph_uart_mode #12323

Merged
merged 4 commits into from
Oct 1, 2019

Conversation

basilfx
Copy link
Member

@basilfx basilfx commented Sep 28, 2019

Contribution description

This PR removes the non-standard UART mode feature, and replaces it with the uart_mode implementation for both UART and LEUART (only supports 8 or 9 bit frames).

Testing procedure

Run tests/periph_uart_mode and follow the test instructions. All other tests that output to the shell should still work.

Here are some oscilloscope screenshots that show that the API is working (it's time-consuming to test this). I've used a custom application that just sends out 0x55.

UART 5N1:
uart-5n1

UART 7E2:
uart-7e2

LEUART 8N1 (default)
leuart-8n1

LEUART 8O2:
leuart-8o2

My scope show question marks whenever it cannot match the decoding settings to the actual data:

uart-7e2-questionmark

Issues/PRs references

Depends on #12322.

@basilfx basilfx added Type: new feature The issue requests / The PR implemements a new feature for RIOT Area: boards Area: Board ports labels Sep 28, 2019
@basilfx basilfx requested a review from aabadie September 28, 2019 10:26
@benpicco
Copy link
Contributor

Needs a rebase.

@basilfx basilfx force-pushed the feature/efm32_uart_modes branch from 93e9619 to 559fc1f Compare September 30, 2019 16:13
@basilfx
Copy link
Member Author

basilfx commented Sep 30, 2019

Rebased.

@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Sep 30, 2019
Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.
Basically this just moves previously platform specific config to the new common way.
The defaults remain unchanged.

@benpicco benpicco merged commit a7cb0a4 into RIOT-OS:master Oct 1, 2019
@kb2ma kb2ma added this to the Release 2019.10 milestone Oct 28, 2019
@basilfx basilfx deleted the feature/efm32_uart_modes branch January 14, 2020 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants