/* Enables or disables the SS output for the selected SPI.  */
void SPI_SSOutputCmd(SPI_TypeDef *SPIx, FunctionalState NewState)
/* Enables or disables the SS output for the selected SPI.  */
void SPI_SSOutputCmd(SPI_TypeDef *SPIx, FunctionalState NewState)
{
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    SPIx->CR2 |= CR2_SSOE_Set;
  }
  else
  {
    SPIx->CR2 &= CR2_SSOE_Reset;
  }
}