/* UART EDMA send finished callback function. 
This function is called when UART EDMA send finished. It disables the UART TX EDMA request and sends kStatus_UART_TxIdle to UART callback. */
static void UART_SendEDMACallback(edma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
/* UART EDMA send finished callback function. 
This function is called when UART EDMA send finished. It disables the UART TX EDMA request and sends kStatus_UART_TxIdle to UART callback. */
static void UART_SendEDMACallback(edma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
{
    assert(param);
    uart_edma_private_handle_t *uartPrivateHandle = (uart_edma_private_handle_t *)param;
    handle = handle;
    tcds = tcds;
    if (transferDone)
    {
        UART_TransferAbortSendEDMA(uartPrivateHandle->base, uartPrivateHandle->handle);
        if (uartPrivateHandle->handle->callback)
        {
            uartPrivateHandle->handle->callback(uartPrivateHandle->base, uartPrivateHandle->handle, kStatus_UART_TxIdle,
                                                uartPrivateHandle->handle->userData);
        }
    }
}