Rev 2002 | 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 |
||
26 | //#define WITH_PANOTRIGGER /// MartinW; 64336-64112 |
||
27 | //#define WITH_HOTTMENU /// Metro; |
||
2000 | - | 28 | //#define WITH_REMAINCAPACITY /// Metro; |
1995 | - | 29 | |
30 | |||
31 | |||
32 | |||
33 | |||
34 | |||
35 | |||
36 | // neue Hardware |
||
37 | #define ROT_OFF {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB &=~0x01; else PORTB |= 0x01;} |
||
38 | #define ROT_ON {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB |= 0x01; else PORTB &=~0x01;} |
||
39 | #define ROT_FLASH PORTB ^= 0x01 |
||
40 | #define GRN_OFF {if((PlatinenVersion < 12)) PORTB &=~0x02; else PORTB |= 0x02;} |
||
41 | #define GRN_ON {if((PlatinenVersion < 12)) PORTB |= 0x02; else PORTB &=~0x02;} |
||
42 | #define GRN_FLASH PORTB ^= 0x02 |
||
43 | |||
44 | #define SYSCLK F_CPU |
||
45 | |||
46 | //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
47 | |||
48 | #define J3High PORTD |= 0x20 |
||
49 | #define J3Low PORTD &= ~0x20 |
||
50 | #define J4High PORTD |= 0x10 |
||
51 | #define J4Low PORTD &= ~0x10 |
||
52 | #define J5High PORTD |= 0x08 |
||
53 | #define J5Low PORTD &= ~0x08 |
||
54 | |||
55 | extern volatile unsigned char SenderOkay; |
||
56 | extern unsigned char BattLowVoltageWarning; |
||
57 | extern unsigned char CosinusNickWinkel, CosinusRollWinkel; |
||
58 | extern unsigned char PlatinenVersion; |
||
59 | extern unsigned char SendVersionToNavi; |
||
60 | extern unsigned char FoundMotors; |
||
61 | extern unsigned char JetiBeep; |
||
62 | void LipoDetection(unsigned char print); |
||
63 | extern unsigned int FlugMinuten,FlugMinutenGesamt,FlugSekunden; |
||
64 | #include <avr/pgmspace.h> |
||
65 | |||
66 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
||
67 | |||
68 | #endif |
||
69 | |||
70 | #include <stdlib.h> |
||
71 | #include <string.h> |
||
72 | #include <avr/io.h> |
||
73 | #include <avr/pgmspace.h> |
||
74 | #include <avr/interrupt.h> |
||
75 | #include <avr/eeprom.h> |
||
76 | #include <avr/boot.h> |
||
77 | #include <avr/wdt.h> |
||
78 | |||
79 | #include "old_macros.h" |
||
80 | |||
81 | #include "printf_P.h" |
||
82 | #include "timer0.h" |
||
83 | #include "uart.h" |
||
84 | #include "analog.h" |
||
85 | #include "twimaster.h" |
||
86 | #include "menu.h" |
||
87 | #include "rc.h" |
||
88 | #include "fc.h" |
||
89 | #include "gps.h" |
||
90 | #include "spi.h" |
||
91 | #include "led.h" |
||
92 | #include "spektrum.h" |
||
93 | #include "capacity.h" |
||
94 | #include "eeprom.h" |
||
95 | #include "libfc.h" |
||
96 | #include "hottmenu.h" |
||
97 | #include "debug.h" |
||
98 | |||
99 | |||
100 | #endif //_MAIN_H |
||
101 | |||
102 | |||
103 | |||
104 | |||
105 | |||
106 |