Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | #ifndef _MAIN_H |
1622 | killagreg | 2 | #define _MAIN_H |
1 | ingob | 3 | |
1636 | ingob | 4 | //#define DEBUG // use to activate debug output to MK-Tool: use Debug(text); |
5 | |||
1438 | ingob | 6 | //#define ACT_S3D_SUMMENSIGNAL |
7 | |||
1 | ingob | 8 | // neue Hardware |
1662 | killagreg | 9 | #define ROT_OFF {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB &=~0x01; else PORTB |= 0x01;} |
10 | #define ROT_ON {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB |= 0x01; else PORTB &=~0x01;} |
||
1 | ingob | 11 | #define ROT_FLASH PORTB ^= 0x01 |
1058 | killagreg | 12 | #define GRN_OFF {if((PlatinenVersion < 12)) PORTB &=~0x02; else PORTB |= 0x02;} |
13 | #define GRN_ON {if((PlatinenVersion < 12)) PORTB |= 0x02; else PORTB &=~0x02;} |
||
173 | holgerb | 14 | #define GRN_FLASH PORTB ^= 0x02 |
1 | ingob | 15 | |
1435 | killagreg | 16 | #define SYSCLK F_CPU |
17 | |||
1 | ingob | 18 | //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
19 | |||
1155 | hbuss | 20 | #define J3High PORTD |= 0x20 |
21 | #define J3Low PORTD &= ~0x20 |
||
22 | #define J4High PORTD |= 0x10 |
||
23 | #define J4Low PORTD &= ~0x10 |
||
24 | #define J5High PORTD |= 0x08 |
||
25 | #define J5Low PORTD &= ~0x08 |
||
26 | |||
1 | ingob | 27 | extern volatile unsigned char SenderOkay; |
1236 | killagreg | 28 | extern unsigned char BattLowVoltageWarning; |
1 | ingob | 29 | extern unsigned char CosinusNickWinkel, CosinusRollWinkel; |
173 | holgerb | 30 | extern unsigned char PlatinenVersion; |
723 | hbuss | 31 | extern unsigned char SendVersionToNavi; |
1622 | killagreg | 32 | |
33 | |||
1268 | hbuss | 34 | void LipoDetection(unsigned char print); |
1512 | holgerb | 35 | extern unsigned int FlugMinuten,FlugMinutenGesamt,FlugSekunden; |
1 | ingob | 36 | |
37 | #include <stdlib.h> |
||
38 | #include <string.h> |
||
39 | #include <avr/io.h> |
||
40 | #include <avr/pgmspace.h> |
||
41 | #include <avr/interrupt.h> |
||
42 | #include <avr/eeprom.h> |
||
43 | #include <avr/boot.h> |
||
44 | #include <avr/wdt.h> |
||
45 | |||
1438 | ingob | 46 | |
1 | ingob | 47 | #include "old_macros.h" |
48 | |||
395 | hbuss | 49 | #include "_Settings.h" |
1 | ingob | 50 | #include "printf_P.h" |
51 | #include "timer0.h" |
||
52 | #include "uart.h" |
||
53 | #include "analog.h" |
||
54 | #include "twimaster.h" |
||
55 | #include "menu.h" |
||
56 | #include "rc.h" |
||
57 | #include "fc.h" |
||
58 | #include "gps.h" |
||
304 | ingob | 59 | #include "spi.h" |
921 | hbuss | 60 | #include "led.h" |
1424 | ingob | 61 | #include "spektrum.h" |
1486 | killagreg | 62 | #include "capacity.h" |
1622 | killagreg | 63 | #include "eeprom.h" |
1435 | killagreg | 64 | #include "libfc.h" |
1636 | ingob | 65 | #include "debug.h" |
1 | ingob | 66 | |
1419 | ingob | 67 | |
1438 | ingob | 68 | |
1 | ingob | 69 | #endif //_MAIN_H |
70 | |||
71 | |||
72 | |||
73 | |||
74 | |||
75 |