Skip to content

cpu/kinetis: make UART mode configurable per board#7098

Merged
haukepetersen merged 1 commit intoRIOT-OS:masterfrom
haukepetersen:add_kinetis_uartmodeconf
May 24, 2017
Merged

cpu/kinetis: make UART mode configurable per board#7098
haukepetersen merged 1 commit intoRIOT-OS:masterfrom
haukepetersen:add_kinetis_uartmodeconf

Conversation

@haukepetersen
Copy link
Copy Markdown
Contributor

For a certain sensor we need the UART run in8P1 mode, so this PR enables this to be configured by the board.

@haukepetersen haukepetersen added Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels May 24, 2017
@haukepetersen haukepetersen added this to the Release 2017.07 milestone May 24, 2017
Copy link
Copy Markdown
Member

@jnohlgard jnohlgard left a comment

Choose a reason for hiding this comment

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

Looks good to me, ACK (untested)

* @{
*/
#define UART_MODE_8N1 (0)
#define UART_MODE_8E1 (UART_C1_PE_MASK)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add a description for these modes ("8 data bits, 1 stop bit, even parity" etc)

@jnohlgard
Copy link
Copy Markdown
Member

Feel free to merge after the documentation content had been addressed

@haukepetersen haukepetersen force-pushed the add_kinetis_uartmodeconf branch from d07a03a to 867b09c Compare May 24, 2017 12:49
@haukepetersen haukepetersen added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 24, 2017
@haukepetersen
Copy link
Copy Markdown
Contributor Author

added comments to modes.

@haukepetersen
Copy link
Copy Markdown
Contributor Author

ACKed and Murdock is happy -> go

@haukepetersen haukepetersen merged commit 71ff620 into RIOT-OS:master May 24, 2017
@haukepetersen haukepetersen deleted the add_kinetis_uartmodeconf branch May 24, 2017 13:58
@mfrey
Copy link
Copy Markdown
Contributor

mfrey commented May 29, 2017

Have you tested it? Without internet access at home over the long weekend I've had no chance to actually test/review the PR. 😢 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants