/* 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_123458_PERIPH(TIMx));
    assert_param(IS_FUNCTIONAL_STATE(NewState));
    if (NewState != DISABLE)
    {
        TIMx->CR2 |= CR2_CCDS_Set;
    }
    else
    {
        TIMx->CR2 &= CR2_CCDS_Reset;
    }
}