General-purpose timers (TIM)
22.2.12 Output Compare management functions
22.2.12.1 TIM_OC1Init
void TIM_OC1Init ( TIM_TypeDef * TIMx, TIM_OCInitTypeDef *
TIM_OCInitStruct)
Initializes the TIMx Channel1 according to the specified
parameters in the TIM_OCInitStruct.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17, to select the
TIM peripheral.
ï‚· TIM_OCInitStruct : pointer to a TIM_OCInitTypeDef
structure that contains the configuration information for the
specified TIM peripheral.
22.2.12.2 TIM_OC2Init
void TIM_OC2Init ( TIM_TypeDef * TIMx, TIM_OCInitTypeDef *
TIM_OCInitStruct)
Initializes the TIMx Channel2 according to the specified
parameters in the TIM_OCInitStruct.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8 or 15 to select the TIM
peripheral.
ï‚· TIM_OCInitStruct : pointer to a TIM_OCInitTypeDef
structure that contains the configuration information for the
specified TIM peripheral.