__HAL_GPIO_EXTI_GENERATE_SWIT(GPIO_PIN_0); //产生EXTI0 软中断 HAL_Delay(500); //这个延时也是必要的,否则由于按键抖动,会两次触发 } else if (GPIO_Pin == KeyLeft_Pin) //PA6=KeyLeft, 使LED1输出翻转 { HAL_GPIO_TogglePin(LED1_GPIO_Port,LED1_Pin); HAL_Delay(1000); //软件消除按键...
voidEXTI15_10_IRQHandler(void){HAL_GPIO_EXTI_IRQHandler(ONOFF_STAT_PIN);// Checks if ONOFF_STAT_PIN is source of IT// if so: HAL clears the IT and calls HAL_GPIO_EXTI_Callback (see below)} 开发者ID:La-BlueFrog,项目名称:LBF-V2-SW-WIP,代码行数:6,代码来源:stm32_it.c 示例9: EX...