Rev 1491 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1491 | Rev 1492 | ||
---|---|---|---|
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 | * @author Cebra |
34 | * @author Cebra |
35 | * |
35 | * |
36 | * ${tags} |
36 | * ${tags} |
37 | */ |
37 | */ |
38 | //** |
38 | //** |
39 | // * |
39 | // * |
40 | // * |
40 | // * |
41 | // * |
41 | // * |
42 | // */ |
42 | // */ |
43 | // File name: $HeadURL: file:///var/www/vhosts/mikrokopter.de/svn/mikrosvn/Projects/Transportables_Koptertool/branch/GPL_PKT_V3_5_8a_FC086/main.h $ |
43 | // File name: $HeadURL: http://mikrokopter.de/mikrosvn/Projects/Transportables_Koptertool/branch/GPL_PKT_V3_5_8a_FC086/main.h $ |
44 | // Revision: $Revision: 1491 $ |
44 | // Revision: $Revision: 1491 $ |
45 | // Last modified: $Date: 2012-01-15 21:14:40 +0100 (Sun, 15 Jan 2012) $ |
45 | // Last modified: $Date: 2012-01-15 21:14:40 +0100 (So, 15 Jan 2012) $ |
46 | // Last modified by: $Author: $ |
46 | // Last modified by: $Author: $ |
47 | // $Id: main.h 1491 2012-01-15 20:14:40Z $ |
47 | // $Id: main.h 1491 2012-01-15 20:14:40Z $ |
48 | 48 | ||
49 | #ifndef _MAIN_H |
49 | #ifndef _MAIN_H |
50 | #define _MAIN_H |
50 | #define _MAIN_H |
51 | 51 | ||
52 | // Version der Software |
52 | // Version der Software |
53 | #define PKTSWVersion "3.5.8a" // 1. SVN Version |
53 | #define PKTSWVersion "3.5.8a" // 1. SVN Version test |
54 | 54 | ||
55 | //#define DEBUG |
55 | //#define DEBUG |
56 | 56 | ||
57 | 57 | ||
58 | // Fusebits für Hardware 1.2 D7 DC FC |
58 | // Fusebits für Hardware 1.2 D7 DC FC |
59 | // Fusebits für Hardware 1.3 |
59 | // Fusebits für Hardware 1.3 |
60 | // Fusebits für Hardware 3.x D7 DC FC |
60 | // Fusebits für Hardware 3.x D7 DC FC |
61 | // avrdude -pm1284p -cavr109 -P/dev/ttyUSB1 -b115200 -V -Uflash:w:Dateiname.hex:a |
61 | // avrdude -pm1284p -cavr109 -P/dev/ttyUSB1 -b115200 -V -Uflash:w:Dateiname.hex:a |
62 | 62 | ||
63 | 63 | ||
64 | // hier die entsprechende Hardwareversion der Leiterplatte einstellen |
64 | // hier die entsprechende Hardwareversion der Leiterplatte einstellen |
65 | 65 | ||
66 | //#define HWVERSION1_2 // Hardware sebseb7 |
66 | //#define HWVERSION1_2 // Hardware sebseb7 |
67 | //#define HWVERSION1_2W // Hardware sebseb7 mit Wi232 Support |
67 | //#define HWVERSION1_2W // Hardware sebseb7 mit Wi232 Support |
68 | //#define HWVERSION1_3 // Hardware sebseb7 |
68 | //#define HWVERSION1_3 // Hardware sebseb7 |
69 | //#define HWVERSION1_3W // Hardware sebseb7 mit Wi232 Support |
69 | //#define HWVERSION1_3W // Hardware sebseb7 mit Wi232 Support |
70 | //#define HWVERSION3_1 // Test Hardware Cebra Juni 2011 |
70 | //#define HWVERSION3_1 // Test Hardware Cebra Juni 2011 |
71 | #define HWVERSION3_9 // Hardware Cebra Oktober 2011 ATmega1284P |
71 | #define HWVERSION3_9 // Hardware Cebra Oktober 2011 ATmega1284P |
72 | 72 | ||
73 | 73 | ||
74 | #if defined HWVERSION1_2W || defined HWVERSION1_2 |
74 | #if defined HWVERSION1_2W || defined HWVERSION1_2 |
75 | #include "HAL_HW1_2.h" |
75 | #include "HAL_HW1_2.h" |
76 | #endif |
76 | #endif |
77 | 77 | ||
78 | #if defined HWVERSION1_3W || defined HWVERSION1_3 |
78 | #if defined HWVERSION1_3W || defined HWVERSION1_3 |
79 | #include "HAL_HW1_3.h" |
79 | #include "HAL_HW1_3.h" |
80 | #endif |
80 | #endif |
81 | 81 | ||
82 | #ifdef HWVERSION3_9 |
82 | #ifdef HWVERSION3_9 |
83 | #include "HAL_HW3_9.h" |
83 | #include "HAL_HW3_9.h" |
84 | #endif |
84 | #endif |
85 | 85 | ||
86 | #define NO 0 |
86 | #define NO 0 |
87 | #define NC 1 |
87 | #define NC 1 |
88 | #define FC 2 |
88 | #define FC 2 |
89 | #define MK3MAG 3 |
89 | #define MK3MAG 3 |
90 | #define MKGPS 4 |
90 | #define MKGPS 4 |
91 | #define Wi232 5 |
91 | #define Wi232 5 |
92 | 92 | ||
93 | #define ENABLE_PWM |
93 | #define ENABLE_PWM |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | // Menueleiste am unteren Rand definieren |
97 | // Menueleiste am unteren Rand definieren |
98 | // |
98 | // |
99 | // 11 <> Change |
99 | // 11 <> Change |
100 | // |
100 | // |
101 | // 12 /\ Up 13 \/ Down 14 < Left 15 > Right |
101 | // 12 /\ Up 13 \/ Down 14 < Left 15 > Right |
102 | // |
102 | // |
103 | // 16 /|\ Arrow up 17 \|/ Arrow down 18 <- Arrow left 19 -> Arrow right |
103 | // 16 /|\ Arrow up 17 \|/ Arrow down 18 <- Arrow left 19 -> Arrow right |
104 | // |
104 | // |
105 | // 1A ^ Triangle up 1B v Triangle down 1C < Triangle left 1D > Triangle right |
105 | // 1A ^ Triangle up 1B v Triangle down 1C < Triangle left 1D > Triangle right |
106 | // |
106 | // |
107 | // "01 234567 8901234567890" |
107 | // "01 234567 8901234567890" |
108 | // "|O |||||O |||||O|||||O|" |
108 | // "|O |||||O |||||O|||||O|" |
109 | // |
109 | // |
110 | //#define KEY_LINE_1 " \x1a \x1b Ende OK" |
110 | //#define KEY_LINE_1 " \x1a \x1b Ende OK" |
111 | //#define KEY_LINE_2 " \x18 \x19 Ende OK" |
111 | //#define KEY_LINE_2 " \x18 \x19 Ende OK" |
112 | //#define KEY_LINE_3 " \x18 \x19 Ende" |
112 | //#define KEY_LINE_3 " \x18 \x19 Ende" |
113 | 113 | ||
114 | 114 | ||
115 | extern volatile uint8_t mode; |
115 | extern volatile uint8_t mode; |
116 | extern uint8_t hardware; |
116 | extern uint8_t hardware; |
117 | extern uint8_t current_hardware; |
117 | extern uint8_t current_hardware; |
118 | 118 | ||
119 | 119 | ||
120 | #endif |
120 | #endif |
121 | 121 |