我用定时器8产生PWM波,用定时器4输入捕获,现在的问题是串口助手没有任何输出,PWM波用示波器看过有输出,好像是没有进入中断,请大家帮忙看看#define GENERAL_TIM4 TIM4
#define GENERAL_TIM4_APBxClock_FUN RCC_APB1PeriphClockCmd
#define GENERAL_TIM4_CLK RCC_APB1Periph_TIM4
// 输入捕获能捕获到的最小的频率为 72M/{ (ARR+1)*(PSC+1) }
#define GENERAL_TIM4_PERIOD (1000-1)
#define GENERAL_TIM4_PSC (72-1)
// 中断相关宏定义
#define GENERAL_TIM4_IRQ TIM1_CC_IRQn
#define GENERAL_TIM4_IRQHandler TIM4_CC_IRQHandler
// TIM1 输入捕获通道1
#define GENERAL_TIM4_CH1_GPIO_CLK RCC_APB2Periph_GPIOB
#define GENERAL_TIM4_CH1_PORT GPIOB
#define GENERAL_TIM4_CH1_PIN GPIO_Pin_6
#define GENERAL_TIM4_IC1PWM_CHANNEL TIM_Channel_1
#define GENERAL_TIM4_IC2PWM_CHANNEL TIM_Channel_2 |