/* Open LIN mode on the specified UART. 
The  */
void UARTLINConfig(unsigned long ulBase, unsigned long ulBaud, unsigned long ulConfig)
/* Open LIN mode on the specified UART. 
The  */
void UARTLINConfig(unsigned long ulBase, unsigned long ulBaud, unsigned long ulConfig)
{
    xASSERT(UARTBaseValid(ulBase));
    xASSERT(((ulConfig & UART_CONFIG_BKFL_MASK) ==UART_CONFIG_BKFL_10) ||
            ((ulConfig & UART_CONFIG_BKFL_MASK) ==UART_CONFIG_BKFL_11));
    UARTConfigSet(ulBase, ulBaud, 
                  UART_CONFIG_WLEN_8 |
                  UART_CONFIG_STOP_ONE |
                  UART_CONFIG_PAR_NONE);
    UARTEnableLIN(ulBase);
    xHWREG(ulBase + USART_CR2) &= ~UART_CONFIG_BKFL_11;
    xHWREG(ulBase + USART_CR2) = (ulConfig);
}