Subversion Repositories FlightCtrl

Rev

Rev 2000 | Rev 2006 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1995 - 1
#ifndef _MAIN_H
2
#define _MAIN_H
3
 
4
//#define DEBUG                                                 // use to activate debug output to MK-Tool: use Debug(text);
5
//#define ACT_S3D_SUMMENSIGNAL
6
//#define RECEIVER_SPEKTRUM_DX7EXP
7
//#define RECEIVER_SPEKTRUM_DX8EXP
8
 
9
 
10
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))        ///MartinW
11
        #define WITH_MKTOOL_Display
12
        #define WITH_JETI_SIMULATION
13
        #define WITH_ExternControl
14
        #define WITH_FULL_ANALOG_TEXT
2000 - 15
        #define WITHSPECTRUM
16
        #define WITH_REMAINCAPACITY
1995 - 17
#else
18
#endif
19
 
20
//#define WITH_MKTOOL_Display                   /// MartinW;  with MKTool Display 70604-63130
21
//#define WITHSPECTRUM                                  /// MartinW;  memsave
22
//#define WITH_FULL_ANALOG_TEXT                 /// MartinW;  memsave
23
//#define WITH_ExternControl                    /// MartinW;  memsave
24
//#define WITH_ORIGINAL_MOTORSMOOTHING  /// MartinW;  memsave 63312-63164
25
//#define WITH_JETI_SIMULATION                  /// MartinW;  memsave 63312-63016
2002 - 26
#define WITH_JETI_BEEP                                  /// MartinW;  63072-63038; 63216-63050
1995 - 27
//#define WITH_PANOTRIGGER                              /// MartinW;  64336-64112
28
//#define WITH_HOTTMENU                                 /// Metro; 
2000 - 29
//#define WITH_REMAINCAPACITY                   /// Metro;
1995 - 30
 
31
 
32
 
33
 
34
 
35
 
36
 
37
// neue Hardware
38
#define ROT_OFF   {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB &=~0x01; else  PORTB |= 0x01;}
39
#define ROT_ON    {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB |= 0x01; else  PORTB &=~0x01;}
40
#define ROT_FLASH PORTB ^= 0x01
41
#define GRN_OFF   {if((PlatinenVersion < 12)) PORTB &=~0x02; else PORTB |= 0x02;}
42
#define GRN_ON    {if((PlatinenVersion < 12)) PORTB |= 0x02; else PORTB &=~0x02;}
43
#define GRN_FLASH PORTB ^= 0x02
44
 
45
#define SYSCLK F_CPU
46
 
47
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
48
 
49
#define J3High    PORTD |= 0x20
50
#define J3Low     PORTD &= ~0x20
51
#define J4High    PORTD |= 0x10
52
#define J4Low     PORTD &= ~0x10
53
#define J5High    PORTD |= 0x08
54
#define J5Low     PORTD &= ~0x08
55
 
56
extern volatile unsigned char SenderOkay;
57
extern unsigned char BattLowVoltageWarning;
58
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
59
extern unsigned char PlatinenVersion;
60
extern unsigned char SendVersionToNavi;
61
extern unsigned char FoundMotors;
62
extern unsigned char JetiBeep;
63
void LipoDetection(unsigned char print);
64
extern unsigned int FlugMinuten,FlugMinutenGesamt,FlugSekunden;
65
#include <avr/pgmspace.h>
66
 
67
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
68
 
69
#endif
70
 
71
#include <stdlib.h>
72
#include <string.h>
73
#include <avr/io.h>
74
#include <avr/pgmspace.h>
75
#include <avr/interrupt.h>
76
#include <avr/eeprom.h>
77
#include <avr/boot.h>
78
#include <avr/wdt.h>
79
 
80
#include "old_macros.h"
81
 
82
#include "printf_P.h"
83
#include "timer0.h"
84
#include "uart.h"
85
#include "analog.h"
86
#include "twimaster.h"
87
#include "menu.h"
88
#include "rc.h"
89
#include "fc.h"
90
#include "gps.h"
91
#include "spi.h"
92
#include "led.h"
93
#include "spektrum.h"
94
#include "capacity.h"
95
#include "eeprom.h"
96
#include "libfc.h"
97
#include "hottmenu.h"
98
#include "debug.h"
99
 
100
 
101
#endif //_MAIN_H
102
 
103
 
104
 
105
 
106
 
107