/* Disable the SPI interrupt of the specified SPI port.  */
void SPIIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
/* Disable the SPI interrupt of the specified SPI port.  */
void SPIIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE)||(ulBase == SPI3_BASE) );
    if(ulIntFlags & SPI_CNTRL_IE)
    {
    	xHWREG(ulBase + SPI_CNTRL) &= ~SPI_CNTRL_IE;
    }
    if(ulIntFlags & SPI_CNTRL2_SSTA_INTEN)
    {
    	xHWREG(ulBase + SPI_CNTRL2) &= ~SPI_CNTRL2_SSTA_INTEN;
    }
    xHWREG(ulBase + SPI_FIFOCTL) &= ~ulIntFlags;
}