/* Waits to send a character from the specified port. */
void UARTCharPut(unsigned long ulBase, unsigned char ucData)
/* Waits to send a character from the specified port. */
void UARTCharPut(unsigned long ulBase, unsigned char ucData)
{
    ASSERT(UARTBaseValid(ulBase));
    while(HWREG(ulBase + UART_O_FR) & UART_FR_TXFF)
    {
    }
    HWREG(ulBase + UART_O_DR) = ucData;
}