From 727d7f2622132923e465443aca04693a5201682f Mon Sep 17 00:00:00 2001 From: theShed Date: Sun, 24 Mar 2013 10:21:45 +0000 Subject: LPC8xx: serial_lld - clear error irq flags in irq handler git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5498 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC8xx/serial_lld.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'os') diff --git a/os/hal/platforms/LPC8xx/serial_lld.c b/os/hal/platforms/LPC8xx/serial_lld.c index e5937bae8..d1d273621 100644 --- a/os/hal/platforms/LPC8xx/serial_lld.c +++ b/os/hal/platforms/LPC8xx/serial_lld.c @@ -131,7 +131,9 @@ static void serve_interrupt(SerialDriver *sdp) { if (u->INTSTAT & (STAT_OVERRUN | STAT_DELTARXBRK | STAT_FRAMERR | STAT_PARITYERR) ) { - set_error(sdp, u->STAT); + IOREG32 stat = u->STAT; + set_error(sdp, stat); + u->STAT = stat; } } -- cgit v1.2.3