Car/Service/Inc/timer.h
2024-07-19 12:32:54 +08:00

17 lines
317 B
C

#ifndef __TIMER_H
#define __TIMER_H
#include "main.h"
#define EVENT_LED 0
#define EVENT_BUZZER 1
#define EVENT_BLUETOOTH 2
#define EVENT_SERVO 3
#define EVENT_MAX 4
void TIMER_Init(void);
void TIMER_AddLoopEvent(uint8_t type, void (*func)(void), uint16_t loop_time);
void TIMER_DelLoopEvent(uint8_t type);
#endif