targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_spi.c
void SPI_DMACmd(uint8_t SPI_DMAReq, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_SPI_DMAREQ(SPI_DMAReq));  
  assert_param(IS_FUNCTIONAL_STATE(NewState)); 

  if (NewState != DISABLE)
  {
    /* Enable the DMA transfer */
    SPI1->DMACR |= SPI_DMAReq;
  }
  else
  {
    /* Disable the DMA transfer */
    SPI1->DMACR &= (uint8_t)~SPI_DMAReq;
  }
}
/**
  * @brief  Enables or disables the SPI DMA interface.
  * @param  SPI_DMAReq: specifies the DMA request.
  *   This parameter can be any combination of the following values:
  *     @arg SPI_DMAReq_Tx: SPI DMA transmit request
  *     @arg SPI_DMAReq_Rx: SPI DMA receive request.
  * @param  NewState: functional state @ref FunctionalState
  *   This parameter can be: ENABLE or DISABLE.   
  * @retval None
  */
@brief  Enables or disables the SPI DMA interface.
@param  SPI_DMAReq: specifies the DMA request.
This parameter can be any combination of the following values:
@arg SPI_DMAReq_Tx: SPI DMA transmit request
@arg SPI_DMAReq_Rx: SPI DMA receive request.
@param  NewState: functional state @ref FunctionalState
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the SPI DMA interface . @param SPI_DMAReq : specifies the DMA request . This parameter can be any combination of the following values : @arg SPI_DMAReq_Tx : SPI DMA transmit request @arg SPI_DMAReq_Rx : SPI DMA receive request . @param NewState : functional state @ref FunctionalState This parameter can be : ENABLE or DISABLE . @retval None
void SPI_DMACmd(uint8_t SPI_DMAReq, FunctionalState NewState)
{
  assert_param(IS_SPI_DMAREQ(SPI_DMAReq));  
  assert_param(IS_FUNCTIONAL_STATE(NewState)); 
  if (NewState != DISABLE)
  {
    SPI1->DMACR |= SPI_DMAReq;
  }
  else
  {
    SPI1->DMACR &= (uint8_t)~SPI_DMAReq;
  }
}
void SPI_DMACmd ( uint8_t SPI_DMAReq , FunctionalState NewState ) { assert_param ( IS_SPI_DMAREQ ( SPI_DMAReq ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { SPI1 -> DMACR |= SPI_DMAReq ; } else { SPI1 -> DMACR &= ( uint8_t ) ~ SPI_DMAReq ; } }
@brief  Enables or disables the SPI DMA interface.
@brief Enables or disables the SPI DMA interface .
/* Check the parameters */ /* Enable the DMA transfer */ /* Disable the DMA transfer */