// 后面主从模式是 DISABLE 的,只是代码生成了voidMX_TIM2_Init(void){TIM_ClockConfigTypeDefsClockSourceConfig={0};TIM_MasterConfigTypeDefsMasterConfig={0};htim2.Instance=TIM2;htim2.Init.Prescaler=7200-1;htim2.Init.CounterMode=TIM_COUNTERMODE_UP;htim2.Init.Period=10000-1;htim2.Init.ClockDiv...
_Disable; TIM_OCInitStructure.TIM_Pulse = Angle_Target_Interrupt; TIM_OCInitStructure.TIM_OCPolarity = TIM_OCPolarity_High; TIM_OC3Init(TIM2, &TIM_OCInitStructure); TIM_OC3PreloadConfig(TIM2, TIM_OCPreload_Disable);//禁止 TIM_CCR1 寄存器的预装载使能 TIM_ITConfig(TIM2, TIM_IT_CC3, DISABLE);...