libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_tim.c
void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
{
  uint16_t tmpccer = 0;
  /* Check the parameters */
  assert_param(IS_TIM_LIST8_PERIPH(TIMx));
  assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity));
  tmpccer = TIMx->CCER;
  /* Set or Reset the CC1P Bit */
  tmpccer &= (uint16_t)~((uint16_t)TIM_CCER_CC1P);
  tmpccer |= TIM_OCPolarity;
  /* Write to TIMx CCER register */
  TIMx->CCER = tmpccer;
}
/**
  * @brief  Configures the TIMx channel 1 polarity.
  * @param  TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
  * @param  TIM_OCPolarity: specifies the OC1 Polarity
  *   This parameter can be one of the following values:
  *     @arg TIM_OCPolarity_High: Output Compare active high
  *     @arg TIM_OCPolarity_Low: Output Compare active low
  * @retval None
  */
@brief  Configures the TIMx channel 1 polarity.
@param  TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
@param  TIM_OCPolarity: specifies the OC1 Polarity
This parameter can be one of the following values:
@arg TIM_OCPolarity_High: Output Compare active high
@arg TIM_OCPolarity_Low: Output Compare active low
@retval None
@brief Configures the TIMx channel 1 polarity . @param TIMx : where x can be 1 to 17 except 6 and 7 to select the TIM peripheral . @param TIM_OCPolarity : specifies the OC1 Polarity This parameter can be one of the following values : @arg TIM_OCPolarity_High : Output Compare active high @arg TIM_OCPolarity_Low : Output Compare active low @retval None
void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
{
  uint16_t tmpccer = 0;
  assert_param(IS_TIM_LIST8_PERIPH(TIMx));
  assert_param(IS_TIM_OC_POLARITY(TIM_OCPolarity));
  tmpccer = TIMx->CCER;
  tmpccer &= (uint16_t)~((uint16_t)TIM_CCER_CC1P);
  tmpccer |= TIM_OCPolarity;
  TIMx->CCER = tmpccer;
}
void TIM_OC1PolarityConfig ( TIM_TypeDef * TIMx , uint16_t TIM_OCPolarity ) { uint16_t tmpccer = 0 ; assert_param ( IS_TIM_LIST8_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_OC_POLARITY ( TIM_OCPolarity ) ) ; tmpccer = TIMx -> CCER ; tmpccer &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CCER_CC1P ) ; tmpccer |= TIM_OCPolarity ; TIMx -> CCER = tmpccer ; }
@brief  Configures the TIMx channel 1 polarity.
@brief Configures the TIMx channel 1 polarity .
/* Check the parameters */ /* Set or Reset the CC1P Bit */ /* Write to TIMx CCER register */