#pragma once #define MODE_NO_CHANGE 0xff #define MODE_DEFAULT 0 #define MODE_MAIN_MENU 1 #define MODE_SETTINGS_MENU 2 struct main_menu_pos_s { 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 main_menu_right_press(void); unsigned char enter_settings(void); void display_settings_menu_item(void);