feat:完成ui设计
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);
|
||||
|
||||
@@ -65,5 +69,5 @@ void Page_Run(void);
|
||||
void Page_Init(void);
|
||||
|
||||
extern PAGE_LIST pagelist[page_max];
|
||||
|
||||
extern int8_t new_page ;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user