Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2136 - 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
//# HISTORY  setup.h
36
//#
37
//# 26.06.2014 OG
38
//# - add: Setup_FollowMe()
39
//#
40
//# 22.06.2014 OG
41
//# - del: Variable CheckGPS
42
//#
43
//# 13.06.2014 OG
44
//# - del: ChangeWi_SV2()
45
//#
46
//# 11.06.2014 OG
47
//# - del: Edit_Language()
48
//#
49
//# 31.04.2014 OG
50
//# - chg: Edit_String() - Parameter 'Text' entfernt
51
//#
52
//# 28.05.2014 OG
53
//# - chg: Edit_generic() - geaenderte Aufrufparameter
54
//#        - Parameter 'Text' enfernt da vom Menue geerbt
55
//#        - Parameter fuer Hilfetexte
56
//#
57
//# 04.04.2014 OG
58
//# - del: Edit_ShowTitle_P()
59
//#
60
//# 02.04.2014 OG
61
//# - add: Edit_ShowTitle_P()
62
//# - add: WlanMode
63
//#
64
//# 15.07.2013 Cebra
65
//# - add: Edit_Printout um WlanSecurity erweitert
66
//#
67
//# 22.05.2013 OG
68
//# - del: verschiedene Cleanups
69
//############################################################################
70
 
71
 
72
#ifndef _setup_H
73
#define _setup_H
74
 
75
 
76
#define EDIT_BT_NAME     1
77
#define EDIT_BT_PIN      2
78
#define EDIT_SSID        3
79
#define EDIT_WL_PASSWORD 4
80
 
81
 
82
typedef enum  // Varianten fuer die Anzeige der Werte im Setupmenüe
83
{
84
  Show_uint3, Show_int3, Show_uint5, Show_uint10th, GPSMOUSE, Wi_Netmode,
85
  OnOff, YesNo, Orientation, NormRev, Kontrast, Baudrate, Language, Sticktype, WlanMode, WlanSecurity, PKT_Akku, MK_Connection
86
} EditMode;
87
 
88
void Setup_MAIN(void);
89
void Setup_FollowMe( void );
90
 
91
void Display_Setup (void);
92
void Wi_Use (void);
93
void BT_Use (void);
94
void BT_SelectDevice (void);
95
uint8_t BT_CheckBTM222( void );
96
 
97
void Wait4KeyOK( void );
98
 
99
int16_t Edit_generic( int16_t Value, int16_t min, int16_t max, uint8_t what, uint8_t Addfactor, const char *strHelp1, const char *strHelp2 );
100
uint8_t Edit_String( const char *data, const uint8_t length, uint8_t type);
101
 
102
uint8_t BT_ShowGPSData( uint8_t modus );
103
 
104
void BTM222_Info( void );
105
 
106
extern uint8_t bt_name_len;
107
extern uint8_t length_tmp;
108
extern uint8_t Old_Baudrate;              //Merkzelle für alte Baudrate
109
extern uint8_t edit;
110
extern char    EditString[21];
111
#endif