/* USART DMA IRQ handle function. 
This function handles the USART transmit idle interrupt and invoke call back. */
void USART_TransferDMAHandleIRQ(USART_Type *base, usart_dma_handle_t *handle)
/* USART DMA IRQ handle function. 
This function handles the USART transmit idle interrupt and invoke call back. */
void USART_TransferDMAHandleIRQ(USART_Type *base, usart_dma_handle_t *handle)
{
    assert((NULL != base) && (NULL != handle));
    handle->txState = (uint8_t)kUSART_TxIdle;
    base->INTENCLR = USART_INTENCLR_TXIDLECLR_MASK;
    if (handle->callback != NULL)
    {
        handle->callback(base, handle, kStatus_USART_TxIdle, handle->userData);
    }
}