/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_tx_endian(mss_uart_instance_t *this_uart, mss_uart_endian_t endian)
/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_tx_endian(mss_uart_instance_t *this_uart, mss_uart_endian_t endian)
{
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    ASSERT(MSS_UART_INVALID_ENDIAN > endian);
    if(((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1)) && 
       (MSS_UART_INVALID_ENDIAN > endian))
    {
        ((MSS_UART_LITTLEEND == endian) ? (clear_bit_reg8(&this_uart->hw_reg->MM1,E_MSB_TX)) :
                                          (set_bit_reg8(&this_uart->hw_reg->MM1,E_MSB_TX)) ) ;
    }
}