/* Determines whether the UART transmitter is busy or not.  */
xtBoolean UARTBusy(unsigned long ulBase)
/* Determines whether the UART transmitter is busy or not.  */
xtBoolean UARTBusy(unsigned long ulBase)
{
    xtBoolean ulStatus = xfalse;
    xASSERT((ulBase == UART0_BASE) || (ulBase == UART1_BASE) ||
            (ulBase == UART2_BASE) );
    ulStatus = (xtBoolean) xHWREGB(ulBase + UART_012_S1) &
                           ((unsigned char)UART_012_S1_TDRE_MASK);
    ulStatus = !ulStatus;
    return (ulStatus);
}