Rev 1880 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1880 | Rev 1897 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | //#define DEBUG // use to activate debug output to MK-Tool: use Debug(text); |
4 | //#define DEBUG // use to activate debug output to MK-Tool: use Debug(text); |
5 | //#define ACT_S3D_SUMMENSIGNAL |
5 | //#define ACT_S3D_SUMMENSIGNAL |
6 | //#define SWITCH_LEARNS_CAREFREE |
6 | //#define SWITCH_LEARNS_CAREFREE |
7 | //#define RECEIVER_SPEKTRUM_EXP |
7 | //#define RECEIVER_SPEKTRUM_EXP |
Line -... | Line 8... | ||
- | 8 | ||
- | 9 | ||
- | 10 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) ///MartinW |
|
- | 11 | #define WITH_MKTOOL_Display |
|
- | 12 | #define WITH_JETI_SIMULATION |
|
- | 13 | #define WITH_ExternControl |
|
- | 14 | #define WITH_FULL_ANALOG_TEXT |
|
- | 15 | #define WITHSPECTRUM |
|
- | 16 | #else |
|
- | 17 | #endif |
|
- | 18 | ||
- | 19 | //#define WITH_MKTOOL_Display /// MartinW; with MKTool Display 70604-63130 |
|
- | 20 | //#define WITHSPECTRUM /// MartinW; memsave |
|
- | 21 | //#define WITH_FULL_ANALOG_TEXT /// MartinW; memsave |
|
- | 22 | //#define WITH_ExternControl /// MartinW; memsave |
|
- | 23 | //#define WITH_ORIGINAL_MOTORSMOOTHING /// MartinW; memsave 63312-63164 |
|
- | 24 | //#define WITH_JETI_SIMULATION /// MartinW; memsave 63312-63016 |
|
- | 25 | #define WITH_JETI_BEEP /// MartinW; 63072-63038; 63216-63050 |
|
- | 26 | #define WITH_PANOTRIGGER /// MartinW; 63328-63118 |
|
- | 27 | ||
- | 28 | ||
- | 29 | ||
- | 30 | ||
- | 31 | ||
- | 32 | ||
8 | 33 | ||
9 | // neue Hardware |
34 | // neue Hardware |
10 | #define ROT_OFF {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB &=~0x01; else PORTB |= 0x01;} |
35 | #define ROT_OFF {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB &=~0x01; else PORTB |= 0x01;} |
11 | #define ROT_ON {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB |= 0x01; else PORTB &=~0x01;} |
36 | #define ROT_ON {if((PlatinenVersion == 10)||(PlatinenVersion >= 20)) PORTB |= 0x01; else PORTB &=~0x01;} |
12 | #define ROT_FLASH PORTB ^= 0x01 |
37 | #define ROT_FLASH PORTB ^= 0x01 |
Line 32... | Line 57... | ||
32 | extern unsigned char SendVersionToNavi; |
57 | extern unsigned char SendVersionToNavi; |
33 | extern unsigned char FoundMotors; |
58 | extern unsigned char FoundMotors; |
34 | extern unsigned char JetiBeep; |
59 | extern unsigned char JetiBeep; |
35 | void LipoDetection(unsigned char print); |
60 | void LipoDetection(unsigned char print); |
36 | extern unsigned int FlugMinuten,FlugMinutenGesamt,FlugSekunden; |
61 | extern unsigned int FlugMinuten,FlugMinutenGesamt,FlugSekunden; |
- | 62 | extern unsigned char delayjetibeepset;/// |
|
Line 37... | Line 63... | ||
37 | 63 | ||
38 | #include <stdlib.h> |
64 | #include <stdlib.h> |
39 | #include <string.h> |
65 | #include <string.h> |
40 | #include <avr/io.h> |
66 | #include <avr/io.h> |