Subversion Repositories FlightCtrl

Rev

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