/* Uart common interrupt process. This need add to uart ISR. */
static void uart_isr(struct rt_serial_device *serial)
/* Uart common interrupt process. This need add to uart ISR. */
static void uart_isr(struct rt_serial_device *serial)
{
    struct fsl_uart *uart;
    RT_ASSERT(serial != RT_NULL);
    uart = (struct fsl_uart *) serial->parent.user_data;
    RT_ASSERT(uart != RT_NULL);
    if (LPUART_GetStatusFlags(uart->uart_base) & kLPUART_RxDataRegFullFlag)
    {
        rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND);
    }
    if (LPUART_STAT_OR_MASK & uart->uart_base->STAT)
    {
        uart->uart_base->STAT = ((uart->uart_base->STAT & 0x3FE00000U) | LPUART_STAT_OR_MASK);
    }
}