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