/* Enables or disables the SS output for the selected SPI port.  */
void SPISSOutputConfig(unsigned long ulBase, unsigned long ulSSOutPut)
/* Enables or disables the SS output for the selected SPI port.  */
void SPISSOutputConfig(unsigned long ulBase, unsigned long ulSSOutPut)
{
    xASSERT((ulBase == SPI3_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE));
    xASSERT((ulSSOutPut == SPI_SSOE_ENABLE) ||
              (ulSSOutPut == SPI_SSOE_DISABLE)); 
    xHWREG(ulBase + SPI_CR2) &= ~SPI_CR2_SSOE;
    xHWREG(ulBase + SPI_CR2) |= ulSSOutPut;
}