vscode_embedded/vscode_stm32f1_test/hal/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Clears the TIMx's interrupt pending bits.
  * @param  TIMx: where x can be 1 to 17 to select the TIM peripheral.
  * @param  TIM_IT: specifies the pending bit to clear.
  *   This parameter can be any combination of the following values:
  *     @arg TIM_IT_Update: TIM1 update Interrupt source
  *     @arg TIM_IT_CC1: TIM Capture Compare 1 Interrupt source
  *     @arg TIM_IT_CC2: TIM Capture Compare 2 Interrupt source
  *     @arg TIM_IT_CC3: TIM Capture Compare 3 Interrupt source
  *     @arg TIM_IT_CC4: TIM Capture Compare 4 Interrupt source
  *     @arg TIM_IT_COM: TIM Commutation Interrupt source
  *     @arg TIM_IT_Trigger: TIM Trigger Interrupt source
  *     @arg TIM_IT_Break: TIM Break Interrupt source
  * @note
  *   - TIM6 and TIM7 can generate only an update interrupt.
  *   - TIM9, TIM12 and TIM15 can have only TIM_IT_Update, TIM_IT_CC1,
  *      TIM_IT_CC2 or TIM_IT_Trigger. 
  *   - TIM10, TIM11, TIM13, TIM14, TIM16 and TIM17 can have TIM_IT_Update or TIM_IT_CC1.   
  *   - TIM_IT_Break is used only with TIM1, TIM8 and TIM15. 
  *   - TIM_IT_COM is used only with TIM1, TIM8, TIM15, TIM16 and TIM17.    
  * @retval None
  */
@brief  Clears the TIMx's interrupt pending bits.
@param  TIMx: where x can be 1 to 17 to select the TIM peripheral.
@param  TIM_IT: specifies the pending bit to clear.
@brief Clears the TIMx ' s interrupt pending bits . @param TIMx : where x can be 1 to 17 to select the TIM peripheral . @param TIM_IT : specifies the pending bit to clear .
void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT)
{
  assert_param(IS_TIM_ALL_PERIPH(TIMx));
  assert_param(IS_TIM_IT(TIM_IT));
  TIMx->SR = (uint16_t)~TIM_IT;
}
void TIM_ClearITPendingBit ( TIM_TypeDef * TIMx , uint16_t TIM_IT ) { assert_param ( IS_TIM_ALL_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_IT ( TIM_IT ) ) ; TIMx -> SR = ( uint16_t ) ~ TIM_IT ; }
@brief  Clears the TIMx's interrupt pending bits.
@brief Clears the TIMx ' s interrupt pending bits .
/* Check the parameters */ /* Clear the IT pending Bit */