/* Selects the TIMx peripheral Capture Compare DMA source.  */
void TIM_SelectCCDMA(TIM_TypeDef *TIMx, FunctionalState NewState)
/* Selects the TIMx peripheral Capture Compare DMA source.  */
void TIM_SelectCCDMA(TIM_TypeDef *TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_LIST3_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->CR2 |= TIM_CR2_CCDS;
  }
  else
  {
    TIMx->CR2 &= (uint16_t)~TIM_CR2_CCDS;
  }
}