Rev 1477 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1477 | Rev 1478 | ||
---|---|---|---|
1 | /***************************************************************************** |
1 | /***************************************************************************** |
2 | * Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de * |
2 | * Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de * |
3 | * Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net * |
3 | * Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net * |
4 | * Copyright (C) 2011 Christian "Cebra" Brandtner, brandtner@brandtner.net * |
4 | * Copyright (C) 2011 Christian "Cebra" Brandtner, brandtner@brandtner.net * |
5 | * Copyright (C) 2011 Harald Bongartz * |
5 | * Copyright (C) 2011 Harald Bongartz * |
6 | * * |
6 | * * |
7 | * This program is free software; you can redistribute it and/or modify * |
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 * |
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. * |
9 | * the Free Software Foundation; either version 2 of the License. * |
10 | * * |
10 | * * |
11 | * This program is distributed in the hope that it will be useful, * |
11 | * This program is distributed in the hope that it will be useful, * |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
14 | * GNU General Public License for more details. * |
14 | * GNU General Public License for more details. * |
15 | * * |
15 | * * |
16 | * You should have received a copy of the GNU General Public License * |
16 | * You should have received a copy of the GNU General Public License * |
17 | * along with this program; if not, write to the * |
17 | * along with this program; if not, write to the * |
18 | * Free Software Foundation, Inc., * |
18 | * Free Software Foundation, Inc., * |
19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
20 | * * |
20 | * * |
21 | * * |
21 | * * |
22 | * Credits to: * |
22 | * Credits to: * |
23 | * Holger Buss & Ingo Busker from mikrokopter.de for the MK project + SVN * |
23 | * Holger Buss & Ingo Busker from mikrokopter.de for the MK project + SVN * |
24 | * http://www.mikrokopter.de * |
24 | * http://www.mikrokopter.de * |
25 | * Gregor "killagreg" Stobrawa for his version of the MK code * |
25 | * Gregor "killagreg" Stobrawa for his version of the MK code * |
26 | * Thomas Kaiser "thkais" for the original project. See * |
26 | * Thomas Kaiser "thkais" for the original project. See * |
27 | * http://www.ft-fanpage.de/mikrokopter/ * |
27 | * http://www.ft-fanpage.de/mikrokopter/ * |
28 | * http://forum.mikrokopter.de/topic-4061-1.html * |
28 | * http://forum.mikrokopter.de/topic-4061-1.html * |
29 | * Claas Anders "CaScAdE" Rathje for providing the font and his C-OSD code * |
29 | * Claas Anders "CaScAdE" Rathje for providing the font and his C-OSD code * |
30 | * http://www.mylifesucks.de/oss/c-osd/ * |
30 | * http://www.mylifesucks.de/oss/c-osd/ * |
31 | * Harald Bongartz "HaraldB" for providing his Ideas and Code for usibility* |
31 | * Harald Bongartz "HaraldB" for providing his Ideas and Code for usibility* |
32 | *****************************************************************************/ |
32 | *****************************************************************************/ |
33 | 33 | ||
34 | /** |
34 | /** |
35 | * @author Cebra |
35 | * @author $(user) |
36 | * |
36 | * |
37 | * $(tags) |
37 | * $(tags) |
38 | */ |
38 | */ |
39 | 39 | ||
40 | 40 | ||
41 | #ifndef _MAIN_H |
41 | #ifndef _MAIN_H |
42 | #define _MAIN_H |
42 | #define _MAIN_H |
43 | 43 | ||
44 | // Version der Software |
44 | // Version der Software |
45 | #define PKTSWVersion "3.5.8a" // 1. SVN Version |
45 | #define PKTSWVersion "3.5.8a" // 1. SVN Version |
46 | 46 | ||
47 | 47 | ||
48 | //#define DEBUG |
48 | //#define DEBUG |
49 | 49 | ||
50 | 50 | ||
51 | // Fusebits für Hardware 1.2 D7 DC FC |
51 | // Fusebits für Hardware 1.2 D7 DC FC |
52 | // Fusebits für Hardware 1.3 |
52 | // Fusebits für Hardware 1.3 |
53 | // Fusebits für Hardware 3.x D7 DC FC |
53 | // Fusebits für Hardware 3.x D7 DC FC |
54 | // avrdude -pm1284p -cavr109 -P/dev/ttyUSB1 -b115200 -V -Uflash:w:Dateiname.hex:a |
54 | // avrdude -pm1284p -cavr109 -P/dev/ttyUSB1 -b115200 -V -Uflash:w:Dateiname.hex:a |
55 | 55 | ||
56 | 56 | ||
57 | // hier die entsprechende Hardwareversion der Leiterplatte einstellen |
57 | // hier die entsprechende Hardwareversion der Leiterplatte einstellen |
58 | 58 | ||
59 | //#define HWVERSION1_2 // Hardware sebseb7 |
59 | //#define HWVERSION1_2 // Hardware sebseb7 |
60 | //#define HWVERSION1_2W // Hardware sebseb7 mit Wi232 Support |
60 | //#define HWVERSION1_2W // Hardware sebseb7 mit Wi232 Support |
61 | //#define HWVERSION1_3 // Hardware sebseb7 |
61 | //#define HWVERSION1_3 // Hardware sebseb7 |
62 | //#define HWVERSION1_3W // Hardware sebseb7 mit Wi232 Support |
62 | //#define HWVERSION1_3W // Hardware sebseb7 mit Wi232 Support |
63 | //#define HWVERSION3_1 // Test Hardware Cebra Juni 2011 |
63 | //#define HWVERSION3_1 // Test Hardware Cebra Juni 2011 |
64 | #define HWVERSION3_9 // Hardware Cebra Oktober 2011 ATmega1284P |
64 | #define HWVERSION3_9 // Hardware Cebra Oktober 2011 ATmega1284P |
65 | 65 | ||
66 | 66 | ||
67 | #if defined HWVERSION1_2W || defined HWVERSION1_2 |
67 | #if defined HWVERSION1_2W || defined HWVERSION1_2 |
68 | #include "HAL_HW1_2.h" |
68 | #include "HAL_HW1_2.h" |
69 | #endif |
69 | #endif |
70 | 70 | ||
71 | #if defined HWVERSION1_3W || defined HWVERSION1_3 |
71 | #if defined HWVERSION1_3W || defined HWVERSION1_3 |
72 | #include "HAL_HW1_3.h" |
72 | #include "HAL_HW1_3.h" |
73 | #endif |
73 | #endif |
74 | 74 | ||
75 | #ifdef HWVERSION3_9 |
75 | #ifdef HWVERSION3_9 |
76 | #include "HAL_HW3_9.h" |
76 | #include "HAL_HW3_9.h" |
77 | #endif |
77 | #endif |
78 | 78 | ||
79 | #define NO 0 |
79 | #define NO 0 |
80 | #define NC 1 |
80 | #define NC 1 |
81 | #define FC 2 |
81 | #define FC 2 |
82 | #define MK3MAG 3 |
82 | #define MK3MAG 3 |
83 | #define MKGPS 4 |
83 | #define MKGPS 4 |
84 | #define Wi232 5 |
84 | #define Wi232 5 |
85 | 85 | ||
86 | #define ENABLE_PWM |
86 | #define ENABLE_PWM |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | // Menueleiste am unteren Rand definieren |
90 | // Menueleiste am unteren Rand definieren |
91 | // |
91 | // |
92 | // 11 <> Change |
92 | // 11 <> Change |
93 | // |
93 | // |
94 | // 12 /\ Up 13 \/ Down 14 < Left 15 > Right |
94 | // 12 /\ Up 13 \/ Down 14 < Left 15 > Right |
95 | // |
95 | // |
96 | // 16 /|\ Arrow up 17 \|/ Arrow down 18 <- Arrow left 19 -> Arrow right |
96 | // 16 /|\ Arrow up 17 \|/ Arrow down 18 <- Arrow left 19 -> Arrow right |
97 | // |
97 | // |
98 | // 1A ^ Triangle up 1B v Triangle down 1C < Triangle left 1D > Triangle right |
98 | // 1A ^ Triangle up 1B v Triangle down 1C < Triangle left 1D > Triangle right |
99 | // |
99 | // |
100 | // "01 234567 8901234567890" |
100 | // "01 234567 8901234567890" |
101 | // "|O |||||O |||||O|||||O|" |
101 | // "|O |||||O |||||O|||||O|" |
102 | // |
102 | // |
103 | //#define KEY_LINE_1 " \x1a \x1b Ende OK" |
103 | //#define KEY_LINE_1 " \x1a \x1b Ende OK" |
104 | //#define KEY_LINE_2 " \x18 \x19 Ende OK" |
104 | //#define KEY_LINE_2 " \x18 \x19 Ende OK" |
105 | //#define KEY_LINE_3 " \x18 \x19 Ende" |
105 | //#define KEY_LINE_3 " \x18 \x19 Ende" |
106 | 106 | ||
107 | 107 | ||
108 | extern volatile uint8_t mode; |
108 | extern volatile uint8_t mode; |
109 | extern uint8_t hardware; |
109 | extern uint8_t hardware; |
110 | extern uint8_t current_hardware; |
110 | extern uint8_t current_hardware; |
111 | 111 | ||
112 | 112 | ||
113 | #endif |
113 | #endif |
114 | 114 |