[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:09:38 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;

Nevermind. They can of course.

-- 
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/12278#discussion_r326872886
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190921/ab81f4e0/attachment.htm>


More information about the notifications mailing list