/***************************************************************************** * Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * * *****************************************************************************/ #ifndef _MENU_H #define _MENU_H //***************************************************************************** // #define CURSOR_COL 1 // column where the menu cursor is displayed #define MENU_LINE 1 // starting line of menu #define MENU_COL 3 // column where the menu starts //***************************************************************************** // typedef void(*pfunc)(void); struct menu { const char *str; pfunc func; }; //***************************************************************************** // void main_menu (void); uint8_t menu_choose (uint8_t min, uint8_t max, uint8_t pos, uint8_t start); #endif