[riot-notifications] [RIOT-OS/RIOT] cpu/efm32: provide periph_uart_mode (#12323)

Bas Stottelaar notifications at github.com
Mon Sep 30 18:27:55 CEST 2019


basilfx commented on this pull request.



> +        return UART_NOMODE;
+    }
+
+#ifdef USE_LEUART
+    if (_is_usart(dev)) {
+#endif
+        USART_TypeDef *uart = (USART_TypeDef *) uart_config[dev].dev;
+
+        USART_FrameSet(uart,
+                       USART_DataBits2Def(data_bits),
+                       USART_StopBits2Def(stop_bits),
+                       USART_Parity2Def(parity));
+#ifdef USE_LEUART
+    } else {
+        if (data_bits != UART_DATA_BITS_8) {
+            return UART_NOMODE;

The EMLIB api allows up to 16 data bits: http://devtools.silabs.com/dl/documentation/doxygen/5.7/efr32mg12/html/group__USART.html#ga882a4def49cdb2fb18622d61b24eeacd. However, they are not available for U(S)ART operation.

-- 
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/12323#discussion_r329671246
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190930/b157ee26/attachment-0001.htm>


More information about the notifications mailing list