ISKBoard example project
Wenxue
2025-09-02 7dc2985c99db42f170d93ba6d013c4dd4e429eeb
Core/Src/board/miscdev.c
@@ -130,3 +130,26 @@
    return leds[which].status;
}
/*
 *+----------------------+
 *|     GPIO Key API     |
 *+----------------------+
 */
#include "main.h" /* Key1_pin, Key2_Pin, Key3_Pin 定义在该头文件下 */
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
    if( Key1_Pin == GPIO_Pin )
    {
        blink_led( Led_R, 500 );
    }
    else if( Key2_Pin == GPIO_Pin )
    {
        blink_led( Led_G, 500 );
    }
    else if( Key3_Pin == GPIO_Pin )
    {
        blink_led( Led_B, 500 );
    }
}