vscode_embedded/vscode_stm32f1_test/hal/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Enables or disables the TIM Capture Compare Channel xN.
  * @param  TIMx: where x can be 1, 8, 15, 16 or 17 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
  * @param  TIM_CCxN: specifies the TIM Channel CCxNE bit new state.
  *   This parameter can be: TIM_CCxN_Enable or TIM_CCxN_Disable. 
  * @retval None
  */
@brief  Enables or disables the TIM Capture Compare Channel xN.
@param  TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
@brief Enables or disables the TIM Capture Compare Channel xN . @param TIMx : where x can be 1 8 15 16 or 17 to select the TIM peripheral .
void TIM_CCxNCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN)
{
  uint16_t tmp = 0;
  assert_param(IS_TIM_LIST2_PERIPH(TIMx));
  assert_param(IS_TIM_COMPLEMENTARY_CHANNEL(TIM_Channel));
  assert_param(IS_TIM_CCXN(TIM_CCxN));
  tmp = CCER_CCNE_Set << TIM_Channel;
  TIMx->CCER &= (uint16_t) ~tmp;
  TIMx->CCER |=  (uint16_t)(TIM_CCxN << TIM_Channel);
}
void TIM_CCxNCmd ( TIM_TypeDef * TIMx , uint16_t TIM_Channel , uint16_t TIM_CCxN ) { uint16_t tmp = 0 ; assert_param ( IS_TIM_LIST2_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_COMPLEMENTARY_CHANNEL ( TIM_Channel ) ) ; assert_param ( IS_TIM_CCXN ( TIM_CCxN ) ) ; tmp = CCER_CCNE_Set << TIM_Channel ; TIMx -> CCER &= ( uint16_t ) ~ tmp ; TIMx -> CCER |= ( uint16_t ) ( TIM_CCxN << TIM_Channel ) ; }
@brief  Enables or disables the TIM Capture Compare Channel xN.
@brief Enables or disables the TIM Capture Compare Channel xN .
/* Check the parameters */ /* Reset the CCxNE Bit */ /* Set or reset the CCxNE Bit */