cubeMX 使用 外部中断 生成代码后 只需要在gpio.c最下面 加回调函数 void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) 即可,注意一定要用此参数 GPIO_Pin 开始