Skip to content
Snippets Groups Projects
Commit 0ffed1d1 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #4868 from steffen-p/stm32f3_periph_uart_deadlock_on_overrun

stm32f3: periph: uart: add misssing uart overrun handling
parents bf1d31a6 35635e40
No related branches found
No related tags found
No related merge requests found
...@@ -190,6 +190,10 @@ static inline void irq_handler(uint8_t uartnum, USART_TypeDef *dev) ...@@ -190,6 +190,10 @@ static inline void irq_handler(uint8_t uartnum, USART_TypeDef *dev)
char data = (char)dev->RDR; char data = (char)dev->RDR;
uart_config[uartnum].rx_cb(uart_config[uartnum].arg, data); uart_config[uartnum].rx_cb(uart_config[uartnum].arg, data);
} }
else if (dev->ISR & USART_ISR_ORE) {
/* do nothing on overrun */
dev->ICR |= USART_ICR_ORECF;
}
if (sched_context_switch_request) { if (sched_context_switch_request) {
thread_yield(); thread_yield();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment