firmware-latest/platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Selects the TIMx peripheral Capture Compare DMA source.
  * @param  TIMx: where x can be  1, 2, 3, 4, 5, 8, 15, 16 or 17 to select
  *         the TIM peripheral.
  * @param  NewState: new state of the Capture Compare DMA source
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Selects the TIMx peripheral Capture Compare DMA source.
@param  TIMx: where x can be  1, 2, 3, 4, 5, 8, 15, 16 or 17 to select
the TIM peripheral.
@param  NewState: new state of the Capture Compare DMA source
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Selects the TIMx peripheral Capture Compare DMA source . @param TIMx : where x can be 1 2 3 4 5 8 15 16 or 17 to select the TIM peripheral . @param NewState : new state of the Capture Compare DMA source This parameter can be : ENABLE or DISABLE . @retval None
void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_LIST4_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->CR2 |= TIM_CR2_CCDS;
  }
  else
  {
    TIMx->CR2 &= (uint16_t)~((uint16_t)TIM_CR2_CCDS);
  }
}
void TIM_SelectCCDMA ( TIM_TypeDef * TIMx , FunctionalState NewState ) { assert_param ( IS_TIM_LIST4_PERIPH ( TIMx ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { TIMx -> CR2 |= TIM_CR2_CCDS ; } else { TIMx -> CR2 &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CR2_CCDS ) ; } }
@brief  Selects the TIMx peripheral Capture Compare DMA source.
@brief Selects the TIMx peripheral Capture Compare DMA source .
/* Check the parameters */ /* Set the CCDS Bit */ /* Reset the CCDS Bit */