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
master
theShed 2013-03-24 10:21:45 +00:00
parent 42ce85ad4c
commit 727d7f2622
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}