Files
rad1o-f1rmware/r0ketlib/menu.h
2015-07-06 22:51:35 +02:00

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 */