/* MSS_UART_get_tx_status. See mss_uart.h for details of how to use this function.  */
uint8_t MSS_UART_get_tx_status(mss_uart_instance_t *this_uart)
/* MSS_UART_get_tx_status. See mss_uart.h for details of how to use this function.  */
uint8_t MSS_UART_get_tx_status(mss_uart_instance_t *this_uart)
{
    uint8_t status = MSS_UART_TX_BUSY;
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    if((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1))
    {
        status = this_uart->hw_reg->LSR;
        this_uart->status |= status;
        status &= (MSS_UART_THRE | MSS_UART_TEMT);
    }
    return status;
}