/* Enables or disables the TIM Capture Compare Channel x.  */
void TIM_EnableCapCmpCh(TIM_Module *TIMx, uint16_t Channel, uint32_t TIM_CCx)
/* Enables or disables the TIM Capture Compare Channel x.  */
void TIM_EnableCapCmpCh(TIM_Module *TIMx, uint16_t Channel, uint32_t TIM_CCx)
{
    uint16_t tmp = 0;
    assert_param(IsTimList8Module(TIMx));
    assert_param(IsTimCh(Channel));
    assert_param(IsTimCapCmpState(TIM_CCx));
    tmp = CAPCMPEN_CCE_SET << Channel;
    TIMx->CCEN &= (uint32_t)~tmp;
    TIMx->CCEN |= (uint32_t)(TIM_CCx << Channel);
}