/* Enables LIN Function mode on the specified UART.  */
void UARTEnableLIN(unsigned long ulBase)
/* Enables LIN Function mode on the specified UART.  */
void UARTEnableLIN(unsigned long ulBase)
{
    xASSERT(UARTBaseValid(ulBase));
    xHWREG(ulBase + USART_CR2) &= ~(USART_CR2_CLKEN | USART_CR2_STOP_M);
    xHWREG(ulBase + USART_CR3) &= ~(USART_CR3_HDSEL | USART_CR3_SCEN | USART_CR3_IREN);
    xHWREG(ulBase + USART_CR2) |= (USART_CR2_LINEN);
}