#ifndef __TIMER_H #define __TIMER_H #include "main.h" #define EVENT_LED 0 #define EVENT_BUZZER 1 #define EVENT_HCSR04 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