/* Enables SIR (IrDA) mode on the specified UART. 
The  */
void xUARTIrDAConfig(unsigned long ulBase, unsigned long ulBaud, unsigned long ulConfig, unsigned long ulMode)
/* Enables SIR (IrDA) mode on the specified UART. 
The  */
void xUARTIrDAConfig(unsigned long ulBase, unsigned long ulBaud, unsigned long ulConfig, unsigned long ulMode)
{
    unsigned long ulExtClk, ulDiv;
    xASSERT(UARTBaseValid(ulBase));
    xASSERT((ulMode == xUART_IRDA_MODE_NORMAL)||
            (ulMode == xUART_IRDA_MODE_LOW_POWER)
           );
    SysCtlPeripheralReset(SYSCTL_PERIPH_UART0);
    xHWREG(ulBase + USART_FCR) |= USART_FCR_RX_RST | USART_FCR_TX_RST;
    xHWREG(ulBase + USART_LCR) = ulConfig;
    ulExtClk = UARTCLkGet();
    ulDiv = ulExtClk / ulBaud;
    xHWREG(ulBase + USART_BAUD) &= ~USART_BAUD_BRD_M;
    xHWREG(ulBase + USART_BAUD) |= (ulDiv & USART_BAUD_BRD_M);
    UARTModeSet(ulBase, USART_FUN_SEL_IRDA_EN);
    xHWREG(ulBase + USART_IRCR) |= ulMode;
}