16 lines
233 B
C
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++;
|
|
}
|
|
} |