[riot-notifications] [RIOT-OS/RIOT] UART: setting baudrate, stopbits, and parity on runtime (#5899)

Hauke Petersen notifications at github.com
Mon Jan 7 09:55:27 CET 2019

>  At least options none and RTS/CTS would be relevant for RIOT and supported MCUs. I would include this option into uart_mode() param list.

Don't like it, I think they should stay in the board/CPU specific code path and be configured statically.

> What is the final plan for UART configuration? Should all these parameters go into uart_init() or into uart_mode()? If it is uart_init() then we can only take of the options that deviate from default ones as the UART will be initialized with default values, but if uart_mode() will be allowed at arbitrary time in the user code, then we will have to take care of setting all values, i.e. reverting non-default values to their original state.

I only partly understand this question. Which parameters do you mean exactly?

Concerning the default parameters: from my perspective `uart_init()` should still configure the UART in default configuration (`8N1`), and then `uart_mode()` can be called afterwards to switch to another mode. This way we don't break the existing API.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190107/aa019b71/attachment.html>

More information about the notifications mailing list