2024-07-18 11:29:28 +08:00
|
|
|
#ifndef __TIMER_H
|
|
|
|
#define __TIMER_H
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
#define EVENT_LED 0
|
|
|
|
#define EVENT_BUZZER 1
|
2024-07-19 12:32:54 +08:00
|
|
|
#define EVENT_BLUETOOTH 2
|
2024-07-18 11:29:28 +08:00
|
|
|
#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
|