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

MrKevinWeiss notifications at github.com
Wed Jan 23 16:51:11 CET 2019


MrKevinWeiss commented on this pull request.



> +
+    uint32_t cr1;
+    uint32_t cr2;
+
+    if ((databits == 0x02)
+            || (databits == UART_DATABITS_7 && !parity)
+            || (databits == UART_DATABITS_9 && parity))
+        return UART_NOMODE;
+
+    if (parity == 0x02)
+        return UART_NOMODE;
+
+    cr1 = dev(uart)->CR1;
+    cr2 = dev(uart)->CR2;
+
+    if (parity) {

Yup, I suppose that what the community accepts.

-- 
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_r250253301
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190123/9024295c/attachment-0001.html>


More information about the notifications mailing list