This is an automated email from the ASF dual-hosted git repository.

utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 14d8ce3  Fix stm32f3 uart overrun handling
14d8ce3 is described below

commit 14d8ce30562e4dc2cc13d4ce732ec9a2b9b5c0f1
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Thu Mar 29 16:26:11 2018 -0300

    Fix stm32f3 uart overrun handling
    
    When an overrun happened it would never leave the overrun state and it
    would basically halt from receiving packets.
    
    Signed-off-by: Fabio Utzig <ut...@apache.org>
---
 hw/mcu/stm/stm32f3xx/src/hal_uart.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/mcu/stm/stm32f3xx/src/hal_uart.c 
b/hw/mcu/stm/stm32f3xx/src/hal_uart.c
index ebd89f0..2d1f3c5 100644
--- a/hw/mcu/stm/stm32f3xx/src/hal_uart.c
+++ b/hw/mcu/stm/stm32f3xx/src/hal_uart.c
@@ -114,6 +114,9 @@ uart_irq_handler(int num)
         }
         regs->CR1 = cr1;
     }
+    if (isr & USART_ISR_ORE) {
+        regs->ICR |= USART_ICR_ORECF;
+    }
 }
 
 void

-- 
To stop receiving notification emails like this one, please contact
ut...@apache.org.

Reply via email to