firmware-latest/platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Configures the TIMx Output Compare 1 Fast feature.
  * @param  TIMx: where x can be  1 to 17 except 6 and 7 to select the TIM peripheral.
  * @param  TIM_OCFast: new state of the Output Compare Fast Enable Bit.
  *   This parameter can be one of the following values:
  *     @arg TIM_OCFast_Enable: TIM output compare fast enable
  *     @arg TIM_OCFast_Disable: TIM output compare fast disable
  * @retval None
  */
@brief  Configures the TIMx Output Compare 1 Fast feature.
@param  TIMx: where x can be  1 to 17 except 6 and 7 to select the TIM peripheral.
@param  TIM_OCFast: new state of the Output Compare Fast Enable Bit.
This parameter can be one of the following values:
@arg TIM_OCFast_Enable: TIM output compare fast enable
@arg TIM_OCFast_Disable: TIM output compare fast disable
@retval None
@brief Configures the TIMx Output Compare 1 Fast feature . @param TIMx : where x can be 1 to 17 except 6 and 7 to select the TIM peripheral . @param TIM_OCFast : new state of the Output Compare Fast Enable Bit . This parameter can be one of the following values : @arg TIM_OCFast_Enable : TIM output compare fast enable @arg TIM_OCFast_Disable : TIM output compare fast disable @retval None
void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast)
{
  uint16_t tmpccmr1 = 0;
  assert_param(IS_TIM_LIST8_PERIPH(TIMx));
  assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast));
  tmpccmr1 = TIMx->CCMR1;
  tmpccmr1 &= (uint16_t)~((uint16_t)TIM_CCMR1_OC1FE);
  tmpccmr1 |= TIM_OCFast;
  TIMx->CCMR1 = tmpccmr1;
}
void TIM_OC1FastConfig ( TIM_TypeDef * TIMx , uint16_t TIM_OCFast ) { uint16_t tmpccmr1 = 0 ; assert_param ( IS_TIM_LIST8_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_OCFAST_STATE ( TIM_OCFast ) ) ; tmpccmr1 = TIMx -> CCMR1 ; tmpccmr1 &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CCMR1_OC1FE ) ; tmpccmr1 |= TIM_OCFast ; TIMx -> CCMR1 = tmpccmr1 ; }
@brief  Configures the TIMx Output Compare 1 Fast feature.
@brief Configures the TIMx Output Compare 1 Fast feature .
/* Check the parameters */ /* Get the TIMx CCMR1 register value */ /* Reset the OC1FE Bit */ /* Enable or Disable the Output Compare Fast Bit */ /* Write to TIMx CCMR1 */