/* Set the slave select pins of the specified SPI port. 
The  */
void SPISSSet(unsigned long ulBase, unsigned long ulSlaveSel)
/* Set the slave select pins of the specified SPI port. 
The  */
void SPISSSet(unsigned long ulBase, unsigned long ulSlaveSel)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    xHWREGB(ulBase + SPI_C2) |= SPI_C2_MODFEN;
    xHWREGB(ulBase + SPI_C1) &= ~SPI_C1_SSOE;
    if(ulSlaveSel == SPI_SS_OUTPUT)
    {
	xHWREGB(ulBase + SPI_C1) |= SPI_C1_SSOE;
    }
}