Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2183 - 1
/*****************************************************************************
2
 *   Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de                  *
3
 *   Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net                  *
4
 *   Copyright (C) 2012 Christian "Cebra" Brandtner, brandtner@brandtner.net *
5
 *   Copyright (C) 2012 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
 * @Author Cebra
35
 *
36
 * ${tags}
37
 */
38
//**
39
// *
40
// *
41
// *
42
//
43
/*
44
* File name: $HeadURL: http://mikrokopter.de/mikrosvn/Projects/Transportables_Koptertool/branch/GPL_PKT_V3_5_8a_FC086/main.h $
45
* Revision: $Revision: 1496 $
46
* Last modified: $Date: 2012-01-15 21:31:25 +0100 (So, 15 Jan 2012) $
47
* Last modified by: $Author: $
48
* $Id: main.h 1496 2012-01-15 20:31:25Z  $
49
*/
50
#ifndef _MAIN_H
51
#define _MAIN_H
52
 
53
#define MKVERSION088n
54
//#define MKVERSION089c
55
 
56
// Version der Software
57
#define PKTSWVersion "3.6.6b" // PKT Version
58
 
59
//#define IgnoreFCVersion
60
//#define DEBUG
61
//#define analognames             // Anzeige Analognames
62
 
63
 
64
// Fusebits für Hardware 1.2 D7 DC FC
65
// Fusebits für Hardware 1.3 D7 DC FC
66
// Fusebits für Hardware 3.x D7 DC FC
67
// avrdude -pm1284p -cavr109 -P/dev/ttyUSB1 -b115200 -V -Uflash:w:Dateiname.hex:a
68
 
69
 
70
// hier die entsprechende Hardwareversion der Leiterplatte einstellen
71
 
72
//#define HWVERSION1_2   // Hardware sebseb7
73
//#define HWVERSION1_2W  // Hardware sebseb7 mit Wi232 Support
74
//#define HWVERSION1_3   // Hardware sebseb7
75
//#define HWVERSION1_3W  // Hardware sebseb7 mit Wi232 Support
76
 
77
#define HWVERSION3_9   // Hardware Cebra Oktober 2011 ATmega1284P
78
 
79
 
80
#if defined HWVERSION1_2W || defined HWVERSION1_2
81
#include "HAL_HW1_2.h"
82
#endif
83
 
84
#if defined HWVERSION1_3W || defined HWVERSION1_3
85
#include "HAL_HW1_3.h"
86
#endif
87
 
88
#ifdef HWVERSION3_9
89
#include "HAL_HW3_9.h"
90
#endif
91
 
92
#define NO     0
93
#define NC     1
94
#define FC     2
95
#define MK3MAG 3
96
#define MKGPS  4
97
#define Wi232  5
98
 
99
#define ENABLE_PWM
100
 
101
 
102
//                      Baud Rate
103
#define Baud_2400       0
104
#define Baud_9600       1
105
#define Baud_19200      2
106
#define Baud_38400      3
107
#define Baud_57600      4
108
#define Baud_115200     5
109
#define Baud_4800       6
110
 
111
 
112
 
113
extern volatile uint8_t mode;
114
extern uint8_t hardware;
115
extern uint8_t current_hardware;
116
extern uint8_t searchMK(void);
117
 
118
 
119
#endif