/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_smartcard_init(mss_uart_instance_t *this_uart, uint32_t baud_rate, uint8_t line_config)
/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_smartcard_init(mss_uart_instance_t *this_uart, uint32_t baud_rate, uint8_t line_config)
{
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    global_init(this_uart, baud_rate, line_config);
    clear_bit_reg8(&this_uart->hw_reg->MM0, ELIN);
    clear_bit_reg8(&this_uart->hw_reg->MM1, EIRD);
    if( ( MSS_UART_DATA_8_BITS | MSS_UART_TWO_STOP_BITS) == 
        (line_config & (MSS_UART_DATA_8_BITS | MSS_UART_TWO_STOP_BITS)))
    {
        set_bit_reg8(&this_uart->hw_reg->MM2, EERR);
        set_bit_reg8(&this_uart->hw_reg->MM2,ESWM);
    }
}