/* Sets or Resets the TIM peripheral Capture Compare Preload Control bit.  */
void TIM_EnableCapCmpPreloadControl(TIM_Module *TIMx, FunctionalState Cmd)
/* Sets or Resets the TIM peripheral Capture Compare Preload Control bit.  */
void TIM_EnableCapCmpPreloadControl(TIM_Module *TIMx, FunctionalState Cmd)
{
    assert_param(IsTimList5Module(TIMx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        TIMx->CTRL2 |= TIM_CTRL2_CCPCTL;
    }
    else
    {
        TIMx->CTRL2 &= (uint32_t) ~((uint32_t)TIM_CTRL2_CCPCTL);
    }
}