General-purpose timers (TIM)
TIMx : where x can be 1 or 8 to select the TIM peripheral.
TIM_OCClear : new state of the Output Compare Clear
Enable Bit. This parameter can be one of the following values:
TIM_OCClear_Enable : TIM Output clear enable
TIM_OCClear_Disable : TIM Output clear disable
22.2.12.40 TIM_SelectOCREFClear
void TIM_SelectOCREFClear ( TIM_TypeDef * TIMx, uint16_t
TIM_OCReferenceClear)
Selects the OCReference Clear source.
TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the
TIM peripheral.
TIM_OCReferenceClear : specifies the OCReference Clear
source. This parameter can be one of the following values:
TIM_OCReferenceClear_ETRF : The internal
OCreference clear input is connected to ETRF.
TIM_OCReferenceClear_OCREFCLR : The internal
OCreference clear input is connected to OCREF_CLR
input.
22.2.12.41 TIM_OC1PolarityConfig
void TIM_OC1PolarityConfig ( TIM_TypeDef * TIMx, uint16_t
TIM_OCPolarity)
Configures the TIMx channel 1 polarity.
TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the
TIM peripheral.
TIM_OCPolarity : specifies the OC1 Polarity This parameter
can be one of the following values:
TIM_OCPolarity_High : Output Compare active high
TIM_OCPolarity_Low : Output Compare active low