4、meBaseInit(TIM2,&TIM_TimeBaseStructure);//基本初始化//TIM2通道的捕捉初始化 TIM_ICInitStructure.TIM_Channel=TIM_Channel_4;//通道选择 TIM_ICInitStructure.TIM_ICPolarity=TIM_ICPolarity_Falling;//下降沿 TIM_ICInitStructure.TIM_ICSelection=TIM_ICSelection_DirectTI;//管脚与寄存器对应关系 TI