\r
/* Output Compare Toggle Mode configuration: Channel2 */\r
TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_PWM1;\r
- TIM_OCInitStructure.TIM_Channel = TIM_Channel_2;\r
+ TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;\r
TIM_OCInitStructure.TIM_Pulse = Current_CCR_BackLightStart;\r
\r
- TIM_OCInit( TIM4, &TIM_OCInitStructure );\r
+ TIM_OC2Init( TIM4, &TIM_OCInitStructure );\r
TIM_OC4PreloadConfig( TIM4, TIM_OCPreload_Disable );\r
\r
TIM_ARRPreloadConfig( TIM4, ENABLE );\r