paparazzi/paparazzi — pull request #418 by podhrmic (2013-04-15 16:44:18+00:00)
Title: Fixed UART driver

Added USThe original interrupt handler occasionally hang in case of noise on the line.
Fixes were two:
1) Disable IDLE line interrupt, disable LIN break interrupt (neither of them should be used for asynchronous single buffer communication) in the port settings.
2) In interrupt handler routine, explicitly check for the error flags, only if no errors occur, check the received byte. Otherwise clear the USART_DR and log the error.

Error logging variables are added to monitor errors on the port.ART_ERRORS messages to monitor problems on USART lines.

Note: libopencm3 has to be updated too.