aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/LPC8xx
diff options
context:
space:
mode:
authortheShed <theShed@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-24 10:21:45 +0000
committertheShed <theShed@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-24 10:21:45 +0000
commit727d7f2622132923e465443aca04693a5201682f (patch)
treeececed052959402f9cf472a29bf9cf7e77de7897 /os/hal/platforms/LPC8xx
parent42ce85ad4c1fcb3e079fa7e0fcbe7bc723a473e0 (diff)
downloadChibiOS-727d7f2622132923e465443aca04693a5201682f.tar.gz
ChibiOS-727d7f2622132923e465443aca04693a5201682f.tar.bz2
ChibiOS-727d7f2622132923e465443aca04693a5201682f.zip
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
Diffstat (limited to 'os/hal/platforms/LPC8xx')
-rw-r--r--os/hal/platforms/LPC8xx/serial_lld.c4
1 files changed, 3 insertions, 1 deletions
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;
}
}