问题:引脚设置为外部中断上升沿触发,中断触发了,但都debug读不到io口电平的变化
1、初始化gpio引脚
void GPIO_Init(void)
{
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;//GPIO_PuPd_DOWN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
GPIO_Init(GPIOF,&GPIO_InitStructure);
}
2、设置外部中断初始化
void EXTIx_Init(void)
{
SYSCFG_EXTILineConfig(EXTI_PortSourceGPIOF, EXTI_PinSource7);
EXTI_InitStructure.EXTI_Line = EXTI_Li