/* Set the slave select pins of the specified SPI port.  */
void SPISSModeConfig(unsigned long ulBase, unsigned long ulSSMode)
/* Set the slave select pins of the specified SPI port.  */
void SPISSModeConfig(unsigned long ulBase, unsigned long ulSSMode)
{
    xASSERT((ulBase == SPI3_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE));
    xHWREG(ulBase + SPI_CR1) &= ~SPI_CR1_SSM;
    xHWREG(ulBase + SPI_CR1) |= ulSSMode;
}