Browse Source

Merge pull request #574 from winfeng/patch-1

[bsp] Update uart.c in lpc176x bsp.
Bernard Xiong 9 years ago
parent
commit
bb5f57f91c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bsp/lpc176x/drivers/uart.c

+ 3 - 0
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;