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