mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Revision 32:58d485b73390, committed 2015-12-02
- Comitter:
- mbed_official
- Date:
- Wed Dec 02 08:45:10 2015 +0000
- Parent:
- 31:1720eef440d8
- Child:
- 33:7b49ef75af0b
- Commit message:
- Synchronized with git revision 3a0741a1739c9c23203366e8955e8758b46fec08
Full URL: https://github.com/mbedmicro/mbed/commit/3a0741a1739c9c23203366e8955e8758b46fec08/
handle UART RX overrun on stm32l1xx
Changed in this revision
| targets/hal/TARGET_STM/TARGET_STM32L1/serial_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_STM/TARGET_STM32L1/serial_api.c Tue Dec 01 09:00:10 2015 +0000
+++ b/targets/hal/TARGET_STM/TARGET_STM32L1/serial_api.c Wed Dec 02 08:45:10 2015 +0000
@@ -231,6 +231,9 @@
irq_handler(serial_irq_ids[id], RxIrq);
__HAL_UART_CLEAR_FLAG(&UartHandle, UART_FLAG_RXNE);
}
+ if (__HAL_UART_GET_FLAG(&UartHandle, UART_FLAG_ORE) != RESET) {
+ __HAL_UART_CLEAR_OREFLAG(&UartHandle);
+ }
}
}
