Subversion Repositories FlightCtrl

Rev

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

Rev 624 Rev 683
Line 6... Line 6...
6
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
6
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
7
#endif
7
#endif
Line 8... Line 8...
8
 
8
 
9
#if defined (__AVR_ATmega644__)
9
#if defined (__AVR_ATmega644__)
-
 
10
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
-
 
11
#endif
-
 
12
 
10
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
13
#if defined (__AVR_ATmega644P__)
11
//#define SYSCLK        16000000L       //Quarz Frequenz in Hz
14
#define SYSCLK  20000000L       //Quarz Frequenz in Hz
Line 12... Line 15...
12
#endif
15
#endif
13
 
16
 
14
// neue Hardware
17
// neue Hardware
15
#define ROT_OFF   {if(PlatinenVersion == 10) PORTB &=~0x01; else  PORTB |= 0x01;}
18
#define ROT_OFF   {if(PlatinenVersion == 10) PORTB &=~0x01; else  PORTB |= 0x01;}
16
#define ROT_ON    {if(PlatinenVersion == 10) PORTB |= 0x01; else  PORTB &=~0x01;}
19
#define ROT_ON    {if(PlatinenVersion == 10) PORTB |= 0x01; else  PORTB &=~0x01;}
17
#define ROT_FLASH PORTB ^= 0x01
20
#define ROT_FLASH PORTB ^= 0x01
18
#define GRN_OFF   PORTB &=~0x02 
21
#define GRN_OFF   PORTB &=~0x02
Line 19... Line 22...
19
#define GRN_ON    PORTB |= 0x02 
22
#define GRN_ON    PORTB |= 0x02
Line 49... Line 52...
49
#define CFG_LOOP_OBEN       0x01
52
#define CFG_LOOP_OBEN       0x01
50
#define CFG_LOOP_UNTEN      0x02
53
#define CFG_LOOP_UNTEN      0x02
51
#define CFG_LOOP_LINKS      0x04
54
#define CFG_LOOP_LINKS      0x04
52
#define CFG_LOOP_RECHTS     0x08
55
#define CFG_LOOP_RECHTS     0x08
Line 53... Line 56...
53
 
56
 
54
//#define  SYSCLK  
57
//#define  SYSCLK
55
//extern unsigned long SYSCLK;
58
//extern unsigned long SYSCLK;
56
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
59
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll;
57
extern volatile unsigned char SenderOkay;
60
extern volatile unsigned char SenderOkay;
58
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
61
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
Line 75... Line 78...
75
#include "old_macros.h"
78
#include "old_macros.h"
Line 76... Line 79...
76
 
79
 
77
#include "_Settings.h"
80
#include "_Settings.h"
78
#include "printf_P.h"
81
#include "printf_P.h"
-
 
82
#include "timer0.h"
79
#include "timer0.h"
83
#include "timer2.h"
-
 
84
#include "uart.h"
80
#include "uart.h"
85
#include "uart1.h"
81
#include "analog.h"
86
#include "analog.h"
82
#include "twimaster.h"
87
#include "twimaster.h"
83
#include "menu.h"
88
#include "menu.h"
84
#include "rc.h"
89
#include "rc.h"
Line 93... Line 98...
93
 
98
 
Line 94... Line 99...
94
#define DEBUG_DISPLAY_INTERVALL  123 // in ms
99
#define DEBUG_DISPLAY_INTERVALL  123 // in ms
95
 
100
 
96
 
101