summaryrefslogtreecommitdiff
path: root/bsp/lpc176x
diff options
context:
space:
mode:
authorwinfeng <[email protected]>2015-10-30 14:41:21 +0800
committerwinfeng <[email protected]>2015-10-30 14:41:21 +0800
commit8a73dc1be6303b8fafa5b08eff8b6d5e4b7fc337 (patch)
tree6e49c076ef273857763c6fd2829b4b3ba7a16911 /bsp/lpc176x
parent78193f3c40efd9bb7cffe515bf5ffcc68da08573 (diff)
Update uart.c
iir = LPC_Uart->LSR; //oe pe fe oe read for clear interrupt
Diffstat (limited to 'bsp/lpc176x')
-rw-r--r--bsp/lpc176x/drivers/uart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsp/lpc176x/drivers/uart.c b/bsp/lpc176x/drivers/uart.c
index 94cf9f1f72..3d1a3e6dc6 100644
--- a/bsp/lpc176x/drivers/uart.c
+++ b/bsp/lpc176x/drivers/uart.c
@@ -89,6 +89,9 @@ void UART0_IRQHandler(void)
uart->parent.rx_indicate(&uart->parent, length);
}
+ }else if(iir == IIR_RLS)
+ {
+ iir = LPC_Uart->LSR; //oe pe fe oe read for clear interrupt
}
return;