firmware-latest/platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Configures the TIMx Output Compare 3 Fast feature.
  * @param  TIMx: where x can be  1, 2, 3, 4, 5 or 8 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 3 Fast feature.
@param  TIMx: where x can be  1, 2, 3, 4, 5 or 8 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 3 Fast feature . @param TIMx : where x can be 1 2 3 4 5 or 8 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_OC3FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast)
{
  uint16_t tmpccmr2 = 0;
  assert_param(IS_TIM_LIST3_PERIPH(TIMx));
  assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast));
  tmpccmr2 = TIMx->CCMR2;
  tmpccmr2 &= (uint16_t)~((uint16_t)TIM_CCMR2_OC3FE);
  tmpccmr2 |= TIM_OCFast;
  TIMx->CCMR2 = tmpccmr2;
}
void TIM_OC3FastConfig ( TIM_TypeDef * TIMx , uint16_t TIM_OCFast ) { uint16_t tmpccmr2 = 0 ; assert_param ( IS_TIM_LIST3_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_OCFAST_STATE ( TIM_OCFast ) ) ; tmpccmr2 = TIMx -> CCMR2 ; tmpccmr2 &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CCMR2_OC3FE ) ; tmpccmr2 |= TIM_OCFast ; TIMx -> CCMR2 = tmpccmr2 ; }
@brief  Configures the TIMx Output Compare 3 Fast feature.
@brief Configures the TIMx Output Compare 3 Fast feature .
/* Check the parameters */ /* Get the TIMx CCMR2 register value */ /* Reset the OC3FE Bit */ /* Enable or Disable the Output Compare Fast Bit */ /* Write to TIMx CCMR2 */