mirror of
https://github.com/rad1o/f1rmware.git
synced 2026-02-20 02:01:21 +01:00
22 lines
361 B
C
22 lines
361 B
C
#ifndef _MENU_H
|
|
#define _MENU_H 1
|
|
|
|
struct MENU_DEF {
|
|
const char *text;
|
|
void (*callback)(void);
|
|
};
|
|
|
|
struct MENU {
|
|
const char *title;
|
|
struct MENU_DEF entries[];
|
|
};
|
|
|
|
#define MENU_TIMEOUT (1<<0)
|
|
#define MENU_JUSTONCE (1<<1)
|
|
#define MENU_BIG (1<<2)
|
|
extern uint8_t menuflags;
|
|
|
|
void handleMenu(const struct MENU *the_menu);
|
|
|
|
#endif /* _MENU_H */
|