Add about command to menu and restructure code. Delete preliminary code from mainloop. Better code will follow

This commit is contained in:
2020-06-13 22:47:45 +02:00
parent e627cb67a5
commit a6dc4f9b46
10 changed files with 122 additions and 94 deletions

View File

@@ -18,8 +18,8 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LCD_MENU_H__
#define __LCD_MENU_H__
#ifndef __REFLOW_MENU_H__
#define __REFLOW_MENU_H__
/**
* @brief Handle the reflow controller's LCD Menu
@@ -29,4 +29,4 @@ int reflow_menu_handle(void);
void reflow_menu_init(void);
#endif /* __LCD_MENU_H__ */
#endif /* __REFLOW_MENU_H__ */

View File

@@ -49,6 +49,11 @@ extern volatile uint32_t wait_tick_ms;
*/
extern volatile uint64_t global_tick_ms;
/**
* @brief Wait counter for the display. This must not be used anywhere else
*/
extern volatile uint32_t lcd_tick_ms;
/**
* @brief Setup the Systick timer to generate a 1 ms tick
*/

View File

@@ -76,4 +76,6 @@ void menu_list_scroll_down(struct menu_list *list);
void menu_list_scroll_up(struct menu_list *list);
void menu_list_enter_selected_entry(struct menu_list *list, struct lcd_menu *menu);
#endif /* __MENU_H__ */