/* Determines if there are any characters in receiver register.  */
xtBoolean UARTCharsAvail(unsigned long ulBase)
/* Determines if there are any characters in receiver register.  */
xtBoolean UARTCharsAvail(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_RDRF_MASK));
    return (ulStatus);
}