Syrostan-MCU-C/Core/Src/User/user_isr.c
2021-07-26 17:17:04 +08:00

16 lines
233 B
C

#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++;
}
}