Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1932 | - | 1 | /***************************************************************************** |
2 | * Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de * |
||
3 | * Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net * |
||
4 | * Copyright (C) 2011 Christian "Cebra" Brandtner, brandtner@brandtner.net * |
||
5 | * Copyright (C) 2011 Harald Bongartz * |
||
6 | * * |
||
7 | * This program is free software; you can redistribute it and/or modify * |
||
8 | * it under the terms of the GNU General Public License as published by * |
||
9 | * the Free Software Foundation; either version 2 of the License. * |
||
10 | * * |
||
11 | * This program is distributed in the hope that it will be useful, * |
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||
14 | * GNU General Public License for more details. * |
||
15 | * * |
||
16 | * You should have received a copy of the GNU General Public License * |
||
17 | * along with this program; if not, write to the * |
||
18 | * Free Software Foundation, Inc., * |
||
19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||
20 | * * |
||
21 | * * |
||
22 | * Credits to: * |
||
23 | * Holger Buss & Ingo Busker from mikrokopter.de for the MK project + SVN * |
||
24 | * http://www.mikrokopter.de * |
||
25 | * Gregor "killagreg" Stobrawa for his version of the MK code * |
||
26 | * Thomas Kaiser "thkais" for the original project. See * |
||
27 | * http://www.ft-fanpage.de/mikrokopter/ * |
||
28 | * http://forum.mikrokopter.de/topic-4061-1.html * |
||
29 | * Claas Anders "CaScAdE" Rathje for providing the font and his C-OSD code * |
||
30 | * http://www.mylifesucks.de/oss/c-osd/ * |
||
31 | * Harald Bongartz "HaraldB" for providing his Ideas and Code for usibility* |
||
32 | *****************************************************************************/ |
||
33 | |||
34 | |||
35 | #ifndef MENU_H |
||
36 | #define MENU_H |
||
37 | |||
38 | #include "messages.h" |
||
39 | |||
40 | #define CURSOR_COL 1 // column where the menu cursor is displayed |
||
41 | #define MENU_LINE 1 // starting line of menu |
||
42 | #define MENU_COL 3 // column where the menu starts |
||
43 | #define OSD_Mode 1 // OSD Anzeige als OSD |
||
44 | #define THREE_D_Mode 3 // OSD Anzeige in 3D Position |
||
45 | |||
46 | void main_menu (void); |
||
47 | void Show_Version (void); |
||
48 | void Show_Error_HW (void); |
||
49 | void Update_PKT (void); |
||
50 | void PC_Fast_Connect (void); |
||
51 | |||
52 | //// Variablen für die Menüsteuerung |
||
53 | extern uint8_t ii; |
||
54 | extern uint8_t offset; |
||
55 | extern uint8_t size; |
||
56 | extern uint8_t dmode; |
||
57 | extern uint8_t target_pos; |
||
58 | extern uint8_t val; |
||
59 | |||
60 | |||
61 | uint8_t menu_select(const char menuitem[][NUM_LANG][18],uint8_t size, uint8_t targetpos); |
||
62 | uint8_t menu_choose (uint8_t min, uint8_t max, uint8_t pos, uint8_t start); |
||
63 | uint8_t menu_choose2 (uint8_t min, uint8_t max, uint8_t start, uint8_t return_at_start, uint8_t return_at_end); |
||
64 | uint8_t menu_choose3 (uint8_t min, uint8_t max, uint8_t start, uint8_t return_at_start, uint8_t return_at_end); |
||
65 | |||
66 | #endif |