Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2751 - 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 UserParameter8_FAILSAFE
7
//#define RECEIVER_SPEKTRUM_DX7EXP
8
//#define RECEIVER_SPEKTRUM_DX8EXP
9
 
10
// neue Hardware
11
#define ROT_OFF   {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB &=~0x01; else  PORTB |= 0x01;}
12
#define ROT_ON    {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB |= 0x01; else  PORTB &=~0x01;}
13
#define ROT_FLASH PORTB ^= 0x01
14
#define GRN_OFF   {if((PlatinenVersion < 12) || PlatinenVersion == 23) PORTB &=~0x02; else PORTB |= 0x02;}
15
#define GRN_ON    {if((PlatinenVersion < 12) || PlatinenVersion == 23) PORTB |= 0x02; else PORTB &=~0x02;}
16
#define GRN_FLASH PORTB ^= 0x02
17
 
18
#define SYSCLK F_CPU
19
 
20
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21
 
22
#define J3High    PORTD |= 0x20
23
#define J3Low     PORTD &= ~0x20
24
#define J4High    PORTD |= 0x10
25
#define J4Low     PORTD &= ~0x10
26
#define J5High    PORTD |= 0x08
27
#define J5Low     PORTD &= ~0x08
28
 
29
extern volatile unsigned char SenderOkay;
30
extern unsigned char BattLowVoltageWarning;
31
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
32
extern unsigned char PlatinenVersion;
33
extern unsigned char FoundMotors,DisableRcOffBeeping;
34
extern unsigned char JetiBeep;
35
void LipoDetection(unsigned char print);
36
extern unsigned int FlugMinuten,FlugMinutenGesamt,FlugSekunden;
37
extern void PrintLine(void);  // "================================="
38
extern unsigned char ActiveParamSet;
39
 
40
#include <avr/pgmspace.h>
41
 
42
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
43
 
44
#endif
45
 
46
#include <stdlib.h>
47
#include <string.h>
48
#include <avr/io.h>
49
#include <avr/pgmspace.h>
50
#include <avr/interrupt.h>
51
#include <avr/eeprom.h>
52
#include <avr/boot.h>
53
#include <avr/wdt.h>
54
 
55
#include "old_macros.h"
56
 
57
#include "printf_P.h"
58
#include "timer0.h"
59
#include "uart.h"
60
#include "analog.h"
61
#include "twimaster.h"
62
#include "menu.h"
63
#include "rc.h"
64
#include "fc.h"
65
#include "gps.h"
66
#include "spi.h"
67
#include "led.h"
68
#include "spektrum.h"
69
#include "capacity.h"
70
#include "eeprom.h"
71
#include "libfc.h"
72
#include "hottmenu.h"
73
#include "debug.h"
74
#include "sbus.h"
75
#include "jeti_ex.h"
76
 
77
#endif //_MAIN_H
78
 
79
 
80
 
81
 
82
 
83