Rev 787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 787 | Rev 857 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #if defined (__AVR_ATmega644__) |
9 | #if defined (__AVR_ATmega644__) |
10 | #define SYSCLK 20000000L //Quarz Frequenz in Hz |
10 | #define SYSCLK 20000000L //Quarz Frequenz in Hz |
11 | //#define SYSCLK 16000000L //Quarz Frequenz in Hz |
11 | //#define SYSCLK 16000000L //Quarz Frequenz in Hz |
12 | #endif |
12 | #endif |
Line -... | Line 13... | ||
- | 13 | ||
- | 14 | #define PlatinenVersion 10 |
|
13 | 15 | ||
14 | // neue Hardware |
16 | // neue Hardware |
15 | #define ROT_OFF {if(PlatinenVersion == 10) PORTB &=~0x01; else PORTB |= 0x01;} |
17 | #define ROT_OFF {if(PlatinenVersion == 10) PORTB &=~0x01; else PORTB |= 0x01;} |
16 | #define ROT_ON {if(PlatinenVersion == 10) PORTB |= 0x01; else PORTB &=~0x01;} |
18 | #define ROT_ON {if(PlatinenVersion == 10) PORTB |= 0x01; else PORTB &=~0x01;} |
17 | #define ROT_FLASH PORTB ^= 0x01 |
19 | #define ROT_FLASH PORTB ^= 0x01 |
18 | #define GRN_OFF PORTB &=~0x02 |
20 | #define GRN_OFF PORTB &=~0x02 |
19 | #define GRN_ON PORTB |= 0x02 |
21 | #define GRN_ON PORTB |= 0x02 |
Line 43... | Line 45... | ||
43 | #define CFG_LOOP_OBEN 0x01 |
45 | #define CFG_LOOP_OBEN 0x01 |
44 | #define CFG_LOOP_UNTEN 0x02 |
46 | #define CFG_LOOP_UNTEN 0x02 |
45 | #define CFG_LOOP_LINKS 0x04 |
47 | #define CFG_LOOP_LINKS 0x04 |
46 | #define CFG_LOOP_RECHTS 0x08 |
48 | #define CFG_LOOP_RECHTS 0x08 |
Line 47... | Line -... | ||
47 | - | ||
48 | extern unsigned char PlatinenVersion; |
- | |
49 | 49 | ||
50 | void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
50 | void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
51 | void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
51 | void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
52 | extern unsigned char GetActiveParamSetNumber(void); |
52 | extern unsigned char GetActiveParamSetNumber(void); |
Line 69... | Line 69... | ||
69 | #include "uart.h" |
69 | #include "uart.h" |
70 | #include "analog.h" |
70 | #include "analog.h" |
71 | #include "twimaster.h" |
71 | #include "twimaster.h" |
72 | #include "menu.h" |
72 | #include "menu.h" |
73 | #include "rc.h" |
73 | #include "rc.h" |
74 | #include "fc.h" |
74 | #include "fc.h" |
75 | #include "gps.h" |
- | |
76 | #include "compass.h" |
75 | #include "compass.h" |
77 | #include "mymath.h" |
76 | #include "mymath.h" |
Line 78... | Line 77... | ||
78 | 77 |