targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_uart.c
void UART_DMACmd(uint8_t UART_DMAReq, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_UART_DMAREQ(UART_DMAReq));  
  assert_param(IS_FUNCTIONAL_STATE(NewState)); 

  if (NewState == ENABLE)
  {
    /* Enable the DMA transfer for selected requests by setting the DMAT and/or
       DMAR bits in the UART CR3 register */
    UART->DMACR |= UART_DMAReq;
  }
  else
  {
    /* Disable the DMA transfer for selected requests by clearing the DMAT and/or
       DMAR bits in the UART CR3 register */
    UART->DMACR &= (uint8_t)~UART_DMAReq;
  }
}
/**
  * @brief  Enables or disables the UART DMA interface.
  * @param  UART_DMAReq: specifies the DMA request.
  *   This parameter can be any combination of the following values:
  *     @arg UART_DMAReq_Tx: UART DMA transmit request.
  *     @arg UART_DMAReq_Rx: UART DMA receive request.
  * @param  NewState: functional state @ref FunctionalState
  *         This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables the UART DMA interface.
@param  UART_DMAReq: specifies the DMA request.
This parameter can be any combination of the following values:
@arg UART_DMAReq_Tx: UART DMA transmit request.
@arg UART_DMAReq_Rx: UART DMA receive request.
@param  NewState: functional state @ref FunctionalState
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the UART DMA interface . @param UART_DMAReq : specifies the DMA request . This parameter can be any combination of the following values : @arg UART_DMAReq_Tx : UART DMA transmit request . @arg UART_DMAReq_Rx : UART DMA receive request . @param NewState : functional state @ref FunctionalState This parameter can be : ENABLE or DISABLE . @retval None
void UART_DMACmd(uint8_t UART_DMAReq, FunctionalState NewState)
{
  assert_param(IS_UART_DMAREQ(UART_DMAReq));  
  assert_param(IS_FUNCTIONAL_STATE(NewState)); 
  if (NewState == ENABLE)
  {
    UART->DMACR |= UART_DMAReq;
  }
  else
  {
    UART->DMACR &= (uint8_t)~UART_DMAReq;
  }
}
void UART_DMACmd ( uint8_t UART_DMAReq , FunctionalState NewState ) { assert_param ( IS_UART_DMAREQ ( UART_DMAReq ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState == ENABLE ) { UART -> DMACR |= UART_DMAReq ; } else { UART -> DMACR &= ( uint8_t ) ~ UART_DMAReq ; } }
@brief  Enables or disables the UART DMA interface.
@brief Enables or disables the UART DMA interface .
/* Check the parameters */ /* Enable the DMA transfer for selected requests by setting the DMAT and/or
       DMAR bits in the UART CR3 register */ /* Disable the DMA transfer for selected requests by clearing the DMAT and/or
       DMAR bits in the UART CR3 register */