Rev 685 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 685 | Rev 687 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include <inttypes.h> |
1 | #include <inttypes.h> |
2 | #include <avr/io.h> |
2 | #include <avr/io.h> |
3 | #include <avr/interrupt.h> |
3 | #include <avr/interrupt.h> |
4 | #include "fc.h" |
4 | #include "eeprom.h" |
5 | #include "analog.h" |
5 | #include "analog.h" |
6 | #include "main.h" |
6 | #include "main.h" |
- | 7 | #include "fc.h" |
|
Line 7... | Line 8... | ||
7 | 8 | ||
8 | volatile uint16_t CountMilliseconds = 0; |
9 | volatile uint16_t CountMilliseconds = 0; |
9 | volatile uint8_t UpdateMotor = 0; |
10 | volatile uint8_t UpdateMotor = 0; |
10 | volatile uint16_t cntKompass = 0; |
11 | volatile uint16_t cntKompass = 0; |
Line 108... | Line 109... | ||
108 | if(BoardRelease == 10) PORTD &= ~(1<<2);// Speaker at PD2 |
109 | if(BoardRelease == 10) PORTD &= ~(1<<2);// Speaker at PD2 |
109 | else PORTC &= ~(1<<7);// Speaker at PC7 |
110 | else PORTC &= ~(1<<7);// Speaker at PC7 |
110 | } |
111 | } |
Line 111... | Line 112... | ||
111 | 112 | ||
112 | // update compass value if this option is enabled in the settings |
113 | // update compass value if this option is enabled in the settings |
113 | if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) |
114 | if(ParamSet.GlobalConfig & CFG_KOMPASS_AKTIV) |
114 | { |
115 | { |
115 | if(PINC & 0x10) |
116 | if(PINC & 0x10) |
116 | { |
117 | { |
117 | cntKompass++; |
118 | cntKompass++; |