\r
/* Output Compare Toggle Mode configuration: Channel3 */\r
TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_PWM1;\r
- TIM_OCInitStructure.TIM_Channel = TIM_Channel_3;\r
+ TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;\r
TIM_OCInitStructure.TIM_Pulse = CCR_Val;\r
\r
- TIM_OCInit( TIM3, &TIM_OCInitStructure );\r
+ TIM_OC3Init( TIM3, &TIM_OCInitStructure );\r
TIM_OC3PreloadConfig( TIM3, TIM_OCPreload_Enable );\r
}\r
\r
\r
/* Output Compare Toggle Mode configuration: Channel3 */\r
TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_Toggle;\r
- TIM_OCInitStructure.TIM_Channel = TIM_Channel_3;\r
+ TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;\r
TIM_OCInitStructure.TIM_Pulse = CCR_Val;\r
\r
- TIM_OCInit( TIM3, &TIM_OCInitStructure );\r
+ TIM_OC3Init( TIM3, &TIM_OCInitStructure );\r
TIM_OC3PreloadConfig( TIM3, TIM_OCPreload_Disable );\r
BUZZER_SetFrequency( 440 );\r
\r