Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2307 | - | 1 | 1 .file "main.c" |
2 | 2 .arch atmega1284p |
||
3 | 3 __SREG__ = 0x3f |
||
4 | 4 __SP_H__ = 0x3e |
||
5 | 5 __SP_L__ = 0x3d |
||
6 | 6 __tmp_reg__ = 0 |
||
7 | 7 __zero_reg__ = 1 |
||
8 | 8 .global __do_copy_data |
||
9 | 9 .global __do_clear_bss |
||
10 | 10 .global JetiBeep |
||
11 | 11 .global JetiBeep |
||
12 | 12 .section .bss |
||
13 | 15 JetiBeep: |
||
14 | 16 0000 00 .skip 1,0 |
||
15 | 17 .global FoundMotors |
||
16 | 18 .global FoundMotors |
||
17 | 21 FoundMotors: |
||
18 | 22 0001 00 .skip 1,0 |
||
19 | 23 .global FlugSekunden |
||
20 | 24 .global FlugSekunden |
||
21 | 27 FlugSekunden: |
||
22 | 28 0002 0000 .skip 2,0 |
||
23 | 29 .global FlugMinutenGesamt |
||
24 | 30 .global FlugMinutenGesamt |
||
25 | 33 FlugMinutenGesamt: |
||
26 | 34 0004 0000 .skip 2,0 |
||
27 | 35 .global FlugMinuten |
||
28 | 36 .global FlugMinuten |
||
29 | 39 FlugMinuten: |
||
30 | 40 0006 0000 .skip 2,0 |
||
31 | 41 .global BattLowVoltageWarning |
||
32 | 42 .data |
||
33 | 45 BattLowVoltageWarning: |
||
34 | 46 0000 5E .byte 94 |
||
35 | 47 .global PlatinenVersion |
||
36 | 50 PlatinenVersion: |
||
37 | 51 0001 0A .byte 10 |
||
38 | 52 .global DisableRcOffBeeping |
||
39 | 53 .global DisableRcOffBeeping |
||
40 | 54 .section .bss |
||
41 | 57 DisableRcOffBeeping: |
||
42 | 58 0008 00 .skip 1,0 |
||
43 | 59 .section .progmem.data,"a",@progbits |
||
44 | 62 __c.11: |
||
45 | 63 0000 0A0D 3D3D .string "\n\r===================================" |
||
46 | 63 3D3D 3D3D |
||
47 | 63 3D3D 3D3D |
||
48 | 63 3D3D 3D3D |
||
49 | 63 3D3D 3D3D |
||
50 | 64 .text |
||
51 | 65 .global PrintLine |
||
52 | 67 PrintLine: |
||
53 | 68 /* prologue: frame size=0 */ |
||
54 | 69 /* prologue end (size=0) */ |
||
55 | 70 0000 80E0 ldi r24,lo8(__c.11) |
||
56 | 71 0002 90E0 ldi r25,hi8(__c.11) |
||
57 | 72 0004 9F93 push r25 |
||
58 | 73 0006 8F93 push r24 |
||
59 | 74 0008 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
60 | 75 000a 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
61 | 76 000c 9F93 push r25 |
||
62 | 77 000e 8F93 push r24 |
||
63 | 78 0010 E091 0000 lds r30,_printf_P |
||
64 | 79 0014 F091 0000 lds r31,(_printf_P)+1 |
||
65 | 80 0018 0995 icall |
||
66 | 81 001a 0F90 pop __tmp_reg__ |
||
67 | 82 001c 0F90 pop __tmp_reg__ |
||
68 | 83 001e 0F90 pop __tmp_reg__ |
||
69 | 84 0020 0F90 pop __tmp_reg__ |
||
70 | 85 /* epilogue: frame size=0 */ |
||
71 | 86 0022 0895 ret |
||
72 | 87 /* epilogue end (size=1) */ |
||
73 | 88 /* function PrintLine size 18 (17) */ |
||
74 | 90 .data |
||
75 | 93 stick.10: |
||
76 | 94 0002 01 .byte 1 |
||
77 | 95 .text |
||
78 | 96 .global CalMk3Mag |
||
79 | 98 CalMk3Mag: |
||
80 | 99 /* prologue: frame size=0 */ |
||
81 | 100 /* prologue end (size=0) */ |
||
82 | 101 0024 8091 0000 lds r24,EE_Parameter+1 |
||
83 | 102 0028 E82F mov r30,r24 |
||
84 | 103 002a FF27 clr r31 |
||
85 | 104 002c EE0F add r30,r30 |
||
86 | 105 002e FF1F adc r31,r31 |
||
87 | 106 0030 E050 subi r30,lo8(-(PPM_in)) |
||
88 | 107 0032 F040 sbci r31,hi8(-(PPM_in)) |
||
89 | 108 0034 8081 ld r24,Z |
||
90 | 109 0036 9181 ldd r25,Z+1 |
||
91 | 110 0038 8D5E subi r24,lo8(-19) |
||
92 | 111 003a 9F4F sbci r25,hi8(-19) |
||
93 | 112 003c 04F0 brlt .L3 |
||
94 | 113 003e 1092 0000 sts stick.10,__zero_reg__ |
||
95 | 114 .L3: |
||
96 | 115 0042 8081 ld r24,Z |
||
97 | 116 0044 9181 ldd r25,Z+1 |
||
98 | 117 0046 8A5B subi r24,lo8(-70) |
||
99 | 118 0048 9F4F sbci r25,hi8(-70) |
||
100 | 119 004a 04F4 brge .L4 |
||
101 | 120 004c 8091 0000 lds r24,stick.10 |
||
102 | 121 0050 8823 tst r24 |
||
103 | 122 0052 01F4 brne .L4 |
||
104 | 123 0054 81E0 ldi r24,lo8(1) |
||
105 | 124 0056 8093 0000 sts stick.10,r24 |
||
106 | 125 005a 8091 0000 lds r24,WinkelOut+6 |
||
107 | 126 005e 8F5F subi r24,lo8(-(1)) |
||
108 | 127 0060 8093 0000 sts WinkelOut+6,r24 |
||
109 | 128 0064 8530 cpi r24,lo8(5) |
||
110 | 129 0066 00F0 brlo .L5 |
||
111 | 130 0068 88EE ldi r24,lo8(1000) |
||
112 | 131 006a 93E0 ldi r25,hi8(1000) |
||
113 | 132 006c 9093 0000 sts (beeptime)+1,r25 |
||
114 | 133 0070 8093 0000 sts beeptime,r24 |
||
115 | 134 0074 00C0 rjmp .L4 |
||
116 | 135 .L5: |
||
117 | 136 0076 66E9 ldi r22,lo8(150) |
||
118 | 137 0078 70E0 ldi r23,hi8(150) |
||
119 | 138 007a 0E94 0000 call Piep |
||
120 | 139 .L4: |
||
121 | 140 007e 8091 0000 lds r24,WinkelOut+6 |
||
122 | 141 0082 9927 clr r25 |
||
123 | 142 0084 9093 0000 sts (DebugOut+40)+1,r25 |
||
124 | 143 0088 8093 0000 sts DebugOut+40,r24 |
||
125 | 144 /* epilogue: frame size=0 */ |
||
126 | 145 008c 0895 ret |
||
127 | 146 /* epilogue end (size=1) */ |
||
128 | 147 /* function CalMk3Mag size 55 (54) */ |
||
129 | 149 .section .progmem.data |
||
130 | 152 __c.7: |
||
131 | 153 0026 0A0D 4261 .string "\n\rBatt:" |
||
132 | 153 7474 3A00 |
||
133 | 156 __c.8: |
||
134 | 157 002e 2025 6420 .string " %d Cells " |
||
135 | 157 4365 6C6C |
||
136 | 157 7320 00 |
||
137 | 160 __c.9: |
||
138 | 161 0039 204C 6F77 .string " Low warning: %d.%d" |
||
139 | 161 2077 6172 |
||
140 | 161 6E69 6E67 |
||
141 | 161 3A20 2564 |
||
142 | 161 2E25 6400 |
||
143 | 162 .text |
||
144 | 163 .global LipoDetection |
||
145 | 165 LipoDetection: |
||
146 | 166 /* prologue: frame size=0 */ |
||
147 | 167 008e 1F93 push r17 |
||
148 | 168 0090 CF93 push r28 |
||
149 | 169 0092 DF93 push r29 |
||
150 | 170 /* prologue end (size=3) */ |
||
151 | 171 0094 182F mov r17,r24 |
||
152 | 172 0096 8823 tst r24 |
||
153 | 173 0098 01F0 breq .L8 |
||
154 | 174 009a 80E0 ldi r24,lo8(__c.7) |
||
155 | 175 009c 90E0 ldi r25,hi8(__c.7) |
||
156 | 176 009e 9F93 push r25 |
||
157 | 177 00a0 8F93 push r24 |
||
158 | 178 00a2 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
159 | 179 00a4 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
160 | 180 00a6 9F93 push r25 |
||
161 | 181 00a8 8F93 push r24 |
||
162 | 182 00aa E091 0000 lds r30,_printf_P |
||
163 | 183 00ae F091 0000 lds r31,(_printf_P)+1 |
||
164 | 184 00b2 0995 icall |
||
165 | 185 00b4 0F90 pop __tmp_reg__ |
||
166 | 186 00b6 0F90 pop __tmp_reg__ |
||
167 | 187 00b8 0F90 pop __tmp_reg__ |
||
168 | 188 00ba 0F90 pop __tmp_reg__ |
||
169 | 189 .L8: |
||
170 | 190 00bc 8091 0000 lds r24,EE_Parameter+36 |
||
171 | 191 00c0 8233 cpi r24,lo8(50) |
||
172 | 192 00c2 00F0 brlo .+2 |
||
173 | 193 00c4 00C0 rjmp .L9 |
||
174 | 194 00c6 84EF ldi r24,lo8(500) |
||
175 | 195 00c8 91E0 ldi r25,hi8(500) |
||
176 | 196 00ca 0E94 0000 call SetDelay |
||
177 | 197 00ce EC01 movw r28,r24 |
||
178 | 198 00d0 1123 tst r17 |
||
179 | 199 00d2 01F0 breq .L10 |
||
180 | 200 .L11: |
||
181 | 201 00d4 CE01 movw r24,r28 |
||
182 | 202 00d6 0E94 0000 call CheckDelay |
||
183 | 203 00da 8823 tst r24 |
||
184 | 204 00dc 01F0 breq .L11 |
||
185 | 205 .L10: |
||
186 | 206 00de C2E0 ldi r28,lo8(2) |
||
187 | 207 00e0 D0E0 ldi r29,hi8(2) |
||
188 | 208 00e2 26E5 ldi r18,lo8(86) |
||
189 | 209 00e4 30E0 ldi r19,hi8(86) |
||
190 | 210 .L18: |
||
191 | 211 00e6 8091 0000 lds r24,UBat |
||
192 | 212 00ea 9091 0000 lds r25,(UBat)+1 |
||
193 | 213 00ee 8217 cp r24,r18 |
||
194 | 214 00f0 9307 cpc r25,r19 |
||
195 | 215 00f2 00F0 brlo .L15 |
||
196 | 216 00f4 2196 adiw r28,1 |
||
197 | 217 00f6 255D subi r18,lo8(-(43)) |
||
198 | 218 00f8 3F4F sbci r19,hi8(-(43)) |
||
199 | 219 00fa C730 cpi r28,7 |
||
200 | 220 00fc D105 cpc r29,__zero_reg__ |
||
201 | 221 00fe 00F0 brlo .L18 |
||
202 | 222 .L15: |
||
203 | 223 0100 8091 0000 lds r24,EE_Parameter+36 |
||
204 | 224 0104 9927 clr r25 |
||
205 | 225 0106 C89F mul r28,r24 |
||
206 | 226 0108 9001 movw r18,r0 |
||
207 | 227 010a C99F mul r28,r25 |
||
208 | 228 010c 300D add r19,r0 |
||
209 | 229 010e D89F mul r29,r24 |
||
210 | 230 0110 300D add r19,r0 |
||
211 | 231 0112 1124 clr r1 |
||
212 | 232 0114 2093 0000 sts BattLowVoltageWarning,r18 |
||
213 | 233 0118 1123 tst r17 |
||
214 | 234 011a 01F0 breq .L20 |
||
215 | 235 011c 68EC ldi r22,lo8(200) |
||
216 | 236 011e 70E0 ldi r23,hi8(200) |
||
217 | 237 0120 8C2F mov r24,r28 |
||
218 | 238 0122 0E94 0000 call Piep |
||
219 | 239 0126 DF93 push r29 |
||
220 | 240 0128 CF93 push r28 |
||
221 | 241 012a 80E0 ldi r24,lo8(__c.8) |
||
222 | 242 012c 90E0 ldi r25,hi8(__c.8) |
||
223 | 243 012e 9F93 push r25 |
||
224 | 244 0130 8F93 push r24 |
||
225 | 245 0132 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
226 | 246 0134 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
227 | 247 0136 9F93 push r25 |
||
228 | 248 0138 8F93 push r24 |
||
229 | 249 013a E091 0000 lds r30,_printf_P |
||
230 | 250 013e F091 0000 lds r31,(_printf_P)+1 |
||
231 | 251 0142 0995 icall |
||
232 | 252 0144 8DB7 in r24,__SP_L__ |
||
233 | 253 0146 9EB7 in r25,__SP_H__ |
||
234 | 254 0148 0696 adiw r24,6 |
||
235 | 255 014a 8DBF out __SP_L__,r24 |
||
236 | 256 014c 00C0 rjmp .L20 |
||
237 | 257 .L9: |
||
238 | 258 014e 8093 0000 sts BattLowVoltageWarning,r24 |
||
239 | 259 .L20: |
||
240 | 260 0152 1123 tst r17 |
||
241 | 261 0154 01F0 breq .L7 |
||
242 | 262 0156 8091 0000 lds r24,BattLowVoltageWarning |
||
243 | 263 015a 6AE0 ldi r22,lo8(10) |
||
244 | 264 015c 0E94 0000 call __udivmodqi4 |
||
245 | 265 0160 892F mov r24,r25 |
||
246 | 266 0162 9927 clr r25 |
||
247 | 267 0164 9F93 push r25 |
||
248 | 268 0166 8F93 push r24 |
||
249 | 269 0168 8091 0000 lds r24,BattLowVoltageWarning |
||
250 | 270 016c 0E94 0000 call __udivmodqi4 |
||
251 | 271 0170 9927 clr r25 |
||
252 | 272 0172 9F93 push r25 |
||
253 | 273 0174 8F93 push r24 |
||
254 | 274 0176 80E0 ldi r24,lo8(__c.9) |
||
255 | 275 0178 90E0 ldi r25,hi8(__c.9) |
||
256 | 276 017a 9F93 push r25 |
||
257 | 277 017c 8F93 push r24 |
||
258 | 278 017e 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
259 | 279 0180 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
260 | 280 0182 9F93 push r25 |
||
261 | 281 0184 8F93 push r24 |
||
262 | 282 0186 E091 0000 lds r30,_printf_P |
||
263 | 283 018a F091 0000 lds r31,(_printf_P)+1 |
||
264 | 284 018e 0995 icall |
||
265 | 285 0190 2DB7 in r18,__SP_L__ |
||
266 | 286 0192 3EB7 in r19,__SP_H__ |
||
267 | 287 0194 285F subi r18,lo8(-(8)) |
||
268 | 288 0196 3F4F sbci r19,hi8(-(8)) |
||
269 | 289 0198 2DBF out __SP_L__,r18 |
||
270 | 290 .L7: |
||
271 | 291 /* epilogue: frame size=0 */ |
||
272 | 292 019a DF91 pop r29 |
||
273 | 293 019c CF91 pop r28 |
||
274 | 294 019e 1F91 pop r17 |
||
275 | 295 01a0 0895 ret |
||
276 | 296 /* epilogue end (size=4) */ |
||
277 | 297 /* function LipoDetection size 138 (131) */ |
||
278 | 299 .section .progmem.data |
||
279 | 302 __c.0: |
||
280 | 303 004d 0A0D 466F .string "\n\rFound BL-Ctrl: " |
||
281 | 303 756E 6420 |
||
282 | 303 424C 2D43 |
||
283 | 303 7472 6C3A |
||
284 | 303 2000 |
||
285 | 306 __c.1: |
||
286 | 307 005f 2564 00 .string "%d" |
||
287 | 310 __c.2: |
||
288 | 311 0062 0A0D 0A0D .string "\n\r\n\r!! MISSING BL-CTRL: %d !!" |
||
289 | 311 2121 204D |
||
290 | 311 4953 5349 |
||
291 | 311 4E47 2042 |
||
292 | 311 4C2D 4354 |
||
293 | 314 __c.3: |
||
294 | 315 0080 0A0D 4361 .string "\n\rCalibrating pressure sensor.." |
||
295 | 315 6C69 6272 |
||
296 | 315 6174 696E |
||
297 | 315 6720 7072 |
||
298 | 315 6573 7375 |
||
299 | 318 __c.4: |
||
300 | 319 00a0 4F4B 0A0D .string "OK\n\r" |
||
301 | 319 00 |
||
302 | 322 __c.5: |
||
303 | 323 00a5 0A0D 466C .string "\n\rFlight-time %u min Total:%u min" |
||
304 | 323 6967 6874 |
||
305 | 323 2D74 696D |
||
306 | 323 6520 2575 |
||
307 | 323 206D 696E |
||
308 | 324 .lcomm second.6,1 |
||
309 | 325 .text |
||
310 | 326 .global main |
||
311 | 328 main: |
||
312 | 329 /* prologue: frame size=0 */ |
||
313 | 330 01a2 C0E0 ldi r28,lo8(__stack - 0) |
||
314 | 331 01a4 D0E0 ldi r29,hi8(__stack - 0) |
||
315 | 332 01a6 DEBF out __SP_H__,r29 |
||
316 | 333 01a8 CDBF out __SP_L__,r28 |
||
317 | 334 /* prologue end (size=4) */ |
||
318 | 335 01aa 8824 clr r8 |
||
319 | 336 01ac 9924 clr r9 |
||
320 | 337 01ae 14B8 out 36-0x20,__zero_reg__ |
||
321 | 338 01b0 15B8 out 37-0x20,__zero_reg__ |
||
322 | 339 01b2 B7EE ldi r27,lo8(999) |
||
323 | 340 01b4 EB2E mov r14,r27 |
||
324 | 341 01b6 B3E0 ldi r27,hi8(999) |
||
325 | 342 01b8 FB2E mov r15,r27 |
||
326 | 343 .L27: |
||
327 | 344 01ba 2EEC ldi r18,lo8(-50) |
||
328 | 345 01bc 3FEF ldi r19,hi8(-50) |
||
329 | 346 01be E20E add r14,r18 |
||
330 | 347 01c0 F31E adc r15,r19 |
||
331 | 348 01c2 F7FE sbrs r15,7 |
||
332 | 349 01c4 00C0 rjmp .L27 |
||
333 | 350 01c6 199B sbis 35-0x20,1 |
||
334 | 351 01c8 00C0 rjmp .L28 |
||
335 | 352 01ca 85E1 ldi r24,lo8(21) |
||
336 | 353 01cc 00C0 rjmp .L242 |
||
337 | 354 .L28: |
||
338 | 355 01ce 86E1 ldi r24,lo8(22) |
||
339 | 356 .L242: |
||
340 | 357 01d0 8093 0000 sts PlatinenVersion,r24 |
||
341 | 358 01d4 81E8 ldi r24,lo8(-127) |
||
342 | 359 01d6 87B9 out 39-0x20,r24 |
||
343 | 360 01d8 3E9A sbi 39-0x20,6 |
||
344 | 361 01da 8FEF ldi r24,lo8(-1) |
||
345 | 362 01dc 88B9 out 40-0x20,r24 |
||
346 | 363 01de 8BE1 ldi r24,lo8(27) |
||
347 | 364 01e0 84B9 out 36-0x20,r24 |
||
348 | 365 01e2 81E0 ldi r24,lo8(1) |
||
349 | 366 01e4 85B9 out 37-0x20,r24 |
||
350 | 367 01e6 8EE3 ldi r24,lo8(62) |
||
351 | 368 01e8 8AB9 out 42-0x20,r24 |
||
352 | 369 01ea 87E4 ldi r24,lo8(71) |
||
353 | 370 01ec 8BB9 out 43-0x20,r24 |
||
354 | 371 01ee 469A sbi 40-0x20,6 |
||
355 | 372 01f0 84B7 in r24,84-0x20 |
||
356 | 373 01f2 877F andi r24,lo8(-9) |
||
357 | 374 01f4 84BF out 84-0x20,r24 |
||
358 | 375 01f6 8091 6000 lds r24,96 |
||
359 | 376 01fa 8861 ori r24,lo8(24) |
||
360 | 377 01fc 8093 6000 sts 96,r24 |
||
361 | 378 0200 1092 6000 sts 96,__zero_reg__ |
||
362 | 379 0204 84EC ldi r24,lo8(2500) |
||
363 | 380 0206 99E0 ldi r25,hi8(2500) |
||
364 | 381 0208 9093 0000 sts (beeptime)+1,r25 |
||
365 | 382 020c 8093 0000 sts beeptime,r24 |
||
366 | 383 0210 1092 0000 sts (StickGier)+1,__zero_reg__ |
||
367 | 384 0214 1092 0000 sts StickGier,__zero_reg__ |
||
368 | 385 0218 1092 0000 sts (PPM_in+4)+1,__zero_reg__ |
||
369 | 386 021c 1092 0000 sts PPM_in+4,__zero_reg__ |
||
370 | 387 0220 1092 0000 sts (StickRoll)+1,__zero_reg__ |
||
371 | 388 0224 1092 0000 sts StickRoll,__zero_reg__ |
||
372 | 389 0228 1092 0000 sts (StickNick)+1,__zero_reg__ |
||
373 | 390 022c 1092 0000 sts StickNick,__zero_reg__ |
||
374 | 391 0230 2091 0000 lds r18,PlatinenVersion |
||
375 | 392 0234 2431 cpi r18,lo8(20) |
||
376 | 393 0236 00F0 brlo .L30 |
||
377 | 394 0238 84EC ldi r24,lo8(1220) |
||
378 | 395 023a 94E0 ldi r25,hi8(1220) |
||
379 | 396 023c A0E0 ldi r26,hlo8(1220) |
||
380 | 397 023e B0E0 ldi r27,hhi8(1220) |
||
381 | 398 0240 00C0 rjmp .L243 |
||
382 | 399 .L30: |
||
383 | 400 0242 8BE0 ldi r24,lo8(1291) |
||
384 | 401 0244 95E0 ldi r25,hi8(1291) |
||
385 | 402 0246 A0E0 ldi r26,hlo8(1291) |
||
386 | 403 0248 B0E0 ldi r27,hhi8(1291) |
||
387 | 404 .L243: |
||
388 | 405 024a 8093 0000 sts GIER_GRAD_FAKTOR,r24 |
||
389 | 406 024e 9093 0000 sts (GIER_GRAD_FAKTOR)+1,r25 |
||
390 | 407 0252 A093 0000 sts (GIER_GRAD_FAKTOR)+2,r26 |
||
391 | 408 0256 B093 0000 sts (GIER_GRAD_FAKTOR)+3,r27 |
||
392 | 409 025a 2A30 cpi r18,lo8(10) |
||
393 | 410 025c 01F0 breq .L33 |
||
394 | 411 025e 2431 cpi r18,lo8(20) |
||
395 | 412 0260 00F0 brlo .L32 |
||
396 | 413 .L33: |
||
397 | 414 0262 2898 cbi 37-0x20,0 |
||
398 | 415 0264 00C0 rjmp .L34 |
||
399 | 416 .L32: |
||
400 | 417 0266 289A sbi 37-0x20,0 |
||
401 | 418 .L34: |
||
402 | 419 0268 2C30 cpi r18,lo8(12) |
||
403 | 420 026a 00F0 brlo .L36 |
||
404 | 421 026c 2631 cpi r18,lo8(22) |
||
405 | 422 026e 01F4 brne .L35 |
||
406 | 423 .L36: |
||
407 | 424 0270 299A sbi 37-0x20,1 |
||
408 | 425 0272 00C0 rjmp .L37 |
||
409 | 426 .L35: |
||
410 | 427 0274 2998 cbi 37-0x20,1 |
||
411 | 428 .L37: |
||
412 | 429 0276 0E94 0000 call Timer_Init |
||
413 | 430 027a 0E94 0000 call TIMER2_Init |
||
414 | 431 027e 0E94 0000 call UART_Init |
||
415 | 432 0282 0E94 0000 call rc_sum_init |
||
416 | 433 0286 0E94 0000 call ADC_Init |
||
417 | 434 028a 81E0 ldi r24,lo8(1) |
||
418 | 435 028c 0E94 0000 call I2C_Init |
||
419 | 436 0290 0E94 0000 call SPI_MasterInit |
||
420 | 437 0294 0E94 0000 call Capacity_Init |
||
421 | 438 0298 0E94 0000 call LIBFC_Init |
||
422 | 439 029c 8091 0000 lds r24,PlatinenVersion |
||
423 | 440 02a0 8C30 cpi r24,lo8(12) |
||
424 | 441 02a2 00F0 brlo .L39 |
||
425 | 442 02a4 8631 cpi r24,lo8(22) |
||
426 | 443 02a6 01F4 brne .L38 |
||
427 | 444 .L39: |
||
428 | 445 02a8 299A sbi 37-0x20,1 |
||
429 | 446 02aa 00C0 rjmp .L40 |
||
430 | 447 .L38: |
||
431 | 448 02ac 2998 cbi 37-0x20,1 |
||
432 | 449 .L40: |
||
433 | 450 /* #APP */ |
||
434 | 451 02ae 7894 sei |
||
435 | 452 /* #NOAPP */ |
||
436 | 453 02b0 0E94 0000 call ParamSet_Init |
||
437 | 454 02b4 8091 0000 lds r24,BLFlags |
||
438 | 455 02b8 8260 ori r24,lo8(2) |
||
439 | 456 02ba 8093 0000 sts BLFlags,r24 |
||
440 | 457 02be 1092 0000 sts motor_read,__zero_reg__ |
||
441 | 458 02c2 0E94 0000 call SendMotorData |
||
442 | 459 02c6 84EF ldi r24,lo8(500) |
||
443 | 460 02c8 91E0 ldi r25,hi8(500) |
||
444 | 461 02ca 0E94 0000 call SetDelay |
||
445 | 462 02ce 7C01 movw r14,r24 |
||
446 | 463 .L41: |
||
447 | 464 02d0 8091 0000 lds r24,BLFlags |
||
448 | 465 02d4 80FD sbrc r24,0 |
||
449 | 466 02d6 00C0 rjmp .L42 |
||
450 | 467 02d8 C701 movw r24,r14 |
||
451 | 468 02da 0E94 0000 call CheckDelay |
||
452 | 469 02de 8823 tst r24 |
||
453 | 470 02e0 01F0 breq .L41 |
||
454 | 471 .L42: |
||
455 | 472 02e2 80E0 ldi r24,lo8(__c.0) |
||
456 | 473 02e4 90E0 ldi r25,hi8(__c.0) |
||
457 | 474 02e6 9F93 push r25 |
||
458 | 475 02e8 8F93 push r24 |
||
459 | 476 02ea A0E0 ldi r26,lo8(pm(uart_putchar)) |
||
460 | 477 02ec AA2E mov r10,r26 |
||
461 | 478 02ee A0E0 ldi r26,hi8(pm(uart_putchar)) |
||
462 | 479 02f0 BA2E mov r11,r26 |
||
463 | 480 02f2 BF92 push r11 |
||
464 | 481 02f4 AF92 push r10 |
||
465 | 482 02f6 E091 0000 lds r30,_printf_P |
||
466 | 483 02fa F091 0000 lds r31,(_printf_P)+1 |
||
467 | 484 02fe 0995 icall |
||
468 | 485 0300 80EA ldi r24,lo8(4000) |
||
469 | 486 0302 9FE0 ldi r25,hi8(4000) |
||
470 | 487 0304 0E94 0000 call SetDelay |
||
471 | 488 0308 7C01 movw r14,r24 |
||
472 | 489 030a C0E0 ldi r28,lo8(0) |
||
473 | 490 030c D0E0 ldi r29,hi8(0) |
||
474 | 491 030e 0F90 pop __tmp_reg__ |
||
475 | 492 0310 0F90 pop __tmp_reg__ |
||
476 | 493 0312 0F90 pop __tmp_reg__ |
||
477 | 494 0314 0F90 pop __tmp_reg__ |
||
478 | 495 0316 00E0 ldi r16,lo8(Motor+3) |
||
479 | 496 0318 10E0 ldi r17,hi8(Motor+3) |
||
480 | 497 031a F0E0 ldi r31,lo8(Mixer+13) |
||
481 | 498 031c CF2E mov r12,r31 |
||
482 | 499 031e F0E0 ldi r31,hi8(Mixer+13) |
||
483 | 500 0320 DF2E mov r13,r31 |
||
484 | 501 .L58: |
||
485 | 502 0322 0E94 0000 call SendMotorData |
||
486 | 503 .L47: |
||
487 | 504 0326 8091 0000 lds r24,BLFlags |
||
488 | 505 032a 80FD sbrc r24,0 |
||
489 | 506 032c 00C0 rjmp .L48 |
||
490 | 507 032e C701 movw r24,r14 |
||
491 | 508 0330 0E94 0000 call CheckDelay |
||
492 | 509 0334 8823 tst r24 |
||
493 | 510 0336 01F0 breq .L47 |
||
494 | 511 .L48: |
||
495 | 512 0338 F601 movw r30,r12 |
||
496 | 513 033a 8081 ld r24,Z |
||
497 | 514 033c 1816 cp __zero_reg__,r24 |
||
498 | 515 033e 04F4 brge .L50 |
||
499 | 516 0340 00C0 rjmp .L246 |
||
500 | 517 .L56: |
||
501 | 518 0342 0E94 0000 call SendMotorData |
||
502 | 519 .L53: |
||
503 | 520 0346 8091 0000 lds r24,BLFlags |
||
504 | 521 034a 80FD sbrc r24,0 |
||
505 | 522 034c 00C0 rjmp .L246 |
||
506 | 523 034e C701 movw r24,r14 |
||
507 | 524 0350 0E94 0000 call CheckDelay |
||
508 | 525 0354 8823 tst r24 |
||
509 | 526 0356 01F0 breq .L53 |
||
510 | 527 .L246: |
||
511 | 528 0358 C701 movw r24,r14 |
||
512 | 529 035a 0E94 0000 call CheckDelay |
||
513 | 530 035e 8823 tst r24 |
||
514 | 531 0360 01F4 brne .L50 |
||
515 | 532 0362 F801 movw r30,r16 |
||
516 | 533 0364 8081 ld r24,Z |
||
517 | 534 0366 8823 tst r24 |
||
518 | 535 0368 04F4 brge .L56 |
||
519 | 536 .L50: |
||
520 | 537 036a F801 movw r30,r16 |
||
521 | 538 036c 8081 ld r24,Z |
||
522 | 539 036e 87FF sbrs r24,7 |
||
523 | 540 0370 00C0 rjmp .L46 |
||
524 | 541 0372 2196 adiw r28,1 |
||
525 | 542 0374 DF93 push r29 |
||
526 | 543 0376 CF93 push r28 |
||
527 | 544 0378 2197 sbiw r28,1 |
||
528 | 545 037a 80E0 ldi r24,lo8(__c.1) |
||
529 | 546 037c 90E0 ldi r25,hi8(__c.1) |
||
530 | 547 037e 9F93 push r25 |
||
531 | 548 0380 8F93 push r24 |
||
532 | 549 0382 BF92 push r11 |
||
533 | 550 0384 AF92 push r10 |
||
534 | 551 0386 E091 0000 lds r30,_printf_P |
||
535 | 552 038a F091 0000 lds r31,(_printf_P)+1 |
||
536 | 553 038e 0995 icall |
||
537 | 554 0390 8091 0000 lds r24,FoundMotors |
||
538 | 555 0394 8F5F subi r24,lo8(-(1)) |
||
539 | 556 0396 8093 0000 sts FoundMotors,r24 |
||
540 | 557 039a 2DB7 in r18,__SP_L__ |
||
541 | 558 039c 3EB7 in r19,__SP_H__ |
||
542 | 559 039e 2A5F subi r18,lo8(-(6)) |
||
543 | 560 03a0 3F4F sbci r19,hi8(-(6)) |
||
544 | 561 03a2 2DBF out __SP_L__,r18 |
||
545 | 562 .L46: |
||
546 | 563 03a4 2196 adiw r28,1 |
||
547 | 564 03a6 84E0 ldi r24,lo8(4) |
||
548 | 565 03a8 90E0 ldi r25,hi8(4) |
||
549 | 566 03aa C80E add r12,r24 |
||
550 | 567 03ac D91E adc r13,r25 |
||
551 | 568 03ae 085F subi r16,lo8(-(8)) |
||
552 | 569 03b0 1F4F sbci r17,hi8(-(8)) |
||
553 | 570 03b2 CC30 cpi r28,12 |
||
554 | 571 03b4 D105 cpc r29,__zero_reg__ |
||
555 | 572 03b6 00F4 brsh .+2 |
||
556 | 573 03b8 00C0 rjmp .L58 |
||
557 | 574 03ba C0E0 ldi r28,lo8(0) |
||
558 | 575 03bc D0E0 ldi r29,hi8(0) |
||
559 | 576 03be 00E0 ldi r16,lo8(Motor) |
||
560 | 577 03c0 10E0 ldi r17,hi8(Motor) |
||
561 | 578 03c2 E0E0 ldi r30,lo8(Mixer+13) |
||
562 | 579 03c4 EE2E mov r14,r30 |
||
563 | 580 03c6 E0E0 ldi r30,hi8(Mixer+13) |
||
564 | 581 03c8 FE2E mov r15,r30 |
||
565 | 582 .L63: |
||
566 | 583 03ca F801 movw r30,r16 |
||
567 | 584 03cc 8381 ldd r24,Z+3 |
||
568 | 585 03ce 87FD sbrc r24,7 |
||
569 | 586 03d0 00C0 rjmp .L62 |
||
570 | 587 03d2 F701 movw r30,r14 |
||
571 | 588 03d4 8081 ld r24,Z |
||
572 | 589 03d6 1816 cp __zero_reg__,r24 |
||
573 | 590 03d8 04F4 brge .L62 |
||
574 | 591 03da 2196 adiw r28,1 |
||
575 | 592 03dc DF93 push r29 |
||
576 | 593 03de CF93 push r28 |
||
577 | 594 03e0 2197 sbiw r28,1 |
||
578 | 595 03e2 80E0 ldi r24,lo8(__c.2) |
||
579 | 596 03e4 90E0 ldi r25,hi8(__c.2) |
||
580 | 597 03e6 9F93 push r25 |
||
581 | 598 03e8 8F93 push r24 |
||
582 | 599 03ea 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
583 | 600 03ec 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
584 | 601 03ee 9F93 push r25 |
||
585 | 602 03f0 8F93 push r24 |
||
586 | 603 03f2 E091 0000 lds r30,_printf_P |
||
587 | 604 03f6 F091 0000 lds r31,(_printf_P)+1 |
||
588 | 605 03fa 0995 icall |
||
589 | 606 03fc 82E0 ldi r24,lo8(2) |
||
590 | 607 03fe 8093 0000 sts ServoActive,r24 |
||
591 | 608 0402 2DB7 in r18,__SP_L__ |
||
592 | 609 0404 3EB7 in r19,__SP_H__ |
||
593 | 610 0406 2A5F subi r18,lo8(-(6)) |
||
594 | 611 0408 3F4F sbci r19,hi8(-(6)) |
||
595 | 612 040a 2DBF out __SP_L__,r18 |
||
596 | 613 .L62: |
||
597 | 614 040c F801 movw r30,r16 |
||
598 | 615 040e 8381 ldd r24,Z+3 |
||
599 | 616 0410 8078 andi r24,lo8(-128) |
||
600 | 617 0412 8383 std Z+3,r24 |
||
601 | 618 0414 2196 adiw r28,1 |
||
602 | 619 0416 24E0 ldi r18,lo8(4) |
||
603 | 620 0418 30E0 ldi r19,hi8(4) |
||
604 | 621 041a E20E add r14,r18 |
||
605 | 622 041c F31E adc r15,r19 |
||
606 | 623 041e 085F subi r16,lo8(-(8)) |
||
607 | 624 0420 1F4F sbci r17,hi8(-(8)) |
||
608 | 625 0422 CC30 cpi r28,12 |
||
609 | 626 0424 D105 cpc r29,__zero_reg__ |
||
610 | 627 0426 00F0 brlo .L63 |
||
611 | 628 0428 0E94 0000 call PrintLine |
||
612 | 629 042c 9091 0000 lds r25,RequiredMotors |
||
613 | 630 0430 8091 0000 lds r24,FoundMotors |
||
614 | 631 0434 9817 cp r25,r24 |
||
615 | 632 0436 00F4 brsh .L64 |
||
616 | 633 0438 8091 0000 lds r24,VersionInfo+6 |
||
617 | 634 043c 8061 ori r24,lo8(16) |
||
618 | 635 043e 8093 0000 sts VersionInfo+6,r24 |
||
619 | 636 .L64: |
||
620 | 637 0442 80E0 ldi r24,lo8(__c.3) |
||
621 | 638 0444 90E0 ldi r25,hi8(__c.3) |
||
622 | 639 0446 9F93 push r25 |
||
623 | 640 0448 8F93 push r24 |
||
624 | 641 044a C0E0 ldi r28,lo8(pm(uart_putchar)) |
||
625 | 642 044c D0E0 ldi r29,hi8(pm(uart_putchar)) |
||
626 | 643 044e DF93 push r29 |
||
627 | 644 0450 CF93 push r28 |
||
628 | 645 0452 E091 0000 lds r30,_printf_P |
||
629 | 646 0456 F091 0000 lds r31,(_printf_P)+1 |
||
630 | 647 045a 0995 icall |
||
631 | 648 045c 88EE ldi r24,lo8(1000) |
||
632 | 649 045e 93E0 ldi r25,hi8(1000) |
||
633 | 650 0460 0E94 0000 call SetDelay |
||
634 | 651 0464 7C01 movw r14,r24 |
||
635 | 652 0466 0E94 0000 call SucheLuftruckOffset |
||
636 | 653 046a 0F90 pop __tmp_reg__ |
||
637 | 654 046c 0F90 pop __tmp_reg__ |
||
638 | 655 046e 0F90 pop __tmp_reg__ |
||
639 | 656 0470 0F90 pop __tmp_reg__ |
||
640 | 657 .L65: |
||
641 | 658 0472 C701 movw r24,r14 |
||
642 | 659 0474 0E94 0000 call CheckDelay |
||
643 | 660 0478 8823 tst r24 |
||
644 | 661 047a 01F0 breq .L65 |
||
645 | 662 047c 80E0 ldi r24,lo8(__c.4) |
||
646 | 663 047e 90E0 ldi r25,hi8(__c.4) |
||
647 | 664 0480 9F93 push r25 |
||
648 | 665 0482 8F93 push r24 |
||
649 | 666 0484 DF93 push r29 |
||
650 | 667 0486 CF93 push r28 |
||
651 | 668 0488 E091 0000 lds r30,_printf_P |
||
652 | 669 048c F091 0000 lds r31,(_printf_P)+1 |
||
653 | 670 0490 0995 icall |
||
654 | 671 0492 80E0 ldi r24,lo8(0) |
||
655 | 672 0494 0E94 0000 call SetNeutral |
||
656 | 673 0498 8091 0000 lds r24,PlatinenVersion |
||
657 | 674 049c 0F90 pop __tmp_reg__ |
||
658 | 675 049e 0F90 pop __tmp_reg__ |
||
659 | 676 04a0 0F90 pop __tmp_reg__ |
||
660 | 677 04a2 0F90 pop __tmp_reg__ |
||
661 | 678 04a4 8A30 cpi r24,lo8(10) |
||
662 | 679 04a6 01F0 breq .L69 |
||
663 | 680 04a8 8431 cpi r24,lo8(20) |
||
664 | 681 04aa 00F0 brlo .L68 |
||
665 | 682 .L69: |
||
666 | 683 04ac 2898 cbi 37-0x20,0 |
||
667 | 684 04ae 00C0 rjmp .L70 |
||
668 | 685 .L68: |
||
669 | 686 04b0 289A sbi 37-0x20,0 |
||
670 | 687 .L70: |
||
671 | 688 04b2 80ED ldi r24,lo8(2000) |
||
672 | 689 04b4 97E0 ldi r25,hi8(2000) |
||
673 | 690 04b6 9093 0000 sts (beeptime)+1,r25 |
||
674 | 691 04ba 8093 0000 sts beeptime,r24 |
||
675 | 692 04be 85E5 ldi r24,lo8(85) |
||
676 | 693 04c0 8093 0000 sts ExternControl,r24 |
||
677 | 694 04c4 8EE0 ldi r24,lo8(14) |
||
678 | 695 04c6 90E0 ldi r25,hi8(14) |
||
679 | 696 04c8 0E94 0000 call GetParamByte |
||
680 | 697 04cc 9927 clr r25 |
||
681 | 698 04ce 182F mov r17,r24 |
||
682 | 699 04d0 0027 clr r16 |
||
683 | 700 04d2 8FE0 ldi r24,lo8(15) |
||
684 | 701 04d4 90E0 ldi r25,hi8(15) |
||
685 | 702 04d6 0E94 0000 call GetParamByte |
||
686 | 703 04da 080F add r16,r24 |
||
687 | 704 04dc 111D adc r17,__zero_reg__ |
||
688 | 705 04de 1093 0000 sts (FlugMinuten)+1,r17 |
||
689 | 706 04e2 0093 0000 sts FlugMinuten,r16 |
||
690 | 707 04e6 8AE0 ldi r24,lo8(10) |
||
691 | 708 04e8 90E0 ldi r25,hi8(10) |
||
692 | 709 04ea 0E94 0000 call GetParamByte |
||
693 | 710 04ee 9927 clr r25 |
||
694 | 711 04f0 182F mov r17,r24 |
||
695 | 712 04f2 0027 clr r16 |
||
696 | 713 04f4 8BE0 ldi r24,lo8(11) |
||
697 | 714 04f6 90E0 ldi r25,hi8(11) |
||
698 | 715 04f8 0E94 0000 call GetParamByte |
||
699 | 716 04fc 080F add r16,r24 |
||
700 | 717 04fe 111D adc r17,__zero_reg__ |
||
701 | 718 0500 1093 0000 sts (FlugMinutenGesamt)+1,r17 |
||
702 | 719 0504 0093 0000 sts FlugMinutenGesamt,r16 |
||
703 | 720 0508 0F5F subi r16,lo8(-1) |
||
704 | 721 050a 1F4F sbci r17,hi8(-1) |
||
705 | 722 050c 01F0 breq .L72 |
||
706 | 723 050e 8091 0000 lds r24,FlugMinuten |
||
707 | 724 0512 9091 0000 lds r25,(FlugMinuten)+1 |
||
708 | 725 0516 8F5F subi r24,lo8(-1) |
||
709 | 726 0518 9F4F sbci r25,hi8(-1) |
||
710 | 727 051a 01F4 brne .L71 |
||
711 | 728 .L72: |
||
712 | 729 051c 1092 0000 sts (FlugMinuten)+1,__zero_reg__ |
||
713 | 730 0520 1092 0000 sts FlugMinuten,__zero_reg__ |
||
714 | 731 0524 1092 0000 sts (FlugMinutenGesamt)+1,__zero_reg__ |
||
715 | 732 0528 1092 0000 sts FlugMinutenGesamt,__zero_reg__ |
||
716 | 733 .L71: |
||
717 | 734 052c 8091 0000 lds r24,FlugMinutenGesamt |
||
718 | 735 0530 9091 0000 lds r25,(FlugMinutenGesamt)+1 |
||
719 | 736 0534 9F93 push r25 |
||
720 | 737 0536 8F93 push r24 |
||
721 | 738 0538 8091 0000 lds r24,FlugMinuten |
||
722 | 739 053c 9091 0000 lds r25,(FlugMinuten)+1 |
||
723 | 740 0540 9F93 push r25 |
||
724 | 741 0542 8F93 push r24 |
||
725 | 742 0544 80E0 ldi r24,lo8(__c.5) |
||
726 | 743 0546 90E0 ldi r25,hi8(__c.5) |
||
727 | 744 0548 9F93 push r25 |
||
728 | 745 054a 8F93 push r24 |
||
729 | 746 054c DF93 push r29 |
||
730 | 747 054e CF93 push r28 |
||
731 | 748 0550 E091 0000 lds r30,_printf_P |
||
732 | 749 0554 F091 0000 lds r31,(_printf_P)+1 |
||
733 | 750 0558 0995 icall |
||
734 | 751 055a 0E94 0000 call LcdClear |
||
735 | 752 055e 88E8 ldi r24,lo8(5000) |
||
736 | 753 0560 93E1 ldi r25,hi8(5000) |
||
737 | 754 0562 9093 0000 sts (I2CTimeout)+1,r25 |
||
738 | 755 0566 8093 0000 sts I2CTimeout,r24 |
||
739 | 756 056a C1E0 ldi r28,lo8(1) |
||
740 | 757 056c C093 0000 sts WinkelOut+7,r28 |
||
741 | 758 0570 8C2F mov r24,r28 |
||
742 | 759 0572 0E94 0000 call LipoDetection |
||
743 | 760 0576 8091 0000 lds r24,EE_Parameter+39 |
||
744 | 761 057a 0E94 0000 call LIBFC_ReceiverInit |
||
745 | 762 057e 0E94 0000 call PrintLine |
||
746 | 763 0582 80ED ldi r24,lo8(2000) |
||
747 | 764 0584 97E0 ldi r25,hi8(2000) |
||
748 | 765 0586 0E94 0000 call SetDelay |
||
749 | 766 058a 7C01 movw r14,r24 |
||
750 | 767 058c 8AEF ldi r24,lo8(250) |
||
751 | 768 058e 90E0 ldi r25,hi8(250) |
||
752 | 769 0590 0E94 0000 call SetDelay |
||
753 | 770 0594 83E0 ldi r24,lo8(3) |
||
754 | 771 0596 8093 0000 sts DebugOut,r24 |
||
755 | 772 059a 1092 0000 sts JetiBeep,__zero_reg__ |
||
756 | 773 059e 8091 0000 lds r24,EE_Parameter+110 |
||
757 | 774 05a2 2DB7 in r18,__SP_L__ |
||
758 | 775 05a4 3EB7 in r19,__SP_H__ |
||
759 | 776 05a6 285F subi r18,lo8(-(8)) |
||
760 | 777 05a8 3F4F sbci r19,hi8(-(8)) |
||
761 | 778 05aa 2DBF out __SP_L__,r18 |
||
762 | 779 05ac 84FF sbrs r24,4 |
||
763 | 780 05ae 00C0 rjmp .L247 |
||
764 | 781 05b0 C093 0000 sts DisableRcOffBeeping,r28 |
||
765 | 782 .L247: |
||
766 | 783 05b4 8091 0000 lds r24,ReceiverUpdateModeActive |
||
767 | 784 05b8 8823 tst r24 |
||
768 | 785 05ba 01F0 breq .L76 |
||
769 | 786 .L77: |
||
770 | 787 05bc 4798 cbi 40-0x20,7 |
||
771 | 788 05be 00C0 rjmp .L77 |
||
772 | 789 .L76: |
||
773 | 790 05c0 8091 0000 lds r24,UpdateMotor |
||
774 | 791 05c4 8823 tst r24 |
||
775 | 792 05c6 01F4 brne .+2 |
||
776 | 793 05c8 00C0 rjmp .L79 |
||
777 | 794 05ca 8091 0000 lds r24,AdReady |
||
778 | 795 05ce 8823 tst r24 |
||
779 | 796 05d0 01F4 brne .+2 |
||
780 | 797 05d2 00C0 rjmp .L79 |
||
781 | 798 05d4 1092 0000 sts UpdateMotor,__zero_reg__ |
||
782 | 799 05d8 8091 0000 lds r24,WinkelOut+6 |
||
783 | 800 05dc 8823 tst r24 |
||
784 | 801 05de 01F0 breq .L80 |
||
785 | 802 05e0 0E94 0000 call CalMk3Mag |
||
786 | 803 05e4 00C0 rjmp .L81 |
||
787 | 804 .L80: |
||
788 | 805 05e6 0E94 0000 call MotorRegler |
||
789 | 806 .L81: |
||
790 | 807 05ea 0E94 0000 call SendMotorData |
||
791 | 808 05ee 2091 0000 lds r18,PlatinenVersion |
||
792 | 809 05f2 2A30 cpi r18,lo8(10) |
||
793 | 810 05f4 01F0 breq .L83 |
||
794 | 811 05f6 2431 cpi r18,lo8(20) |
||
795 | 812 05f8 00F0 brlo .L82 |
||
796 | 813 .L83: |
||
797 | 814 05fa 2898 cbi 37-0x20,0 |
||
798 | 815 05fc 00C0 rjmp .L84 |
||
799 | 816 .L82: |
||
800 | 817 05fe 289A sbi 37-0x20,0 |
||
801 | 818 .L84: |
||
802 | 819 0600 8091 0000 lds r24,SenderOkay |
||
803 | 820 0604 8823 tst r24 |
||
804 | 821 0606 01F0 breq .L85 |
||
805 | 822 0608 8091 0000 lds r24,SenderOkay |
||
806 | 823 060c 8150 subi r24,lo8(-(-1)) |
||
807 | 824 060e 8093 0000 sts SenderOkay,r24 |
||
808 | 825 0612 00C0 rjmp .L86 |
||
809 | 826 .L85: |
||
810 | 827 0614 8091 6F00 lds r24,111 |
||
811 | 828 0618 8062 ori r24,lo8(32) |
||
812 | 829 061a 8093 6F00 sts 111,r24 |
||
813 | 830 061e 1092 0000 sts (PPM_in)+1,__zero_reg__ |
||
814 | 831 0622 1092 0000 sts PPM_in,__zero_reg__ |
||
815 | 832 0626 8091 0000 lds r24,VersionInfo+6 |
||
816 | 833 062a 8860 ori r24,lo8(8) |
||
817 | 834 062c 8093 0000 sts VersionInfo+6,r24 |
||
818 | 835 .L86: |
||
819 | 836 0630 8091 0000 lds r24,I2CTimeout |
||
820 | 837 0634 9091 0000 lds r25,(I2CTimeout)+1 |
||
821 | 838 0638 0197 sbiw r24,1 |
||
822 | 839 063a 9093 0000 sts (I2CTimeout)+1,r25 |
||
823 | 840 063e 8093 0000 sts I2CTimeout,r24 |
||
824 | 841 0642 8091 0000 lds r24,I2CTimeout |
||
825 | 842 0646 9091 0000 lds r25,(I2CTimeout)+1 |
||
826 | 843 064a 892B or r24,r25 |
||
827 | 844 064c 01F0 breq .L88 |
||
828 | 845 064e 8091 0000 lds r24,MissingMotor |
||
829 | 846 0652 8823 tst r24 |
||
830 | 847 0654 01F0 breq .L87 |
||
831 | 848 .L88: |
||
832 | 849 0656 8091 0000 lds r24,I2CTimeout |
||
833 | 850 065a 9091 0000 lds r25,(I2CTimeout)+1 |
||
834 | 851 065e 892B or r24,r25 |
||
835 | 852 0660 01F4 brne .L89 |
||
836 | 853 0662 0E94 0000 call I2C_Reset |
||
837 | 854 0666 85E0 ldi r24,lo8(5) |
||
838 | 855 0668 90E0 ldi r25,hi8(5) |
||
839 | 856 066a 9093 0000 sts (I2CTimeout)+1,r25 |
||
840 | 857 066e 8093 0000 sts I2CTimeout,r24 |
||
841 | 858 0672 8091 0000 lds r24,DebugOut+58 |
||
842 | 859 0676 9091 0000 lds r25,(DebugOut+58)+1 |
||
843 | 860 067a 0196 adiw r24,1 |
||
844 | 861 067c 9093 0000 sts (DebugOut+58)+1,r25 |
||
845 | 862 0680 8093 0000 sts DebugOut+58,r24 |
||
846 | 863 0684 8091 0000 lds r24,VersionInfo+6 |
||
847 | 864 0688 8160 ori r24,lo8(1) |
||
848 | 865 068a 8093 0000 sts VersionInfo+6,r24 |
||
849 | 866 068e 8091 0000 lds r24,DebugOut+1 |
||
850 | 867 0692 8260 ori r24,lo8(2) |
||
851 | 868 0694 8093 0000 sts DebugOut+1,r24 |
||
852 | 869 .L89: |
||
853 | 870 0698 8091 0000 lds r24,BeepMuster |
||
854 | 871 069c 9091 0000 lds r25,(BeepMuster)+1 |
||
855 | 872 06a0 8F5F subi r24,lo8(-1) |
||
856 | 873 06a2 9F4F sbci r25,hi8(-1) |
||
857 | 874 06a4 01F4 brne .L91 |
||
858 | 875 06a6 8091 0000 lds r24,MotorenEin |
||
859 | 876 06aa 8823 tst r24 |
||
860 | 877 06ac 01F0 breq .L91 |
||
861 | 878 06ae 88EA ldi r24,lo8(25000) |
||
862 | 879 06b0 91E6 ldi r25,hi8(25000) |
||
863 | 880 06b2 9093 0000 sts (beeptime)+1,r25 |
||
864 | 881 06b6 8093 0000 sts beeptime,r24 |
||
865 | 882 06ba 80E8 ldi r24,lo8(128) |
||
866 | 883 06bc 90E0 ldi r25,hi8(128) |
||
867 | 884 06be 9093 0000 sts (BeepMuster)+1,r25 |
||
868 | 885 06c2 8093 0000 sts BeepMuster,r24 |
||
869 | 886 06c6 00C0 rjmp .L91 |
||
870 | 887 .L87: |
||
871 | 888 06c8 2A30 cpi r18,lo8(10) |
||
872 | 889 06ca 01F0 breq .L93 |
||
873 | 890 06cc 2431 cpi r18,lo8(20) |
||
874 | 891 06ce 00F0 brlo .L92 |
||
875 | 892 .L93: |
||
876 | 893 06d0 2898 cbi 37-0x20,0 |
||
877 | 894 06d2 00C0 rjmp .L91 |
||
878 | 895 .L92: |
||
879 | 896 06d4 289A sbi 37-0x20,0 |
||
880 | 897 .L91: |
||
881 | 898 06d6 0E94 0000 call LIBFC_Polling |
||
882 | 899 06da 8091 0000 lds r24,UpdateMotor |
||
883 | 900 06de 8823 tst r24 |
||
884 | 901 06e0 01F0 breq .+2 |
||
885 | 902 06e2 00C0 rjmp .L79 |
||
886 | 903 06e4 8091 0000 lds r24,NewSBusData |
||
887 | 904 06e8 8823 tst r24 |
||
888 | 905 06ea 01F0 breq .L96 |
||
889 | 906 06ec 0E94 0000 call ProcessSBus |
||
890 | 907 06f0 00C0 rjmp .L79 |
||
891 | 908 .L96: |
||
892 | 909 06f2 8091 0000 lds r24,CalculateServoSignals |
||
893 | 910 06f6 8823 tst r24 |
||
894 | 911 06f8 01F0 breq .L98 |
||
895 | 912 06fa 0E94 0000 call CalculateServo |
||
896 | 913 .L98: |
||
897 | 914 06fe 0E94 0000 call DatenUebertragung |
||
898 | 915 0702 0E94 0000 call BearbeiteRxDaten |
||
899 | 916 0706 C701 movw r24,r14 |
||
900 | 917 0708 0E94 0000 call CheckDelay |
||
901 | 918 070c 8823 tst r24 |
||
902 | 919 070e 01F4 brne .+2 |
||
903 | 920 0710 00C0 rjmp .L99 |
||
904 | 921 0712 84E1 ldi r24,lo8(20) |
||
905 | 922 0714 90E0 ldi r25,hi8(20) |
||
906 | 923 0716 E80E add r14,r24 |
||
907 | 924 0718 F91E adc r15,r25 |
||
908 | 925 071a 0E94 0000 call CalcNickServoValue |
||
909 | 926 071e 8091 0000 lds r24,EE_Parameter+39 |
||
910 | 927 0722 8630 cpi r24,lo8(6) |
||
911 | 928 0724 01F4 brne .L100 |
||
912 | 929 0726 0E94 0000 call HoTT_Menu |
||
913 | 930 072a 00C0 rjmp .L101 |
||
914 | 931 .L100: |
||
915 | 932 072c 8430 cpi r24,lo8(4) |
||
916 | 933 072e 01F4 brne .L101 |
||
917 | 934 0730 0E94 0000 call BuildJeti_Vario |
||
918 | 935 .L101: |
||
919 | 936 0734 8091 0000 lds r24,MissingMotor |
||
920 | 937 0738 8823 tst r24 |
||
921 | 938 073a 01F0 breq .L103 |
||
922 | 939 073c 8091 0000 lds r24,VersionInfo+6 |
||
923 | 940 0740 8260 ori r24,lo8(2) |
||
924 | 941 0742 8093 0000 sts VersionInfo+6,r24 |
||
925 | 942 0746 8091 0000 lds r24,DebugOut+1 |
||
926 | 943 074a 8260 ori r24,lo8(2) |
||
927 | 944 074c 00C0 rjmp .L244 |
||
928 | 945 .L103: |
||
929 | 946 074e 8091 0000 lds r24,beeptime |
||
930 | 947 0752 9091 0000 lds r25,(beeptime)+1 |
||
931 | 948 0756 892B or r24,r25 |
||
932 | 949 0758 01F4 brne .L104 |
||
933 | 950 075a 8091 0000 lds r24,I2CTimeout |
||
934 | 951 075e 9091 0000 lds r25,(I2CTimeout)+1 |
||
935 | 952 0762 0797 sbiw r24,7 |
||
936 | 953 0764 00F0 brlo .L104 |
||
937 | 954 0766 8091 0000 lds r24,DebugOut+1 |
||
938 | 955 076a 8D7F andi r24,lo8(-3) |
||
939 | 956 .L244: |
||
940 | 957 076c 8093 0000 sts DebugOut+1,r24 |
||
941 | 958 .L104: |
||
942 | 959 0770 8091 0000 lds r24,DisableRcOffBeeping |
||
943 | 960 0774 8823 tst r24 |
||
944 | 961 0776 01F0 breq .L107 |
||
945 | 962 0778 8091 0000 lds r24,SenderOkay |
||
946 | 963 077c 8739 cpi r24,lo8(-105) |
||
947 | 964 077e 00F0 brlo .L107 |
||
948 | 965 0780 1092 0000 sts DisableRcOffBeeping,__zero_reg__ |
||
949 | 966 0784 88E8 ldi r24,lo8(5000) |
||
950 | 967 0786 93E1 ldi r25,hi8(5000) |
||
951 | 968 0788 9093 0000 sts (beeptime)+1,r25 |
||
952 | 969 078c 8093 0000 sts beeptime,r24 |
||
953 | 970 .L107: |
||
954 | 971 0790 8091 0000 lds r24,PcZugriff |
||
955 | 972 0794 8823 tst r24 |
||
956 | 973 0796 01F0 breq .L109 |
||
957 | 974 0798 8150 subi r24,lo8(-(-1)) |
||
958 | 975 079a 8093 0000 sts PcZugriff,r24 |
||
959 | 976 079e 00C0 rjmp .L110 |
||
960 | 977 .L109: |
||
961 | 978 07a0 8093 0000 sts ExternControl+10,r24 |
||
962 | 979 07a4 1092 0000 sts (ExternStickNick)+1,__zero_reg__ |
||
963 | 980 07a8 1092 0000 sts ExternStickNick,__zero_reg__ |
||
964 | 981 07ac 1092 0000 sts (ExternStickRoll)+1,__zero_reg__ |
||
965 | 982 07b0 1092 0000 sts ExternStickRoll,__zero_reg__ |
||
966 | 983 07b4 1092 0000 sts (ExternStickGier)+1,__zero_reg__ |
||
967 | 984 07b8 1092 0000 sts ExternStickGier,__zero_reg__ |
||
968 | 985 07bc 8091 0000 lds r24,SenderOkay |
||
969 | 986 07c0 8823 tst r24 |
||
970 | 987 07c2 01F4 brne .L110 |
||
971 | 988 07c4 8091 0000 lds r24,BeepMuster |
||
972 | 989 07c8 9091 0000 lds r25,(BeepMuster)+1 |
||
973 | 990 07cc 8F5F subi r24,lo8(-1) |
||
974 | 991 07ce 9F4F sbci r25,hi8(-1) |
||
975 | 992 07d0 01F4 brne .L110 |
||
976 | 993 07d2 2091 0000 lds r18,DisableRcOffBeeping |
||
977 | 994 07d6 2230 cpi r18,lo8(2) |
||
978 | 995 07d8 01F0 breq .L110 |
||
979 | 996 07da 88E9 ldi r24,lo8(15000) |
||
980 | 997 07dc 9AE3 ldi r25,hi8(15000) |
||
981 | 998 07de 9093 0000 sts (beeptime)+1,r25 |
||
982 | 999 07e2 8093 0000 sts beeptime,r24 |
||
983 | 1000 07e6 80E0 ldi r24,lo8(3072) |
||
984 | 1001 07e8 9CE0 ldi r25,hi8(3072) |
||
985 | 1002 07ea 9093 0000 sts (BeepMuster)+1,r25 |
||
986 | 1003 07ee 8093 0000 sts BeepMuster,r24 |
||
987 | 1004 07f2 2223 tst r18 |
||
988 | 1005 07f4 01F0 breq .L110 |
||
989 | 1006 07f6 82E0 ldi r24,lo8(2) |
||
990 | 1007 07f8 8093 0000 sts DisableRcOffBeeping,r24 |
||
991 | 1008 .L110: |
||
992 | 1009 07fc 8091 0000 lds r24,NaviDataOkay |
||
993 | 1010 0800 893C cpi r24,lo8(-55) |
||
994 | 1011 0802 00F0 brlo .L114 |
||
995 | 1012 0804 8150 subi r24,lo8(-(-1)) |
||
996 | 1013 0806 8093 0000 sts NaviDataOkay,r24 |
||
997 | 1014 080a 8091 0000 lds r24,VersionInfo+6 |
||
998 | 1015 080e 8B7F andi r24,lo8(-5) |
||
999 | 1016 0810 8093 0000 sts VersionInfo+6,r24 |
||
1000 | 1017 0814 00C0 rjmp .L115 |
||
1001 | 1018 .L114: |
||
1002 | 1019 0816 8091 0000 lds r24,NC_Version+3 |
||
1003 | 1020 081a 8823 tst r24 |
||
1004 | 1021 081c 01F0 breq .L116 |
||
1005 | 1022 081e 8091 0000 lds r24,VersionInfo+6 |
||
1006 | 1023 0822 8460 ori r24,lo8(4) |
||
1007 | 1024 0824 8093 0000 sts VersionInfo+6,r24 |
||
1008 | 1025 0828 89E0 ldi r24,lo8(9) |
||
1009 | 1026 082a 8093 0000 sts NC_ErrorCode,r24 |
||
1010 | 1027 082e 8091 0000 lds r24,BeepMuster |
||
1011 | 1028 0832 9091 0000 lds r25,(BeepMuster)+1 |
||
1012 | 1029 0836 8F5F subi r24,lo8(-1) |
||
1013 | 1030 0838 9F4F sbci r25,hi8(-1) |
||
1014 | 1031 083a 01F4 brne .L116 |
||
1015 | 1032 083c 8091 0000 lds r24,MotorenEin |
||
1016 | 1033 0840 8823 tst r24 |
||
1017 | 1034 0842 01F0 breq .L116 |
||
1018 | 1035 0844 88E9 ldi r24,lo8(15000) |
||
1019 | 1036 0846 9AE3 ldi r25,hi8(15000) |
||
1020 | 1037 0848 9093 0000 sts (beeptime)+1,r25 |
||
1021 | 1038 084c 8093 0000 sts beeptime,r24 |
||
1022 | 1039 0850 80E0 ldi r24,lo8(-22528) |
||
1023 | 1040 0852 98EA ldi r25,hi8(-22528) |
||
1024 | 1041 0854 9093 0000 sts (BeepMuster)+1,r25 |
||
1025 | 1042 0858 8093 0000 sts BeepMuster,r24 |
||
1026 | 1043 .L116: |
||
1027 | 1044 085c 1092 0000 sts (GPS_Nick)+1,__zero_reg__ |
||
1028 | 1045 0860 1092 0000 sts GPS_Nick,__zero_reg__ |
||
1029 | 1046 0864 1092 0000 sts (GPS_Roll)+1,__zero_reg__ |
||
1030 | 1047 0868 1092 0000 sts GPS_Roll,__zero_reg__ |
||
1031 | 1048 086c 1092 0000 sts GPS_Aid_StickMultiplikator,__zero_reg__ |
||
1032 | 1049 0870 1092 0000 sts GPSInfo,__zero_reg__ |
||
1033 | 1050 0874 1092 0000 sts (FromNaviCtrl+9)+1,__zero_reg__ |
||
1034 | 1051 0878 1092 0000 sts FromNaviCtrl+9,__zero_reg__ |
||
1035 | 1052 087c 1092 0000 sts (FromNaviCtrl+11)+1,__zero_reg__ |
||
1036 | 1053 0880 1092 0000 sts FromNaviCtrl+11,__zero_reg__ |
||
1037 | 1054 0884 8FEF ldi r24,lo8(-1) |
||
1038 | 1055 0886 9FEF ldi r25,hi8(-1) |
||
1039 | 1056 0888 9093 0000 sts (FromNaviCtrl+7)+1,r25 |
||
1040 | 1057 088c 8093 0000 sts FromNaviCtrl+7,r24 |
||
1041 | 1058 0890 1092 0000 sts NaviDataOkay,__zero_reg__ |
||
1042 | 1059 .L115: |
||
1043 | 1060 0894 8091 0000 lds r24,BattLowVoltageWarning |
||
1044 | 1061 0898 282F mov r18,r24 |
||
1045 | 1062 089a 3327 clr r19 |
||
1046 | 1063 089c 8091 0000 lds r24,UBat |
||
1047 | 1064 08a0 9091 0000 lds r25,(UBat)+1 |
||
1048 | 1065 08a4 8217 cp r24,r18 |
||
1049 | 1066 08a6 9307 cpc r25,r19 |
||
1050 | 1067 08a8 04F4 brge .L118 |
||
1051 | 1068 08aa 8091 0000 lds r24,FC_StatusFlags |
||
1052 | 1069 08ae 8062 ori r24,lo8(32) |
||
1053 | 1070 08b0 8093 0000 sts FC_StatusFlags,r24 |
||
1054 | 1071 08b4 8091 0000 lds r24,BeepMuster |
||
1055 | 1072 08b8 9091 0000 lds r25,(BeepMuster)+1 |
||
1056 | 1073 08bc 8F5F subi r24,lo8(-1) |
||
1057 | 1074 08be 9F4F sbci r25,hi8(-1) |
||
1058 | 1075 08c0 01F4 brne .L120 |
||
1059 | 1076 08c2 80E7 ldi r24,lo8(6000) |
||
1060 | 1077 08c4 97E1 ldi r25,hi8(6000) |
||
1061 | 1078 08c6 9093 0000 sts (beeptime)+1,r25 |
||
1062 | 1079 08ca 8093 0000 sts beeptime,r24 |
||
1063 | 1080 08ce 80E0 ldi r24,lo8(768) |
||
1064 | 1081 08d0 93E0 ldi r25,hi8(768) |
||
1065 | 1082 08d2 9093 0000 sts (BeepMuster)+1,r25 |
||
1066 | 1083 08d6 8093 0000 sts BeepMuster,r24 |
||
1067 | 1084 08da 00C0 rjmp .L120 |
||
1068 | 1085 .L118: |
||
1069 | 1086 08dc 8091 0000 lds r24,beeptime |
||
1070 | 1087 08e0 9091 0000 lds r25,(beeptime)+1 |
||
1071 | 1088 08e4 892B or r24,r25 |
||
1072 | 1089 08e6 01F4 brne .L120 |
||
1073 | 1090 08e8 8091 0000 lds r24,FC_StatusFlags |
||
1074 | 1091 08ec 8F7D andi r24,lo8(-33) |
||
1075 | 1092 08ee 8093 0000 sts FC_StatusFlags,r24 |
||
1076 | 1093 .L120: |
||
1077 | 1094 08f2 0E94 0000 call SPI_StartTransmitPacket |
||
1078 | 1095 08f6 84E0 ldi r24,lo8(4) |
||
1079 | 1096 08f8 8093 0000 sts SendSPI,r24 |
||
1080 | 1097 08fc 8091 0000 lds r24,second.6 |
||
1081 | 1098 0900 8F5F subi r24,lo8(-(1)) |
||
1082 | 1099 0902 8093 0000 sts second.6,r24 |
||
1083 | 1100 0906 8133 cpi r24,lo8(49) |
||
1084 | 1101 0908 01F0 breq .+2 |
||
1085 | 1102 090a 00C0 rjmp .L122 |
||
1086 | 1103 090c 1092 0000 sts second.6,__zero_reg__ |
||
1087 | 1104 0910 8091 0000 lds r24,FC_StatusFlags |
||
1088 | 1105 0914 81FF sbrs r24,1 |
||
1089 | 1106 0916 00C0 rjmp .L123 |
||
1090 | 1107 0918 8091 0000 lds r24,FlugSekunden |
||
1091 | 1108 091c 9091 0000 lds r25,(FlugSekunden)+1 |
||
1092 | 1109 0920 0196 adiw r24,1 |
||
1093 | 1110 0922 9093 0000 sts (FlugSekunden)+1,r25 |
||
1094 | 1111 0926 8093 0000 sts FlugSekunden,r24 |
||
1095 | 1112 092a 00C0 rjmp .L122 |
||
1096 | 1113 .L123: |
||
1097 | 1114 092c 5AEA ldi r21,lo8(1450) |
||
1098 | 1115 092e 852E mov r8,r21 |
||
1099 | 1116 0930 55E0 ldi r21,hi8(1450) |
||
1100 | 1117 0932 952E mov r9,r21 |
||
1101 | 1118 0934 8091 0000 lds r24,StartLuftdruck |
||
1102 | 1119 0938 9091 0000 lds r25,(StartLuftdruck)+1 |
||
1103 | 1120 093c 9C01 movw r18,r24 |
||
1104 | 1121 093e 4427 clr r20 |
||
1105 | 1122 0940 37FD sbrc r19,7 |
||
1106 | 1123 0942 4095 com r20 |
||
1107 | 1124 0944 542F mov r21,r20 |
||
1108 | 1125 0946 8091 0000 lds r24,Luftdruck |
||
1109 | 1126 094a 9091 0000 lds r25,(Luftdruck)+1 |
||
1110 | 1127 094e A091 0000 lds r26,(Luftdruck)+2 |
||
1111 | 1128 0952 B091 0000 lds r27,(Luftdruck)+3 |
||
1112 | 1129 0956 2817 cp r18,r24 |
||
1113 | 1130 0958 3907 cpc r19,r25 |
||
1114 | 1131 095a 4A07 cpc r20,r26 |
||
1115 | 1132 095c 5B07 cpc r21,r27 |
||
1116 | 1133 095e 04F4 brge .L125 |
||
1117 | 1134 0960 8091 0000 lds r24,StartLuftdruck |
||
1118 | 1135 0964 9091 0000 lds r25,(StartLuftdruck)+1 |
||
1119 | 1136 0968 0196 adiw r24,1 |
||
1120 | 1137 096a 00C0 rjmp .L245 |
||
1121 | 1138 .L125: |
||
1122 | 1139 096c 8091 0000 lds r24,StartLuftdruck |
||
1123 | 1140 0970 9091 0000 lds r25,(StartLuftdruck)+1 |
||
1124 | 1141 0974 9C01 movw r18,r24 |
||
1125 | 1142 0976 4427 clr r20 |
||
1126 | 1143 0978 37FD sbrc r19,7 |
||
1127 | 1144 097a 4095 com r20 |
||
1128 | 1145 097c 542F mov r21,r20 |
||
1129 | 1146 097e 8091 0000 lds r24,Luftdruck |
||
1130 | 1147 0982 9091 0000 lds r25,(Luftdruck)+1 |
||
1131 | 1148 0986 A091 0000 lds r26,(Luftdruck)+2 |
||
1132 | 1149 098a B091 0000 lds r27,(Luftdruck)+3 |
||
1133 | 1150 098e 8217 cp r24,r18 |
||
1134 | 1151 0990 9307 cpc r25,r19 |
||
1135 | 1152 0992 A407 cpc r26,r20 |
||
1136 | 1153 0994 B507 cpc r27,r21 |
||
1137 | 1154 0996 04F4 brge .L122 |
||
1138 | 1155 0998 8091 0000 lds r24,StartLuftdruck |
||
1139 | 1156 099c 9091 0000 lds r25,(StartLuftdruck)+1 |
||
1140 | 1157 09a0 0197 sbiw r24,1 |
||
1141 | 1158 .L245: |
||
1142 | 1159 09a2 9093 0000 sts (StartLuftdruck)+1,r25 |
||
1143 | 1160 09a6 8093 0000 sts StartLuftdruck,r24 |
||
1144 | 1161 .L122: |
||
1145 | 1162 09aa 0894 sec |
||
1146 | 1163 09ac 811C adc r8,__zero_reg__ |
||
1147 | 1164 09ae 911C adc r9,__zero_reg__ |
||
1148 | 1165 09b0 32E7 ldi r19,lo8(2930) |
||
1149 | 1166 09b2 8316 cp r8,r19 |
||
1150 | 1167 09b4 3BE0 ldi r19,hi8(2930) |
||
1151 | 1168 09b6 9306 cpc r9,r19 |
||
1152 | 1169 09b8 01F0 breq .+2 |
||
1153 | 1170 09ba 00C0 rjmp .L99 |
||
1154 | 1171 09bc 8824 clr r8 |
||
1155 | 1172 09be 9924 clr r9 |
||
1156 | 1173 09c0 2091 0000 lds r18,FlugMinuten |
||
1157 | 1174 09c4 3091 0000 lds r19,(FlugMinuten)+1 |
||
1158 | 1175 09c8 2F5F subi r18,lo8(-(1)) |
||
1159 | 1176 09ca 3F4F sbci r19,hi8(-(1)) |
||
1160 | 1177 09cc 3093 0000 sts (FlugMinuten)+1,r19 |
||
1161 | 1178 09d0 2093 0000 sts FlugMinuten,r18 |
||
1162 | 1179 09d4 8091 0000 lds r24,FlugMinutenGesamt |
||
1163 | 1180 09d8 9091 0000 lds r25,(FlugMinutenGesamt)+1 |
||
1164 | 1181 09dc 0196 adiw r24,1 |
||
1165 | 1182 09de 9093 0000 sts (FlugMinutenGesamt)+1,r25 |
||
1166 | 1183 09e2 8093 0000 sts FlugMinutenGesamt,r24 |
||
1167 | 1184 09e6 832F mov r24,r19 |
||
1168 | 1185 09e8 9927 clr r25 |
||
1169 | 1186 09ea 682F mov r22,r24 |
||
1170 | 1187 09ec 8EE0 ldi r24,lo8(14) |
||
1171 | 1188 09ee 90E0 ldi r25,hi8(14) |
||
1172 | 1189 09f0 0E94 0000 call SetParamByte |
||
1173 | 1190 09f4 8091 0000 lds r24,FlugMinuten |
||
1174 | 1191 09f8 9091 0000 lds r25,(FlugMinuten)+1 |
||
1175 | 1192 09fc 9070 andi r25,hi8(255) |
||
1176 | 1193 09fe 682F mov r22,r24 |
||
1177 | 1194 0a00 8FE0 ldi r24,lo8(15) |
||
1178 | 1195 0a02 90E0 ldi r25,hi8(15) |
||
1179 | 1196 0a04 0E94 0000 call SetParamByte |
||
1180 | 1197 0a08 8091 0000 lds r24,FlugMinutenGesamt |
||
1181 | 1198 0a0c 9091 0000 lds r25,(FlugMinutenGesamt)+1 |
||
1182 | 1199 0a10 892F mov r24,r25 |
||
1183 | 1200 0a12 9927 clr r25 |
||
1184 | 1201 0a14 682F mov r22,r24 |
||
1185 | 1202 0a16 8AE0 ldi r24,lo8(10) |
||
1186 | 1203 0a18 90E0 ldi r25,hi8(10) |
||
1187 | 1204 0a1a 0E94 0000 call SetParamByte |
||
1188 | 1205 0a1e 8091 0000 lds r24,FlugMinutenGesamt |
||
1189 | 1206 0a22 9091 0000 lds r25,(FlugMinutenGesamt)+1 |
||
1190 | 1207 0a26 9070 andi r25,hi8(255) |
||
1191 | 1208 0a28 682F mov r22,r24 |
||
1192 | 1209 0a2a 8BE0 ldi r24,lo8(11) |
||
1193 | 1210 0a2c 90E0 ldi r25,hi8(11) |
||
1194 | 1211 0a2e 0E94 0000 call SetParamByte |
||
1195 | 1212 0a32 84E1 ldi r24,lo8(20) |
||
1196 | 1213 0a34 90E0 ldi r25,hi8(20) |
||
1197 | 1214 0a36 0E94 0000 call SetDelay |
||
1198 | 1215 0a3a 7C01 movw r14,r24 |
||
1199 | 1216 .L99: |
||
1200 | 1217 0a3c 0E94 0000 call LED_Update |
||
1201 | 1218 0a40 0E94 0000 call Capacity_Update |
||
1202 | 1219 .L79: |
||
1203 | 1220 0a44 8091 0000 lds r24,SendSPI |
||
1204 | 1221 0a48 8823 tst r24 |
||
1205 | 1222 0a4a 01F0 breq .+2 |
||
1206 | 1223 0a4c 00C0 rjmp .L247 |
||
1207 | 1224 0a4e 0E94 0000 call SPI_TransmitByte |
||
1208 | 1225 0a52 00C0 rjmp .L247 |
||
1209 | 1226 /* epilogue: frame size=0 */ |
||
1210 | 1227 /* epilogue: noreturn */ |
||
1211 | 1228 /* epilogue end (size=0) */ |
||
1212 | 1229 /* function main size 1124 (1120) */ |
||
1213 | 1231 .comm _printf_P,2,1 |
||
1214 | 1232 /* File "main.c": code 1335 = 0x0537 (1322), prologues 7, epilogues 6 */ |
||
1215 | DEFINED SYMBOLS |
||
1216 | *ABS*:00000000 main.c |
||
1217 | C:\Temp/ccGRXg4e.s:3 *ABS*:0000003f __SREG__ |
||
1218 | C:\Temp/ccGRXg4e.s:4 *ABS*:0000003e __SP_H__ |
||
1219 | C:\Temp/ccGRXg4e.s:5 *ABS*:0000003d __SP_L__ |
||
1220 | C:\Temp/ccGRXg4e.s:6 *ABS*:00000000 __tmp_reg__ |
||
1221 | C:\Temp/ccGRXg4e.s:7 *ABS*:00000001 __zero_reg__ |
||
1222 | C:\Temp/ccGRXg4e.s:15 .bss:00000000 JetiBeep |
||
1223 | C:\Temp/ccGRXg4e.s:21 .bss:00000001 FoundMotors |
||
1224 | C:\Temp/ccGRXg4e.s:27 .bss:00000002 FlugSekunden |
||
1225 | C:\Temp/ccGRXg4e.s:33 .bss:00000004 FlugMinutenGesamt |
||
1226 | C:\Temp/ccGRXg4e.s:39 .bss:00000006 FlugMinuten |
||
1227 | C:\Temp/ccGRXg4e.s:45 .data:00000000 BattLowVoltageWarning |
||
1228 | C:\Temp/ccGRXg4e.s:50 .data:00000001 PlatinenVersion |
||
1229 | C:\Temp/ccGRXg4e.s:57 .bss:00000008 DisableRcOffBeeping |
||
1230 | C:\Temp/ccGRXg4e.s:62 .progmem.data:00000000 __c.11 |
||
1231 | C:\Temp/ccGRXg4e.s:67 .text:00000000 PrintLine |
||
1232 | *COM*:00000002 _printf_P |
||
1233 | C:\Temp/ccGRXg4e.s:93 .data:00000002 stick.10 |
||
1234 | C:\Temp/ccGRXg4e.s:98 .text:00000024 CalMk3Mag |
||
1235 | C:\Temp/ccGRXg4e.s:152 .progmem.data:00000026 __c.7 |
||
1236 | C:\Temp/ccGRXg4e.s:156 .progmem.data:0000002e __c.8 |
||
1237 | C:\Temp/ccGRXg4e.s:160 .progmem.data:00000039 __c.9 |
||
1238 | C:\Temp/ccGRXg4e.s:165 .text:0000008e LipoDetection |
||
1239 | C:\Temp/ccGRXg4e.s:302 .progmem.data:0000004d __c.0 |
||
1240 | C:\Temp/ccGRXg4e.s:306 .progmem.data:0000005f __c.1 |
||
1241 | C:\Temp/ccGRXg4e.s:310 .progmem.data:00000062 __c.2 |
||
1242 | C:\Temp/ccGRXg4e.s:314 .progmem.data:00000080 __c.3 |
||
1243 | C:\Temp/ccGRXg4e.s:318 .progmem.data:000000a0 __c.4 |
||
1244 | C:\Temp/ccGRXg4e.s:322 .progmem.data:000000a5 __c.5 |
||
1245 | .bss:00000009 second.6 |
||
1246 | C:\Temp/ccGRXg4e.s:328 .text:000001a2 main |
||
1247 | |||
1248 | UNDEFINED SYMBOLS |
||
1249 | __do_copy_data |
||
1250 | __do_clear_bss |
||
1251 | uart_putchar |
||
1252 | EE_Parameter |
||
1253 | PPM_in |
||
1254 | WinkelOut |
||
1255 | beeptime |
||
1256 | Piep |
||
1257 | DebugOut |
||
1258 | SetDelay |
||
1259 | CheckDelay |
||
1260 | UBat |
||
1261 | __udivmodqi4 |
||
1262 | __stack |
||
1263 | StickGier |
||
1264 | StickRoll |
||
1265 | StickNick |
||
1266 | GIER_GRAD_FAKTOR |
||
1267 | Timer_Init |
||
1268 | TIMER2_Init |
||
1269 | UART_Init |
||
1270 | rc_sum_init |
||
1271 | ADC_Init |
||
1272 | I2C_Init |
||
1273 | SPI_MasterInit |
||
1274 | Capacity_Init |
||
1275 | LIBFC_Init |
||
1276 | ParamSet_Init |
||
1277 | BLFlags |
||
1278 | motor_read |
||
1279 | SendMotorData |
||
1280 | Motor |
||
1281 | Mixer |
||
1282 | ServoActive |
||
1283 | RequiredMotors |
||
1284 | VersionInfo |
||
1285 | SucheLuftruckOffset |
||
1286 | SetNeutral |
||
1287 | ExternControl |
||
1288 | GetParamByte |
||
1289 | LcdClear |
||
1290 | I2CTimeout |
||
1291 | LIBFC_ReceiverInit |
||
1292 | ReceiverUpdateModeActive |
||
1293 | UpdateMotor |
||
1294 | AdReady |
||
1295 | MotorRegler |
||
1296 | SenderOkay |
||
1297 | MissingMotor |
||
1298 | I2C_Reset |
||
1299 | BeepMuster |
||
1300 | MotorenEin |
||
1301 | LIBFC_Polling |
||
1302 | NewSBusData |
||
1303 | ProcessSBus |
||
1304 | CalculateServoSignals |
||
1305 | CalculateServo |
||
1306 | DatenUebertragung |
||
1307 | BearbeiteRxDaten |
||
1308 | CalcNickServoValue |
||
1309 | HoTT_Menu |
||
1310 | BuildJeti_Vario |
||
1311 | PcZugriff |
||
1312 | ExternStickNick |
||
1313 | ExternStickRoll |
||
1314 | ExternStickGier |
||
1315 | NaviDataOkay |
||
1316 | NC_Version |
||
1317 | NC_ErrorCode |
||
1318 | GPS_Nick |
||
1319 | GPS_Roll |
||
1320 | GPS_Aid_StickMultiplikator |
||
1321 | GPSInfo |
||
1322 | FromNaviCtrl |
||
1323 | FC_StatusFlags |
||
1324 | SPI_StartTransmitPacket |
||
1325 | SendSPI |
||
1326 | StartLuftdruck |
||
1327 | Luftdruck |
||
1328 | SetParamByte |
||
1329 | LED_Update |
||
1330 | Capacity_Update |
||
1331 | SPI_TransmitByte |