/* Waits to send a character from the specified port.  */
void UARTBufferWrite(unsigned long ulBase, unsigned char *ucBuffer, unsigned long ulLength)
/* Waits to send a character from the specified port.  */
void UARTBufferWrite(unsigned long ulBase, unsigned char *ucBuffer, unsigned long ulLength)
{
    unsigned long ulCount;
    xASSERT(UARTBaseValid(ulBase));
    for (ulCount=0; ulCount<ulLength; ulCount++)
    {
        while((xHWREG(ulBase + UART_FSR) & UART_FSR_TX_FF))
        {
        }
        xHWREG(ulBase + UART_THR) = ucBuffer[ulCount];
    }
}