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

Mohamed notifications at github.com
Tue Jan 22 07:54:18 CET 2019


bluephoton commented on this pull request.



> @@ -154,6 +159,96 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg)
     return UART_OK;
 }
 
+#ifdef MODULE_PERIPH_UART_MODECFG
+#if defined(USART_CR1_M1)
+static inline void uart_stop(uart_t uart)
+{
+    uint32_t cr1;
+
+    cr1 = dev(uart)->CR1;
+
+    /* disbale transmit */
+    cr1 &= USART_CR1_TE;

```suggestion
    cr1 &= ~USART_CR1_TE;
```

-- 
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#pullrequestreview-194856479
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190121/2fde997d/attachment.html>


More information about the notifications mailing list