/* Enables or disables the NSS pulse management mode.  */
void SPI_NSSPulseModeCmd(SPI_TypeDef *SPIx, FunctionalState NewState)
/* Enables or disables the NSS pulse management mode.  */
void SPI_NSSPulseModeCmd(SPI_TypeDef *SPIx, FunctionalState NewState)
{
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    SPIx->CR2 |= SPI_CR2_NSSP;
  }
  else
  {
    SPIx->CR2 &= (uint16_t)~((uint16_t)SPI_CR2_NSSP);    
  }
}