Subversion Repositories Projects

Rev

Rev 762 | Rev 902 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 762 Rev 837
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009-2010 by Claas Anders "CaScAdE" Rathje               *
2
 *   Copyright (C) 2009-2010 by Claas Anders "CaScAdE" Rathje               *
3
 *   admiralcascade@gmail.com                                               *
3
 *   admiralcascade@gmail.com                                               *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
5
 *                                                                          *
5
 *                                                                          *
6
 *   This program is free software; you can redistribute it and/or modify   *
6
 *   This program is free software; you can redistribute it and/or modify   *
7
 *   it under the terms of the GNU General Public License as published by   *
7
 *   it under the terms of the GNU General Public License as published by   *
8
 *   the Free Software Foundation; either version 2 of the License.         *
8
 *   the Free Software Foundation; either version 2 of the License.         *
9
 *                                                                          *
9
 *                                                                          *
10
 *   This program is distributed in the hope that it will be useful,        *
10
 *   This program is distributed in the hope that it will be useful,        *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
13
 *   GNU General Public License for more details.                           *
13
 *   GNU General Public License for more details.                           *
14
 *                                                                          *
14
 *                                                                          *
15
 *   You should have received a copy of the GNU General Public License      *
15
 *   You should have received a copy of the GNU General Public License      *
16
 *   along with this program; if not, write to the                          *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
19
 ****************************************************************************/
20
 
20
 
21
#ifndef _CONFIG_H
21
#ifndef _CONFIG_H
22
#define _CONFIG_H
22
#define _CONFIG_H
23
 
23
 
24
 
24
 
25
#define CHECKBYTE1 64
25
#define CHECKBYTE1 230
26
#define CHECKBYTE2 46
26
#define CHECKBYTE2 32
27
 
27
 
28
#define MENU_LEFT        1
28
#define MENU_LEFT        1
29
#define MENU_MIDDLE     15
29
#define MENU_MIDDLE     15
30
#define MENU_TOP         2
30
#define MENU_TOP         2
31
 
31
 
32
extern uint8_t COSD_FLAGS_MODES, COSD_FLAGS_CONFIG, COSD_FLAGS_RUNTIME, COSD_DISPLAYMODE;
32
extern uint8_t COSD_FLAGS_MODES, COSD_FLAGS_CONFIG, COSD_FLAGS_RUNTIME, COSD_DISPLAYMODE;
33
extern uint8_t min_voltage;
33
extern uint8_t min_voltage;
34
extern uint8_t max_voltage;
34
extern uint8_t max_voltage;
35
extern uint8_t bottom_line;
35
extern uint8_t bottom_line;
36
 
36
 
37
extern volatile uint16_t uptime;
37
extern volatile uint16_t uptime;
-
 
38
 
-
 
39
extern uint8_t scope[8];
38
 
40
 
39
/**
41
/**
40
 * read data saved in eeprom, print out message if <verbose> is set
42
 * read data saved in eeprom, print out message if <verbose> is set
41
 */
43
 */
42
void init_cosd(uint8_t);
44
void init_cosd(uint8_t);
43
 
45
 
44
/**
46
/**
45
 * a simple config menu tryout
47
 * a simple config menu tryout
46
 */
48
 */
47
void config_menu(void);
49
void config_menu(void);
48
 
50
 
49
/**
51
/**
50
 * read data saved in eeprom, print out message if <verbose> is set
52
 * read data saved in eeprom, print out message if <verbose> is set
51
 */
53
 */
52
void get_eeprom(uint8_t);
54
void get_eeprom(uint8_t);
53
 
55
 
54
#endif
56
#endif
55
 
57