/* Enables SIR (IrDA) mode on the specified UART. */
void UARTEnableSIR(uint32_t ui32Base, bool bLowPower)
/* Enables SIR (IrDA) mode on the specified UART. */
void UARTEnableSIR(uint32_t ui32Base, bool bLowPower)
{
    ASSERT(_UARTBaseValid(ui32Base));
    if (bLowPower)
    {
        HWREG(ui32Base + UART_O_CTL) |= (UART_CTL_SIREN | UART_CTL_SIRLP);
    }
    else
    {
        HWREG(ui32Base + UART_O_CTL) |= (UART_CTL_SIREN);
    }
}