Subversion Repositories FlightCtrl

Rev

Rev 211 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 211 Rev 212
Line 13... Line 13...
13
 
13
 
14
// neue Hardware
14
// neue Hardware
15
#define ROT_OFF   {if(PlatinenVersion == 10) PORTB &=~0x01; else  PORTB |= 0x01;}
15
#define ROT_OFF   {if(PlatinenVersion == 10) PORTB &=~0x01; else  PORTB |= 0x01;}
16
#define ROT_ON    {if(PlatinenVersion == 10) PORTB |= 0x01; else  PORTB &=~0x01;}
16
#define ROT_ON    {if(PlatinenVersion == 10) PORTB |= 0x01; else  PORTB &=~0x01;}
17
#define ROT_FLASH PORTB ^= 0x01
17
#define ROT_FLASH PORTB ^= 0x01
18
#define GRN_OFF   PORTB &=~0x02 
18
#define GRN_OFF   PORTB &=~0x02
19
#define GRN_ON    PORTB |= 0x02 
19
#define GRN_ON    PORTB |= 0x02
-
 
20
#define GRN_FLASH PORTB ^= 0x02
-
 
21
//-------------H.F.------------
-
 
22
#define LED1_ON   PORTC |= 0x04
-
 
23
#define LED1_OFF  PORTC &=~0x04
-
 
24
#define LED2_ON   PORTC |= 0x08
-
 
25
#define LED2_OFF  PORTC &=~0x08
Line 20... Line 26...
20
#define GRN_FLASH PORTB ^= 0x02
26
//-------------H.F.------------
21
 
27
 
22
//#ifndef F_CPU
28
//#ifndef F_CPU
Line 43... Line 49...
43
#define CFG_LOOP_OBEN       0x01
49
#define CFG_LOOP_OBEN       0x01
44
#define CFG_LOOP_UNTEN      0x02
50
#define CFG_LOOP_UNTEN      0x02
45
#define CFG_LOOP_LINKS      0x04
51
#define CFG_LOOP_LINKS      0x04
46
#define CFG_LOOP_RECHTS     0x08
52
#define CFG_LOOP_RECHTS     0x08
Line 47... Line 53...
47
 
53
 
48
//#define  SYSCLK  
54
//#define  SYSCLK
49
//extern unsigned long SYSCLK;
55
//extern unsigned long SYSCLK;
50
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
56
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
51
extern volatile unsigned char SenderOkay;
57
extern volatile unsigned char SenderOkay;
52
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
58
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
Line 85... Line 91...
85
 
91
 
Line 86... Line 92...
86
#define DEBUG_DISPLAY_INTERVALL  123 // in ms
92
#define DEBUG_DISPLAY_INTERVALL  123 // in ms
87
 
93
 
88
 
94