Merge branch 'master' of http://git.brisky.space:441/btl143/firmware_clover
This commit is contained in:
@@ -20,7 +20,9 @@ enum PageID {
|
||||
//......
|
||||
page_menu,
|
||||
page_rtcam,
|
||||
page_param,
|
||||
page_param1,
|
||||
page_param2,
|
||||
page_dparam,
|
||||
// page_argv,
|
||||
// page_sys,
|
||||
// page_run,
|
||||
@@ -46,13 +48,15 @@ typedef struct {
|
||||
} PAGE_LIST;
|
||||
|
||||
// 页面注册函数
|
||||
#define PAGE_REG(name) \
|
||||
do { \
|
||||
extern void PageRegister_##name(unsigned char pageID); \
|
||||
PageRegister_##name(name); \
|
||||
} while (0)
|
||||
#define PAGE_REG(_name_, _text_) \
|
||||
do { \
|
||||
extern void PageRegister_##_name_(unsigned char pageID); \
|
||||
PageRegister_##_name_(_name_); \
|
||||
} while (0); \
|
||||
pagelist[_name_].Text = _text_ ;
|
||||
|
||||
void Page_Register(uint8_t pageID, char *pageText,
|
||||
|
||||
void Page_Register(uint8_t pageID,
|
||||
CallbackFunction_t setupCallback, CallbackFunction_t loopCallback,
|
||||
CallbackFunction_t exitCallback, EventFunction_t eventCallback);
|
||||
|
||||
@@ -63,7 +67,7 @@ void Page_OpenCurrentPage(void);
|
||||
uint8_t Page_GetStatus(void);
|
||||
void Page_Run(void);
|
||||
void Page_Init(void);
|
||||
int8_t Get_new_page(void);
|
||||
|
||||
extern PAGE_LIST pagelist[page_max];
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user