/* param base SPI peripheral base address. param handle SPI DMA handle pointer.  */
void SPI_MasterTransferAbortDMA(SPI_Type *base, spi_dma_handle_t *handle)
/* param base SPI peripheral base address. param handle SPI DMA handle pointer.  */
void SPI_MasterTransferAbortDMA(SPI_Type *base, spi_dma_handle_t *handle)
{
    assert(NULL != handle);
    DMA_AbortTransfer(handle->txHandle);
    DMA_AbortTransfer(handle->rxHandle);
    handle->txInProgress = false;
    handle->rxInProgress = false;
    handle->state        = (uint8_t)kSPI_Idle;
}