Update uart.c

This commit is contained in:
Bernard Xiong 2015-10-30 17:19:53 +08:00
parent bb5f57f91c
commit 59653699b2
1 changed files with 228 additions and 227 deletions

View File

@ -37,7 +37,7 @@
#define LSR_RXFE 0x80 #define LSR_RXFE 0x80
/** /**
* @addtogroup LPC11xx * @addtogroup LPC176x
*/ */
/*@{*/ /*@{*/
@ -89,9 +89,10 @@ void UART0_IRQHandler(void)
uart->parent.rx_indicate(&uart->parent, length); uart->parent.rx_indicate(&uart->parent, length);
} }
}else if(iir == IIR_RLS) }
else if (iir == IIR_RLS)
{ {
iir = LPC_Uart->LSR; //oe pe fe oe read for clear interrupt iir = LPC_UART->LSR; //oe pe fe oe read for clear interrupt
} }
return; return;