/* Enable/disable the FIFO mode of the specified SPI port.  */
void SPIFIFOModeSet(unsigned long ulBase, unsigned long ulEnable)
/* Enable/disable the FIFO mode of the specified SPI port.  */
void SPIFIFOModeSet(unsigned long ulBase, unsigned long ulEnable)
{
    xASSERT(ulBase == SPI0_BASE);
	xASSERT((ulEnable == SPI_FIFO_ENABLE) || (ulEnable == SPI_FIFO_DISABLE));
    if (ulEnable == SPI_FIFO_ENABLE)
    {
        xHWREG(ulBase + SPI_FCR) |= SPI_FCR_FIFOEN;
    }
    else
    {
        xHWREG(ulBase + SPI_FCR) &= ~SPI_FCR_FIFOEN;
    }  
}