/* Enable the automatic slave select function of the specified SPI port. 
The  */
void SPIAutoSSEnable(unsigned long ulBase, unsigned long ulSlaveSel)
/* Enable the automatic slave select function of the specified SPI port. 
The  */
void SPIAutoSSEnable(unsigned long ulBase, unsigned long ulSlaveSel)
{
    xASSERT(ulBase == SPI0_BASE);
    xASSERT((ulSlaveSel == SPI_SS_NONE) || (ulSlaveSel == SPI_SS0));
    xHWREG(ulBase + SPI_SSR) |= SPI_AUTOSS;
    xHWREG(ulBase + SPI_SSR) &= ~0x00000001;
    xHWREG(ulBase + SPI_SSR) |= ulSlaveSel;
}