vscode_embedded/vscode_stm32f1_test/hal/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Sets the TIMx Input Capture 4 prescaler.
  * @param  TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
  * @param  TIM_ICPSC: specifies the Input Capture4 prescaler new value.
  *   This parameter can be one of the following values:
  *     @arg TIM_ICPSC_DIV1: no prescaler
  *     @arg TIM_ICPSC_DIV2: capture is done once every 2 events
  *     @arg TIM_ICPSC_DIV4: capture is done once every 4 events
  *     @arg TIM_ICPSC_DIV8: capture is done once every 8 events
  * @retval None
  */
@brief  Sets the TIMx Input Capture 4 prescaler.
@param  TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
@param  TIM_ICPSC: specifies the Input Capture4 prescaler new value.
@brief Sets the TIMx Input Capture 4 prescaler . @param TIMx : where x can be 1 2 3 4 5 or 8 to select the TIM peripheral . @param TIM_ICPSC : specifies the Input Capture4 prescaler new value .
void TIM_SetIC4Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC)
{  
  assert_param(IS_TIM_LIST3_PERIPH(TIMx));
  assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC));
  TIMx->CCMR2 &= (uint16_t)~((uint16_t)TIM_CCMR2_IC4PSC);
  TIMx->CCMR2 |= (uint16_t)(TIM_ICPSC << 8);
}
void TIM_SetIC4Prescaler ( TIM_TypeDef * TIMx , uint16_t TIM_ICPSC ) { assert_param ( IS_TIM_LIST3_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_IC_PRESCALER ( TIM_ICPSC ) ) ; TIMx -> CCMR2 &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CCMR2_IC4PSC ) ; TIMx -> CCMR2 |= ( uint16_t ) ( TIM_ICPSC << 8 ) ; }
@brief  Sets the TIMx Input Capture 4 prescaler.
@brief Sets the TIMx Input Capture 4 prescaler .
/* Check the parameters */ /* Reset the IC4PSC Bits */ /* Set the IC4PSC value */