做了一个按键程序,但是进不了中断,程序如下, 基本配置NVIC_InitStruct.NVIC_IRQChannel = EXTI2_TS_IRQnreemptionPriority = 0; SubPriority = 1;GPIO_Pin_2; GPIO_Mode_IN;GPIO_Speed_50MHz;GPIO_PuPd_UP; SYSCFG_EXTILineConfig(EXTI_PortSourceGPIOC, EXTI_PinSource2);EXTI_Line2;EXTI_Mode_Interrupt;EXTI_Trigger_Falling; EXTI_LineCmd = ENABLE;void EXTI2_TS_IRQHandler(void){ if(EXTI_GetITStatus(EXTI_Line2) != RESET) { Delay(2000); if(EXTI_GetITStatus(EXTI_Line2) != RESET) { EXTI_ClearITPendingBit(EXTI_Line2); LEDON; } } 这是网友在FAQ栏目中的提问,欢迎大家去FAQ帮助解答:https://www.stmcu.org.cn/faq/index/detail/id-70529 |
STM32F3 硬件I2C 驱动OLED 求助!!
STM32F303使用定时器触发双ADC常规同步采样模式
哪位大哥传下STM32F334 Nucleo的工程模板给我下
STM32F334 不能串口下载
关于STM32F334的HRTIM分辨率问题
STM32F303+LCD1602程序问题,不只为什么点不亮?
STM32F334的ADC使用问题
STM32F334 HRTIM形成移相全桥波形问题
有用过STM32F373VC的板子么 iic 例程不好使
STM32F3 ADC外部触发采样达不到7.2MSPS
复用时钟没打开吧,代码里没看到