/* Enable the DMA of the specified SPI port. 
The  */
void SPIDMAEnable(unsigned long ulBase, unsigned long ulDmaMode)
/* Enable the DMA of the specified SPI port. 
The  */
void SPIDMAEnable(unsigned long ulBase, unsigned long ulDmaMode)
{
    xASSERT((ulBase == SPI3_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE));
    xHWREG(ulBase + SPI_CR2) &= ~(SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN);
    xHWREG(ulBase + SPI_CR2) |= ulDmaMode;
}