/* Enables or disables the TIM Capture Compare Channel x.  */
void TIM_CCxCmd(TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx)
/* Enables or disables the TIM Capture Compare Channel x.  */
void TIM_CCxCmd(TIM_TypeDef *TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx)
{
  uint16_t tmp = 0;
  assert_param(IS_TIM_LIST1_PERIPH(TIMx)); 
  assert_param(IS_TIM_CHANNEL(TIM_Channel));
  assert_param(IS_TIM_CCX(TIM_CCx));
  tmp = CCER_CCE_SET << TIM_Channel;
  TIMx->CCER &= (uint16_t)~ tmp; 
  TIMx->CCER |=  (uint16_t)(TIM_CCx << TIM_Channel);
}