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