Modularize main.c into rgb, event, database, ui, system, and app_manager modules
This commit is contained in:
19
App/event.h
Normal file
19
App/event.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user