Rev 2183 | Rev 2334 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2183 | Rev 2320 | ||
---|---|---|---|
Line 85... | Line 85... | ||
85 | //############################################################################ |
85 | //############################################################################ |
86 | // Interrupt function for the PPM-Input |
86 | // Interrupt function for the PPM-Input |
87 | ISR(TIMER1_CAPT_vect) |
87 | ISR(TIMER1_CAPT_vect) |
88 | //############################################################################ |
88 | //############################################################################ |
89 | { |
89 | { |
- | 90 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
90 | if(!(EE_Parameter.ExtraConfig & CFG_SENSITIVE_RC)) |
91 | if(!(EE_Parameter.ExtraConfig & CFG_SENSITIVE_RC)) |
- | 92 | #endif |
|
91 | { |
93 | { |
92 | static unsigned int AltICR=0; |
94 | static unsigned int AltICR=0; |
93 | signed int signal = 0,tmp; |
95 | signed int signal = 0,tmp; |
94 | static int index; |
96 | static int index; |
Line 129... | Line 131... | ||
129 | if(index == 7) J5High; else J5Low; // Servosignal an J5 anlegen |
131 | if(index == 7) J5High; else J5Low; // Servosignal an J5 anlegen |
130 | } |
132 | } |
131 | } |
133 | } |
132 | } |
134 | } |
133 | } |
135 | } |
- | 136 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
134 | else |
137 | else |
135 | { |
138 | { |
136 | static unsigned int AltICR=0; |
139 | static unsigned int AltICR=0; |
137 | static int ppm_in[13]; |
140 | static int ppm_in[13]; |
138 | static int ppm_diff[13]; |
141 | static int ppm_diff[13]; |
Line 219... | Line 222... | ||
219 | // okay_cnt /= 2; |
222 | // okay_cnt /= 2; |
220 | } |
223 | } |
221 | } |
224 | } |
222 | } |
225 | } |
223 | } |
226 | } |
- | 227 | #endif |
|
- | 228 | ||
224 | } |
229 | } |
Line 225... | Line 230... | ||
225 | 230 | ||
226 | #else |
231 | #else |
227 | //############################################################################ |
232 | //############################################################################ |