/* param base SPI base pointer param enable True means enable DMA, false means disable DMA  */
void SPI_EnableTxDMA(SPI_Type *base, bool enable)
/* param base SPI base pointer param enable True means enable DMA, false means disable DMA  */
void SPI_EnableTxDMA(SPI_Type *base, bool enable)
{
    if (enable)
    {
        base->FIFOCFG |= SPI_FIFOCFG_DMATX_MASK;
    }
    else
    {
        base->FIFOCFG &= ~SPI_FIFOCFG_DMATX_MASK;
    }
}