Browse Source

Update uart.c

iir = LPC_Uart->LSR;	//oe pe fe oe read for clear interrupt
winfeng 9 years ago
parent
commit
8a73dc1be6
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);
             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;
 	return;