20 lines
447 B
C
20 lines
447 B
C
#ifndef __EVENT_H__
|
|
#define __EVENT_H__
|
|
|
|
#include "config.h"
|
|
|
|
// 事件队列初始化与操作
|
|
void EventQueue_Init(void);
|
|
bit EventQueue_Push(SystemEvent evt);
|
|
bit EventQueue_InsertFront(SystemEvent evt);
|
|
SystemEvent EventQueue_Pop(void);
|
|
bit EventQueue_IsEmpty(void);
|
|
bit EventQueue_IsFull(void);
|
|
u8 EventQueue_GetCount(void);
|
|
|
|
// 事件分发与定时器/按键扫描初始化
|
|
void Event_Dispatcher_Loop(void);
|
|
void Timer1_Init(void);
|
|
|
|
#endif
|