请大神看看这几句程序有没有问题?

2019-07-20 16:40发布

        TIM_OCInitTypeDef TIM_OCInitStruct;
        TIM_OCInitStruct.TIM_OCMode=TIM_OCMode_PWM1;
        TIM_OCInitStruct.TIM_OutputState=ENABLE;
        TIM_OCInitStruct.TIM_OCPolarity=TIM_OCPolarity_High;
        TIM_OCInitStruct.TIM_Pulse=100;
        TIM_OC1Init(TIM4,&TIM_OCInitStruct);
        TIM_OC2Init(TIM4,&TIM_OCInitStruct);
        TIM_OC3Init(TIM4,&TIM_OCInitStruct);
        TIM_OC4Init(TIM4,&TIM_OCInitStruct);


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。