/* Enable/disable the FIFO mode of the specified SPI port. 
The  */
void SPIFIFOModeSet(unsigned long ulBase, xtBoolean xtEnable, unsigned long ulInterval)
/* Enable/disable the FIFO mode of the specified SPI port. 
The  */
void SPIFIFOModeSet(unsigned long ulBase, xtBoolean xtEnable, unsigned long ulInterval)
{
    xASSERT(ulBase == SPI0_BASE);
    xASSERT((ulInterval == 0) ||((ulInterval >= 2) && (ulInterval <= 15)));
    if (xtEnable)
    {
        xHWREG(ulBase + SPI_CNTRL) &= ~SPI_CNTRL_SP_CYCLE_M;
        xHWREG(ulBase + SPI_CNTRL) |= (ulInterval << SPI_CNTRL_SP_CYCLE_S);
        xHWREG(ulBase + SPI_CNTRL) |= SPI_CNTRL_FIFO;
    }
    else
    {
        xHWREG(ulBase + SPI_CNTRL) &= ~SPI_CNTRL_FIFO;
    }  
}