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

Yegor Yefremov notifications at github.com
Fri Jan 25 10:18:51 CET 2019


yegorich commented on this pull request.



> +        if (data_bits == UART_DATA_BITS_8) {
+            data_bits = USART_CR1_M;
+        }
+        else if (data_bits == UART_DATA_BITS_7) {
+            data_bits = UART_DATA_BITS_8;
+        }
+        else if (data_bits == UART_DATA_BITS_6) {
+            data_bits = UART_DATA_BITS_7;
+        }
+    }
+    if ((data_bits & UART_INVALID_MODE) || (parity & UART_INVALID_MODE)) {
+        return UART_NOMODE;
+    }
+
+#ifdef USART_CR1_M1
+    if (dev(uart)->ISR & USART_ISR_TC) {

ACK

-- 
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_r250913408
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190125/f90b830d/attachment.html>


More information about the notifications mailing list