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-d51de3d6d3f4master
parent
42ce85ad4c
commit
727d7f2622
|
@ -131,7 +131,9 @@ static void serve_interrupt(SerialDriver *sdp) {
|
||||||
|
|
||||||
if (u->INTSTAT & (STAT_OVERRUN | STAT_DELTARXBRK |
|
if (u->INTSTAT & (STAT_OVERRUN | STAT_DELTARXBRK |
|
||||||
STAT_FRAMERR | STAT_PARITYERR) ) {
|
STAT_FRAMERR | STAT_PARITYERR) ) {
|
||||||
set_error(sdp, u->STAT);
|
IOREG32 stat = u->STAT;
|
||||||
|
set_error(sdp, stat);
|
||||||
|
u->STAT = stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue