vscode_embedded/vscode_stm32f1_test/hal/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Enables or disables the TIM Capture Compare Channel x.
  * @param  TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
  * @param  TIM_Channel: specifies the TIM Channel
  *   This parameter can be one of the following values:
  *     @arg TIM_Channel_1: TIM Channel 1
  *     @arg TIM_Channel_2: TIM Channel 2
  *     @arg TIM_Channel_3: TIM Channel 3
  *     @arg TIM_Channel_4: TIM Channel 4
  * @param  TIM_CCx: specifies the TIM Channel CCxE bit new state.
  *   This parameter can be: TIM_CCx_Enable or TIM_CCx_Disable. 
  * @retval None
  */
@brief  Enables or disables the TIM Capture Compare Channel x.
@param  TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
@brief Enables or disables the TIM Capture Compare Channel x . @param TIMx : where x can be 1 to 17 except 6 and 7 to select the TIM peripheral .
void TIM_CCxCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx)
{
  uint16_t tmp = 0;
  assert_param(IS_TIM_LIST8_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);
}
void TIM_CCxCmd ( TIM_TypeDef * TIMx , uint16_t TIM_Channel , uint16_t TIM_CCx ) { uint16_t tmp = 0 ; assert_param ( IS_TIM_LIST8_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 ) ; }
@brief  Enables or disables the TIM Capture Compare Channel x.
@brief Enables or disables the TIM Capture Compare Channel x .
/* Check the parameters */ /* Reset the CCxE Bit */ /* Set or reset the CCxE Bit */