#include "user_isr.h" #include "user_main.h" void timer4_isr () { static uint16_t cnt = 0; if (cnt > 999) { HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin); cnt = 0; } else { cnt++; } }