#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_LINESEEK 4 #define EVENT_INFRARED 5 #define EVENT_SONAR 6 #define EVENT_BLOCK 7 #define EVENT_MAX 8 void TIMER_Init(void); void TIMER_AddLoopEvent(uint8_t type, void (*func)(void), uint16_t loop_time); void TIMER_DelLoopEvent(uint8_t type); #endif