Skip to content
Snippets Groups Projects
Commit ddf19783 authored by Yegor Yefremov's avatar Yegor Yefremov
Browse files

periph/uart: add support for enhanced serial settings


As suggested in PR#5899 add a routine uart_mode() that will
setup data bits, stop bits and parity at runtime.

uart.h provides a set of enums defining these settings and each
platform will override them to specify values corresponding to
its configuration registers.

The idea behind the enums is to specify default settings i.e. 8N1
through the 0 value item. Invoking uart_mode(uart, 0, 0, 0) will
setup 8N1 mode.

Signed-off-by: default avatarYegor Yefremov <yegorslists@googlemail.com>
parent 782b181b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment