firmware-latest/platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Configures the TIMx Channel 3N polarity.
  * @param  TIMx: where x can be 1 or 8 to select the TIM peripheral.
  * @param  TIM_OCNPolarity: specifies the OC3N Polarity
  *   This parameter can be one of the following values:
  *     @arg TIM_OCNPolarity_High: Output Compare active high
  *     @arg TIM_OCNPolarity_Low: Output Compare active low
  * @retval None
  */
@brief  Configures the TIMx Channel 3N polarity.
@param  TIMx: where x can be 1 or 8 to select the TIM peripheral.
@param  TIM_OCNPolarity: specifies the OC3N Polarity
This parameter can be one of the following values:
@arg TIM_OCNPolarity_High: Output Compare active high
@arg TIM_OCNPolarity_Low: Output Compare active low
@retval None
@brief Configures the TIMx Channel 3N polarity . @param TIMx : where x can be 1 or 8 to select the TIM peripheral . @param TIM_OCNPolarity : specifies the OC3N Polarity This parameter can be one of the following values : @arg TIM_OCNPolarity_High : Output Compare active high @arg TIM_OCNPolarity_Low : Output Compare active low @retval None
void TIM_OC3NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity)
{
  uint16_t tmpccer = 0;
  assert_param(IS_TIM_LIST1_PERIPH(TIMx));
  assert_param(IS_TIM_OCN_POLARITY(TIM_OCNPolarity));
  tmpccer = TIMx->CCER;
  tmpccer &= (uint16_t)~((uint16_t)TIM_CCER_CC3NP);
  tmpccer |= (uint16_t)(TIM_OCNPolarity << 8);
  TIMx->CCER = tmpccer;
}
void TIM_OC3NPolarityConfig ( TIM_TypeDef * TIMx , uint16_t TIM_OCNPolarity ) { uint16_t tmpccer = 0 ; assert_param ( IS_TIM_LIST1_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_OCN_POLARITY ( TIM_OCNPolarity ) ) ; tmpccer = TIMx -> CCER ; tmpccer &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CCER_CC3NP ) ; tmpccer |= ( uint16_t ) ( TIM_OCNPolarity << 8 ) ; TIMx -> CCER = tmpccer ; }
@brief  Configures the TIMx Channel 3N polarity.
@brief Configures the TIMx Channel 3N polarity .
/* Check the parameters */ /* Set or Reset the CC3NP Bit */ /* Write to TIMx CCER register */