firmware/src/platform/std_periph/src/stm32f4xx_spi.c
/**
  * @brief  Transmits a Data through the SPIx/I2Sx peripheral.
  * @param  SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2, 3, 4, 5 or 6 
  *         in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full duplex mode.     
  * @param  Data: Data to be transmitted.
  * @retval None
  */
@brief  Transmits a Data through the SPIx/I2Sx peripheral.
@param  SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2, 3, 4, 5 or 6
in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full duplex mode.
@param  Data: Data to be transmitted.
@retval None
@brief Transmits a Data through the SPIx / I2Sx peripheral . @param SPIx : To select the SPIx / I2Sx peripheral where x can be : 1 2 3 4 5 or 6 in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full duplex mode . @param Data : Data to be transmitted . @retval None
void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data)
{
  assert_param(IS_SPI_ALL_PERIPH_EXT(SPIx));
  SPIx->DR = Data;
}
void SPI_I2S_SendData ( SPI_TypeDef * SPIx , uint16_t Data ) { assert_param ( IS_SPI_ALL_PERIPH_EXT ( SPIx ) ) ; SPIx -> DR = Data ; }
@brief  Transmits a Data through the SPIx/I2Sx peripheral.
@brief Transmits a Data through the SPIx / I2Sx peripheral .
/* Check the parameters */ /* Write in the DR register the data to be sent */