feat:增加圆环参数
This commit is contained in:
@@ -19,9 +19,10 @@ enum PageID {
|
||||
PAGE_NULL = -1,
|
||||
//......
|
||||
page_menu,
|
||||
//page_rtcam,
|
||||
// page_rtcam,
|
||||
page_param_pid0,
|
||||
page_param_pid1,
|
||||
page_param_pid2,
|
||||
page_dparam,
|
||||
// page_argv,
|
||||
// page_sys,
|
||||
@@ -30,11 +31,11 @@ enum PageID {
|
||||
page_max,
|
||||
};
|
||||
|
||||
typedef enum page_event{
|
||||
page_event_forward = rotate_button_forward,
|
||||
page_event_backward = rotate_button_backward,
|
||||
typedef enum page_event {
|
||||
page_event_forward = rotate_button_forward,
|
||||
page_event_backward = rotate_button_backward,
|
||||
page_event_press_short = rotate_button_press_short,
|
||||
page_event_press_long = rotate_button_press_long,
|
||||
page_event_press_long = rotate_button_press_long,
|
||||
} page_event;
|
||||
|
||||
typedef void (*CallbackFunction_t)(void);
|
||||
@@ -47,16 +48,16 @@ typedef struct {
|
||||
EventFunction_t EventCallback;
|
||||
} PAGE_LIST;
|
||||
|
||||
//页面注册函数
|
||||
#define PAGE_REG(name)\
|
||||
do{\
|
||||
extern void PageRegister_##name(unsigned char pageID);\
|
||||
PageRegister_##name(name);\
|
||||
}while(0)
|
||||
// 页面注册函数
|
||||
#define PAGE_REG(name) \
|
||||
do { \
|
||||
extern void PageRegister_##name(unsigned char pageID); \
|
||||
PageRegister_##name(name); \
|
||||
} while (0)
|
||||
|
||||
void Page_Register(uint8_t pageID, char *pageText,
|
||||
CallbackFunction_t setupCallback, CallbackFunction_t loopCallback,
|
||||
CallbackFunction_t exitCallback, EventFunction_t eventCallback);
|
||||
CallbackFunction_t setupCallback, CallbackFunction_t loopCallback,
|
||||
CallbackFunction_t exitCallback, EventFunction_t eventCallback);
|
||||
|
||||
void Page_EventTransmit(unsigned char event);
|
||||
void Page_Shift(unsigned char pageID);
|
||||
|
||||
Reference in New Issue
Block a user