1234567891011121314151617181920212223242526 |
- #pragma once
- #define MODE_NO_CHANGE 0xff
- #define MODE_DEFAULT 0
- #define MODE_MAIN_MENU 1
- #define MODE_SETTINGS_MENU 2
- #define MAIN_MENU_MAXPOS 1
- struct main_menu_pos_s {
- const char * (* get_name)(void);
- unsigned char (* func)(void);
- };
- struct menu_params_s {
- unsigned char main_menu_pos;
- unsigned char settings_menu_pos;
- };
- extern struct menu_params_s mp;
- void key_process(void);
- unsigned char enter_settings(void);
- void display_settings_menu_item(void);
- void display_main_menu_item(void);
|