[riot-notifications] [RIOT-OS/RIOT] RFC: UART enhanced settings (#10743)

Mohamed notifications at github.com
Tue Jan 22 19:51:58 CET 2019


bluephoton commented on this pull request.



> +        return UART_NOMODE;
+
+#if defined(USART_CR1_M1)
+    uart_stop(uart);
+#endif
+
+    cr1 = dev(uart)->CR1;
+    cr2 = dev(uart)->CR2;
+
+    if (parity) {
+        /* enable parity */
+        cr1 |= USART_CR1_PCE;
+
+        /* setup parity, databits and databits masking */
+        if (databits == UART_DATABITS_8) {
+            cr1 |= USART_CR1_M;

Good to know! thanks for the info!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10743#discussion_r249914183
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190122/9ec5969d/attachment.html>


More information about the notifications mailing list