/* Check whether if UART is busy or not.  */
FlagStatus UART_CheckBusy(LPC_UART_TypeDef *UARTx)
/* Check whether if UART is busy or not.  */
FlagStatus UART_CheckBusy(LPC_UART_TypeDef *UARTx)
{
    if (UARTx->LSR & UART_LSR_TEMT)
    {
        return RESET;
    }
    else
    {
        return SET;
    }
}