/* Enables or disables the SS output for the selected SPI.  */
void SPI_SSOutputEnable(SPI_Module *SPIx, FunctionalState Cmd)
/* Enables or disables the SS output for the selected SPI.  */
void SPI_SSOutputEnable(SPI_Module *SPIx, FunctionalState Cmd)
{
    assert_param(IS_SPI_PERIPH(SPIx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        SPIx->CTRL2 |= CTRL2_SSOEN_ENABLE;
    }
    else
    {
        SPIx->CTRL2 &= CTRL2_SSOEN_DISABLE;
    }
}