/* Waits for a character from the specified port.  */
long xUARTCharGet(unsigned long ulBase)
/* Waits for a character from the specified port.  */
long xUARTCharGet(unsigned long ulBase)
{
    xASSERT(UARTBaseValid(ulBase));
    while(xHWREG(ulBase + UART_FSR) & UART_FSR_RX_EF)
    {
    }
    return(xHWREG(ulBase + UART_RBR));
}