/* Config the slave select pins of the specified SPI port. 
The  */
void SPISSConfig(unsigned long ulBase, unsigned long ulSSActType)
/* Config the slave select pins of the specified SPI port. 
The  */
void SPISSConfig(unsigned long ulBase, unsigned long ulSSActType)
{
    xASSERT(ulBase == SPI0_BASE);
    xASSERT((ulSSActType == SPI_SS_ACTIVE_LOW) || 
            (ulSSActType == SPI_SS_ACTIVE_HIGH));
    xHWREG(ulBase + SPI_CNTRL1) &= ~SPI_CNTRL1_SELAP;
    xHWREG(ulBase + SPI_CNTRL1) |= ulSSActType;
}