/* Configures internally by software the NSS pin for the selected SPI.  */
void SPI_NSSInternalSoftwareConfig(SPI_TypeDef *SPIx, uint16_t SPI_NSSInternalSoft)
/* Configures internally by software the NSS pin for the selected SPI.  */
void SPI_NSSInternalSoftwareConfig(SPI_TypeDef *SPIx, uint16_t SPI_NSSInternalSoft)
{
    assert_param(IS_SPI_ALL_PERIPH(SPIx));
    assert_param(IS_SPI_NSS_INTERNAL(SPI_NSSInternalSoft));
    if (SPI_NSSInternalSoft != SPI_NSSInternalSoft_Reset)
    {
        SPIx->CR1 |= SPI_NSSInternalSoft_Set;
    }
    else
    {
        SPIx->CR1 &= SPI_NSSInternalSoft_Reset;
    }
}