|
本帖最后由 zhang911 于 2016-4-1 10:59 编辑
想同时启动stm32的Timer3和Timer4,设置Timer3为主模式,Timer4为从模式,
TIM_SelectMasterSlaveMode(TIM3,TIM_MasterSlaveMode_Enable);
TIM_SelectOutputTrigger(TIM3,TIM_TRGOSource_Enable);
TIM_SelectMasterSlaveMode(TIM4,TIM_MasterSlaveMode_Enable);
TIM_SelectInputTrigger(TIM4,TIM_TS_ITR0);
现在不确定Timer4应该选择什么模式,这里设置的是TIM_TS_ITR0,貌似不对,求答
|
|