/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_usart_mode(mss_uart_instance_t *this_uart, mss_uart_usart_mode_t mode)
/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_usart_mode(mss_uart_instance_t *this_uart, mss_uart_usart_mode_t mode)
{
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    ASSERT(MSS_UART_INVALID_SYNC_MODE > mode);
    if(((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1)) &&
       (MSS_UART_INVALID_SYNC_MODE > mode))
    {
        this_uart->hw_reg->MM0 &= ~SYNC_ASYNC_MODE_MASK;
        this_uart->hw_reg->MM0 |= (uint8_t)mode;
    }
}