firmware/src/platform/std_periph/src/stm32f4xx_spi.c
/**
  * @brief  Enables or disables the SPIx/I2Sx DMA interface.
  *   
  * @note   This function can be called only after the SPI_Init() function has 
  *         been called. 
  * @note   When TI mode is selected, the control bits SSM, SSI, CPOL and CPHA 
  *         are not taken into consideration and are configured by hardware
  *         respectively to the TI mode requirements.  
  * 
  * @param  SPIx: where x can be 1, 2, 3, 4, 5 or 6 
  * @param  NewState: new state of the selected SPI TI communication mode.
  *          This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables the SPIx/I2Sx DMA interface.

@note   This function can be called only after the SPI_Init() function has
been called.
@note   When TI mode is selected, the control bits SSM, SSI, CPOL and CPHA
are not taken into consideration and are configured by hardware
respectively to the TI mode requirements.

@param  SPIx: where x can be 1, 2, 3, 4, 5 or 6
@param  NewState: new state of the selected SPI TI communication mode.
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the SPIx / I2Sx DMA interface . @note This function can be called only after the SPI_Init () function has been called . @note When TI mode is selected the control bits SSM SSI CPOL and CPHA are not taken into consideration and are configured by hardware respectively to the TI mode requirements . @param SPIx : where x can be 1 2 3 4 5 or 6 @param NewState : new state of the selected SPI TI communication mode . This parameter can be : ENABLE or DISABLE . @retval None
void SPI_TIModeCmd(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_FRF;
  }
  else
  {
    SPIx->CR2 &= (uint16_t)~SPI_CR2_FRF;
  }
}
void SPI_TIModeCmd ( 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_FRF ; } else { SPIx -> CR2 &= ( uint16_t ) ~ SPI_CR2_FRF ; } }
@brief  Enables or disables the SPIx/I2Sx DMA interface.
@brief Enables or disables the SPIx / I2Sx DMA interface .
/* Check the parameters */ /* Enable the TI mode for the selected SPI peripheral */ /* Disable the TI mode for the selected SPI peripheral */