Subversion Repositories FlightCtrl

Rev

Rev 1021 | Rev 1063 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1021 Rev 1058
Line 13... Line 13...
13
 
13
 
14
// neue Hardware
14
// neue Hardware
15
#define ROT_OFF   {if((PlatinenVersion == 10)||(PlatinenVersion == 20)) PORTB &=~0x01; else  PORTB |= 0x01;}
15
#define ROT_OFF   {if((PlatinenVersion == 10)||(PlatinenVersion == 20)) PORTB &=~0x01; else  PORTB |= 0x01;}
16
#define ROT_ON    {if((PlatinenVersion == 10)||(PlatinenVersion == 20)) PORTB |= 0x01; else  PORTB &=~0x01;}
16
#define ROT_ON    {if((PlatinenVersion == 10)||(PlatinenVersion == 20)) PORTB |= 0x01; else  PORTB &=~0x01;}
17
#define ROT_FLASH PORTB ^= 0x01
17
#define ROT_FLASH PORTB ^= 0x01
18
#define GRN_OFF   {if((PlatinenVersion < 12)) PORTB &=~0x02; else PORTB |= 0x02;} 
18
#define GRN_OFF   {if((PlatinenVersion < 12)) PORTB &=~0x02; else PORTB |= 0x02;}
19
#define GRN_ON    {if((PlatinenVersion < 12)) PORTB |= 0x02; else PORTB &=~0x02;} 
19
#define GRN_ON    {if((PlatinenVersion < 12)) PORTB |= 0x02; else PORTB &=~0x02;}
Line 20... Line 20...
20
#define GRN_FLASH PORTB ^= 0x02
20
#define GRN_FLASH PORTB ^= 0x02
21
 
21
 
22
#define F_CPU SYSCLK
22
#define F_CPU SYSCLK
23
//#ifndef F_CPU
23
//#ifndef F_CPU
24
//#error ################## F_CPU nicht definiert oder ungültig #############
24
//#error ################## F_CPU nicht definiert oder ungültig #############
Line -... Line 25...
-
 
25
//#endif
-
 
26
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25
//#endif
27
 
26
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28
#define EE_DATENREVISION 72 // wird angepasst, wenn sich die EEPROM-Daten geändert haben
27
 
29
 
Line 28... Line 30...
28
#define EEPROM_ADR_VALID            1
30
#define EEPROM_ADR_VALID            1
Line 48... Line 50...
48
#define CFG_LOOP_UNTEN      0x02
50
#define CFG_LOOP_UNTEN      0x02
49
#define CFG_LOOP_LINKS      0x04
51
#define CFG_LOOP_LINKS      0x04
50
#define CFG_LOOP_RECHTS     0x08
52
#define CFG_LOOP_RECHTS     0x08
51
#define CFG_HIGHT_3SWITCH   0x10
53
#define CFG_HIGHT_3SWITCH   0x10
Line 52... Line 54...
52
 
54
 
53
//#define  SYSCLK  
55
//#define  SYSCLK
54
//extern unsigned long SYSCLK;
56
//extern unsigned long SYSCLK;
55
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
57
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
56
extern volatile unsigned char SenderOkay;
58
extern volatile unsigned char SenderOkay;
57
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
59
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
Line 92... Line 94...
92
 
94
 
Line 93... Line 95...
93
#define DEBUG_DISPLAY_INTERVALL  123 // in ms
95
#define DEBUG_DISPLAY_INTERVALL  123 // in ms
94
 
96
 
95
 
97