1234567891011121314151617181920212223242526272829303132 |
- #pragma once
- #define MODE_NO_CHANGE 0xff
- #define MODE_DEFAULT 0
- #define MODE_MAIN_MENU 1
- #define MODE_SETTINGS_MENU 2
- #define SETTINGS_TYPE_BACK 0
- #define SETTINGS_TYPE_BOOL 1
- struct main_menu_pos_s {
- unsigned char (* func)(void);
- };
- struct settings_menu_pos_s {
- unsigned char type;
- __flash const char *name;
- unsigned char index;
- };
- 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 main_menu_right_press(void);
- unsigned char enter_settings(void);
- void display_settings_menu_item(void);
|