/* SPI Enable Slave Management by Software. 
In slave mode the NSS hardware input is replaced by an internal software enable/disable of the slave ( */
void spi_enable_software_slave_management(uint32_t spi)
/* SPI Enable Slave Management by Software. 
In slave mode the NSS hardware input is replaced by an internal software enable/disable of the slave ( */
void spi_enable_software_slave_management(uint32_t spi)
{
	SPI_CR1(spi) |= SPI_CR1_SSM;
	SPI_CR2(spi) &= ~SPI_CR2_SSOE;
}