[riot-notifications] [RIOT-OS/RIOT] cpu/efm32/uart: fix handling of RX when no RX callback is configured (#12278)

Thomas Stilwell notifications at github.com
Sat Sep 21 22:07:34 CEST 2019

benemorius commented on this pull request.

> @@ -164,10 +163,62 @@ void uart_write(uart_t dev, const uint8_t *data, size_t len)
 void uart_poweron(uart_t dev)
     CMU_ClockEnable(uart_config[dev].cmu, true);
+    if (_is_usart(dev)) {
+        USART_TypeDef *usart = uart_config[dev].dev;
+        /* enable tx */
+        usart->CMD = USART_CMD_TXEN;

The emlib functions can't be used to enable TX and RX independently though right?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190921/90d56329/attachment.htm>

More information about the notifications mailing list