[riot-notifications] [RIOT-OS/RIOT] UART driver doesn't support more advanced configuration? (#10814)

Mohamed notifications at github.com
Fri Jan 18 11:47:11 CET 2019

#### Description
I'm implementing a protocol that requires setting word length, parity, stop bits and pin inversion. uart.h/.c doesn't seem to allow this.

### Useful links
According the STM32 reference manual, configuring these bits must be done before enabling the device. Unfortunately uart_init() enable the device before it exits.

One way is to provide uart_init_ex(..., bool enable) which will not enable by default in addition to a separate enable function. Then add a uart_configure() that allow more configurations. This will not be breaking change this way.

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/20190118/d796d40e/attachment.html>

More information about the notifications mailing list