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