Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
21 | user | 1 | 1 .file "main.c" |
2 | 2 .arch atmega644 |
||
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 .text |
||
11 | 11 .global GetActiveParamSetNumber |
||
12 | 13 GetActiveParamSetNumber: |
||
13 | 14 /* prologue: frame size=0 */ |
||
14 | 15 /* prologue end (size=0) */ |
||
15 | 16 0000 A0E0 ldi r26,lo8(EEPromArray+2) |
||
16 | 17 0002 B0E0 ldi r27,hi8(EEPromArray+2) |
||
17 | 18 /* #APP */ |
||
18 | 19 0004 0E94 0000 call __eeprom_read_byte_1F2021 |
||
19 | 20 0008 802D mov r24,__tmp_reg__ |
||
20 | 21 /* #NOAPP */ |
||
21 | 22 000a 9927 clr r25 |
||
22 | 23 /* epilogue: frame size=0 */ |
||
23 | 24 000c 0895 ret |
||
24 | 25 /* epilogue end (size=1) */ |
||
25 | 26 /* function GetActiveParamSetNumber size 8 (7) */ |
||
26 | 28 .global WriteParameterSet |
||
27 | 30 WriteParameterSet: |
||
28 | 31 /* prologue: frame size=0 */ |
||
29 | 32 /* prologue end (size=0) */ |
||
30 | 33 000e FB01 movw r30,r22 |
||
31 | 34 0010 282F mov r18,r24 |
||
32 | 35 0012 8630 cpi r24,lo8(6) |
||
33 | 36 0014 00F0 brlo .L4 |
||
34 | 37 0016 25E0 ldi r18,lo8(5) |
||
35 | 38 .L4: |
||
36 | 39 0018 842F mov r24,r20 |
||
37 | 40 001a 9927 clr r25 |
||
38 | 41 001c 429F mul r20,r18 |
||
39 | 42 001e D001 movw r26,r0 |
||
40 | 43 0020 1124 clr r1 |
||
41 | 44 0022 A050 subi r26,lo8(-(EEPromArray+100)) |
||
42 | 45 0024 B040 sbci r27,hi8(-(EEPromArray+100)) |
||
43 | 46 /* #APP */ |
||
44 | 47 .26_start: |
||
45 | 48 0026 0197 sbiw r24,1 |
||
46 | 49 0028 04F0 brlt .26_finished |
||
47 | 50 002a 0190 ld __tmp_reg__,z+ |
||
48 | 51 002c 0E94 0000 call __eeprom_write_byte_1F2021 |
||
49 | 52 0030 00C0 rjmp .26_start |
||
50 | 53 .26_finished: |
||
51 | 54 /* #NOAPP */ |
||
52 | 55 0032 A0E0 ldi r26,lo8(EEPromArray+2) |
||
53 | 56 0034 B0E0 ldi r27,hi8(EEPromArray+2) |
||
54 | 57 /* #APP */ |
||
55 | 58 0036 022E mov __tmp_reg__,r18 |
||
56 | 59 0038 0E94 0000 call __eeprom_write_byte_1F2021 |
||
57 | 60 /* #NOAPP */ |
||
58 | 61 /* epilogue: frame size=0 */ |
||
59 | 62 003c 0895 ret |
||
60 | 63 /* epilogue end (size=1) */ |
||
61 | 64 /* function WriteParameterSet size 33 (32) */ |
||
62 | 66 .global ReadParameterSet |
||
63 | 68 ReadParameterSet: |
||
64 | 69 /* prologue: frame size=0 */ |
||
65 | 70 003e CF93 push r28 |
||
66 | 71 0040 DF93 push r29 |
||
67 | 72 /* prologue end (size=2) */ |
||
68 | 73 0042 FB01 movw r30,r22 |
||
69 | 74 0044 C42F mov r28,r20 |
||
70 | 75 0046 DD27 clr r29 |
||
71 | 76 0048 8630 cpi r24,lo8(6) |
||
72 | 77 004a 00F0 brlo .L7 |
||
73 | 78 004c 85E0 ldi r24,lo8(5) |
||
74 | 79 .L7: |
||
75 | 80 004e 489F mul r20,r24 |
||
76 | 81 0050 D001 movw r26,r0 |
||
77 | 82 0052 1124 clr r1 |
||
78 | 83 0054 A050 subi r26,lo8(-(EEPromArray+100)) |
||
79 | 84 0056 B040 sbci r27,hi8(-(EEPromArray+100)) |
||
80 | 85 /* #APP */ |
||
81 | 86 .44_start: |
||
82 | 87 0058 2197 sbiw r28,1 |
||
83 | 88 005a 04F0 brlt .44_finished |
||
84 | 89 005c 0E94 0000 call __eeprom_read_byte_1F2021 |
||
85 | 90 0060 0192 st z+,__tmp_reg__ |
||
86 | 91 0062 00C0 rjmp .44_start |
||
87 | 92 .44_finished: |
||
88 | 93 /* #NOAPP */ |
||
89 | 94 /* epilogue: frame size=0 */ |
||
90 | 95 0064 DF91 pop r29 |
||
91 | 96 0066 CF91 pop r28 |
||
92 | 97 0068 0895 ret |
||
93 | 98 /* epilogue end (size=3) */ |
||
94 | 99 /* function ReadParameterSet size 30 (25) */ |
||
95 | 101 .global main |
||
96 | 103 main: |
||
97 | 104 /* prologue: frame size=0 */ |
||
98 | 105 006a 0F93 push r16 |
||
99 | 106 006c 1F93 push r17 |
||
100 | 107 006e CF93 push r28 |
||
101 | 108 0070 DF93 push r29 |
||
102 | 109 /* prologue end (size=4) */ |
||
103 | 110 0072 91E0 ldi r25,lo8(1) |
||
104 | 111 0074 97B9 out 39-0x20,r25 |
||
105 | 112 0076 8FEF ldi r24,lo8(-1) |
||
106 | 113 0078 88B9 out 40-0x20,r24 |
||
107 | 114 007a 8BE1 ldi r24,lo8(27) |
||
108 | 115 007c 84B9 out 36-0x20,r24 |
||
109 | 116 007e 95B9 out 37-0x20,r25 |
||
110 | 117 0080 8EE3 ldi r24,lo8(62) |
||
111 | 118 0082 8AB9 out 42-0x20,r24 |
||
112 | 119 0084 579A sbi 42-0x20,7 |
||
113 | 120 0086 87EF ldi r24,lo8(-9) |
||
114 | 121 0088 8BB9 out 43-0x20,r24 |
||
115 | 122 008a 84B7 in r24,84-0x20 |
||
116 | 123 008c 877F andi r24,lo8(-9) |
||
117 | 124 008e 84BF out 84-0x20,r24 |
||
118 | 125 0090 8091 6000 lds r24,96 |
||
119 | 126 0094 8861 ori r24,lo8(24) |
||
120 | 127 0096 8093 6000 sts 96,r24 |
||
121 | 128 009a 1092 6000 sts 96,__zero_reg__ |
||
122 | 129 009e 80ED ldi r24,lo8(2000) |
||
123 | 130 00a0 97E0 ldi r25,hi8(2000) |
||
124 | 131 00a2 9093 0000 sts (beeptime)+1,r25 |
||
125 | 132 00a6 8093 0000 sts beeptime,r24 |
||
126 | 133 00aa 1092 0000 sts (StickGier)+1,__zero_reg__ |
||
127 | 134 00ae 1092 0000 sts StickGier,__zero_reg__ |
||
128 | 135 00b2 1092 0000 sts (PPM_in+4)+1,__zero_reg__ |
||
129 | 136 00b6 1092 0000 sts PPM_in+4,__zero_reg__ |
||
130 | 137 00ba 1092 0000 sts (StickRoll)+1,__zero_reg__ |
||
131 | 138 00be 1092 0000 sts StickRoll,__zero_reg__ |
||
132 | 139 00c2 1092 0000 sts (StickNick)+1,__zero_reg__ |
||
133 | 140 00c6 1092 0000 sts StickNick,__zero_reg__ |
||
134 | 141 00ca 2898 cbi 37-0x20,0 |
||
135 | 142 00cc 0E94 0000 call Timer_Init |
||
136 | 143 00d0 0E94 0000 call UART_Init |
||
137 | 144 00d4 0E94 0000 call rc_sum_init |
||
138 | 145 00d8 0E94 0000 call ADC_Init |
||
139 | 146 00dc 0E94 0000 call i2c_init |
||
140 | 147 /* #APP */ |
||
141 | 148 00e0 7894 sei |
||
142 | 149 /* #NOAPP */ |
||
143 | 150 00e2 1092 0000 sts VersionInfo,__zero_reg__ |
||
144 | 151 00e6 8CE3 ldi r24,lo8(60) |
||
145 | 152 00e8 8093 0000 sts VersionInfo+1,r24 |
||
146 | 153 00ec 84E0 ldi r24,lo8(4) |
||
147 | 154 00ee 8093 0000 sts VersionInfo+2,r24 |
||
148 | 155 00f2 8CE3 ldi r24,lo8(60) |
||
149 | 156 00f4 90E0 ldi r25,hi8(60) |
||
150 | 157 00f6 9F93 push r25 |
||
151 | 158 00f8 8F93 push r24 |
||
152 | 159 00fa 1F92 push __zero_reg__ |
||
153 | 160 00fc 1F92 push __zero_reg__ |
||
154 | 161 00fe 80E0 ldi r24,lo8(__c.1992) |
||
155 | 162 0100 90E0 ldi r25,hi8(__c.1992) |
||
156 | 163 0102 9F93 push r25 |
||
157 | 164 0104 8F93 push r24 |
||
158 | 165 0106 1F92 push __zero_reg__ |
||
159 | 166 0108 0E94 0000 call _printf_P |
||
160 | 167 010c 80E0 ldi r24,lo8(__c.1994) |
||
161 | 168 010e 90E0 ldi r25,hi8(__c.1994) |
||
162 | 169 0110 9F93 push r25 |
||
163 | 170 0112 8F93 push r24 |
||
164 | 171 0114 1F92 push __zero_reg__ |
||
165 | 172 0116 0E94 0000 call _printf_P |
||
166 | 173 011a 299A sbi 37-0x20,1 |
||
167 | 174 011c A0E0 ldi r26,lo8(EEPromArray+1) |
||
168 | 175 011e B0E0 ldi r27,hi8(EEPromArray+1) |
||
169 | 176 /* #APP */ |
||
170 | 177 0120 0E94 0000 call __eeprom_read_byte_1F2021 |
||
171 | 178 0124 802D mov r24,__tmp_reg__ |
||
172 | 179 /* #NOAPP */ |
||
173 | 180 0126 2DB7 in r18,__SP_L__ |
||
174 | 181 0128 3EB7 in r19,__SP_H__ |
||
175 | 182 012a 265F subi r18,lo8(-(10)) |
||
176 | 183 012c 3F4F sbci r19,hi8(-(10)) |
||
177 | 184 012e 0FB6 in __tmp_reg__,__SREG__ |
||
178 | 185 0130 F894 cli |
||
179 | 186 0132 3EBF out __SP_H__,r19 |
||
180 | 187 0134 0FBE out __SREG__,__tmp_reg__ |
||
181 | 188 0136 2DBF out __SP_L__,r18 |
||
182 | 189 0138 8B33 cpi r24,lo8(59) |
||
183 | 190 013a 01F0 breq .L10 |
||
184 | 191 013c 80E0 ldi r24,lo8(__c.1996) |
||
185 | 192 013e 90E0 ldi r25,hi8(__c.1996) |
||
186 | 193 0140 9F93 push r25 |
||
187 | 194 0142 8F93 push r24 |
||
188 | 195 0144 1F92 push __zero_reg__ |
||
189 | 196 0146 0E94 0000 call _printf_P |
||
190 | 197 014a 0E94 0000 call DefaultKonstanten1 |
||
191 | 198 014e 4AE3 ldi r20,lo8(58) |
||
192 | 199 0150 60E0 ldi r22,lo8(EE_Parameter) |
||
193 | 200 0152 70E0 ldi r23,hi8(EE_Parameter) |
||
194 | 201 0154 80E0 ldi r24,lo8(0) |
||
195 | 202 0156 0E94 0000 call WriteParameterSet |
||
196 | 203 015a 01E0 ldi r16,lo8(1) |
||
197 | 204 015c 0F90 pop __tmp_reg__ |
||
198 | 205 015e 0F90 pop __tmp_reg__ |
||
199 | 206 0160 0F90 pop __tmp_reg__ |
||
200 | 207 .L12: |
||
201 | 208 0162 0230 cpi r16,lo8(2) |
||
202 | 209 0164 01F4 brne .L13 |
||
203 | 210 0166 0E94 0000 call DefaultKonstanten2 |
||
204 | 211 016a 4AE3 ldi r20,lo8(58) |
||
205 | 212 016c 60E0 ldi r22,lo8(EE_Parameter) |
||
206 | 213 016e 70E0 ldi r23,hi8(EE_Parameter) |
||
207 | 214 0170 82E0 ldi r24,lo8(2) |
||
208 | 215 0172 0E94 0000 call WriteParameterSet |
||
209 | 216 0176 03E0 ldi r16,lo8(3) |
||
210 | 217 .L13: |
||
211 | 218 0178 4AE3 ldi r20,lo8(58) |
||
212 | 219 017a 60E0 ldi r22,lo8(EE_Parameter) |
||
213 | 220 017c 70E0 ldi r23,hi8(EE_Parameter) |
||
214 | 221 017e 802F mov r24,r16 |
||
215 | 222 0180 0E94 0000 call WriteParameterSet |
||
216 | 223 0184 0F5F subi r16,lo8(-(1)) |
||
217 | 224 0186 0630 cpi r16,lo8(6) |
||
218 | 225 0188 00F0 brlo .L12 |
||
219 | 226 018a 81E0 ldi r24,lo8(1) |
||
220 | 227 018c 20E0 ldi r18,lo8(EEPromArray+2) |
||
221 | 228 018e 30E0 ldi r19,hi8(EEPromArray+2) |
||
222 | 229 0190 D901 movw r26,r18 |
||
223 | 230 /* #APP */ |
||
224 | 231 0192 082E mov __tmp_reg__,r24 |
||
225 | 232 0194 0E94 0000 call __eeprom_write_byte_1F2021 |
||
226 | 233 /* #NOAPP */ |
||
227 | 234 0198 8BE3 ldi r24,lo8(59) |
||
228 | 235 019a 2150 subi r18,lo8(-(-1)) |
||
229 | 236 019c 3040 sbci r19,hi8(-(-1)) |
||
230 | 237 019e D901 movw r26,r18 |
||
231 | 238 /* #APP */ |
||
232 | 239 01a0 082E mov __tmp_reg__,r24 |
||
233 | 240 01a2 0E94 0000 call __eeprom_write_byte_1F2021 |
||
234 | 241 /* #NOAPP */ |
||
235 | 242 .L10: |
||
236 | 243 01a6 00E0 ldi r16,lo8(EEPromArray+2) |
||
237 | 244 01a8 10E0 ldi r17,hi8(EEPromArray+2) |
||
238 | 245 01aa D801 movw r26,r16 |
||
239 | 246 /* #APP */ |
||
240 | 247 01ac 0E94 0000 call __eeprom_read_byte_1F2021 |
||
241 | 248 01b0 802D mov r24,__tmp_reg__ |
||
242 | 249 /* #NOAPP */ |
||
243 | 250 01b2 4AE3 ldi r20,lo8(58) |
||
244 | 251 01b4 60E0 ldi r22,lo8(EE_Parameter) |
||
245 | 252 01b6 70E0 ldi r23,hi8(EE_Parameter) |
||
246 | 253 01b8 0E94 0000 call ReadParameterSet |
||
247 | 254 01bc D801 movw r26,r16 |
||
248 | 255 /* #APP */ |
||
249 | 256 01be 0E94 0000 call __eeprom_read_byte_1F2021 |
||
250 | 257 01c2 802D mov r24,__tmp_reg__ |
||
251 | 258 /* #NOAPP */ |
||
252 | 259 01c4 9927 clr r25 |
||
253 | 260 01c6 9F93 push r25 |
||
254 | 261 01c8 8F93 push r24 |
||
255 | 262 01ca 80E0 ldi r24,lo8(__c.2004) |
||
256 | 263 01cc 90E0 ldi r25,hi8(__c.2004) |
||
257 | 264 01ce 9F93 push r25 |
||
258 | 265 01d0 8F93 push r24 |
||
259 | 266 01d2 1F92 push __zero_reg__ |
||
260 | 267 01d4 0E94 0000 call _printf_P |
||
261 | 268 01d8 8091 0000 lds r24,EE_Parameter+8 |
||
262 | 269 01dc 0F90 pop __tmp_reg__ |
||
263 | 270 01de 0F90 pop __tmp_reg__ |
||
264 | 271 01e0 0F90 pop __tmp_reg__ |
||
265 | 272 01e2 0F90 pop __tmp_reg__ |
||
266 | 273 01e4 0F90 pop __tmp_reg__ |
||
267 | 274 01e6 80FF sbrs r24,0 |
||
268 | 275 01e8 00C0 rjmp .L16 |
||
269 | 276 01ea 80E0 ldi r24,lo8(__c.2006) |
||
270 | 277 01ec 90E0 ldi r25,hi8(__c.2006) |
||
271 | 278 01ee 9F93 push r25 |
||
272 | 279 01f0 8F93 push r24 |
||
273 | 280 01f2 1F92 push __zero_reg__ |
||
274 | 281 01f4 0E94 0000 call _printf_P |
||
275 | 282 01f8 84EC ldi r24,lo8(2500) |
||
276 | 283 01fa 99E0 ldi r25,hi8(2500) |
||
277 | 284 01fc 0E94 0000 call SetDelay |
||
278 | 285 0200 EC01 movw r28,r24 |
||
279 | 286 0202 0E94 0000 call SucheLuftruckOffset |
||
280 | 287 0206 0F90 pop __tmp_reg__ |
||
281 | 288 0208 0F90 pop __tmp_reg__ |
||
282 | 289 020a 0F90 pop __tmp_reg__ |
||
283 | 290 .L18: |
||
284 | 291 020c CE01 movw r24,r28 |
||
285 | 292 020e 0E94 0000 call CheckDelay |
||
286 | 293 0212 8823 tst r24 |
||
287 | 294 0214 01F0 breq .L18 |
||
288 | 295 0216 80E0 ldi r24,lo8(__c.2011) |
||
289 | 296 0218 90E0 ldi r25,hi8(__c.2011) |
||
290 | 297 021a 9F93 push r25 |
||
291 | 298 021c 8F93 push r24 |
||
292 | 299 021e 1F92 push __zero_reg__ |
||
293 | 300 0220 0E94 0000 call _printf_P |
||
294 | 301 0224 0F90 pop __tmp_reg__ |
||
295 | 302 0226 0F90 pop __tmp_reg__ |
||
296 | 303 0228 0F90 pop __tmp_reg__ |
||
297 | 304 .L16: |
||
298 | 305 022a 0E94 0000 call SetNeutral |
||
299 | 306 022e 2898 cbi 37-0x20,0 |
||
300 | 307 0230 80ED ldi r24,lo8(2000) |
||
301 | 308 0232 97E0 ldi r25,hi8(2000) |
||
302 | 309 0234 9093 0000 sts (beeptime)+1,r25 |
||
303 | 310 0238 8093 0000 sts beeptime,r24 |
||
304 | 311 023c 88EE ldi r24,lo8(1000) |
||
305 | 312 023e 93E0 ldi r25,hi8(1000) |
||
306 | 313 0240 9093 0000 sts (DebugIn+5)+1,r25 |
||
307 | 314 0244 8093 0000 sts DebugIn+5,r24 |
||
308 | 315 0248 85E5 ldi r24,lo8(85) |
||
309 | 316 024a 8093 0000 sts DebugIn,r24 |
||
310 | 317 024e 80E0 ldi r24,lo8(__c.2013) |
||
311 | 318 0250 90E0 ldi r25,hi8(__c.2013) |
||
312 | 319 0252 9F93 push r25 |
||
313 | 320 0254 8F93 push r24 |
||
314 | 321 0256 1F92 push __zero_reg__ |
||
315 | 322 0258 0E94 0000 call _printf_P |
||
316 | 323 025c 8091 0000 lds r24,EE_Parameter+8 |
||
317 | 324 0260 0F90 pop __tmp_reg__ |
||
318 | 325 0262 0F90 pop __tmp_reg__ |
||
319 | 326 0264 0F90 pop __tmp_reg__ |
||
320 | 327 0266 82FF sbrs r24,2 |
||
321 | 328 0268 00C0 rjmp .L20 |
||
322 | 329 026a 80E0 ldi r24,lo8(__c.2015) |
||
323 | 330 026c 90E0 ldi r25,hi8(__c.2015) |
||
324 | 331 026e 00C0 rjmp .L48 |
||
325 | 332 .L20: |
||
326 | 333 0270 80E0 ldi r24,lo8(__c.2017) |
||
327 | 334 0272 90E0 ldi r25,hi8(__c.2017) |
||
328 | 335 .L48: |
||
329 | 336 0274 9F93 push r25 |
||
330 | 337 0276 8F93 push r24 |
||
331 | 338 0278 1F92 push __zero_reg__ |
||
332 | 339 027a 0E94 0000 call _printf_P |
||
333 | 340 027e 0F90 pop __tmp_reg__ |
||
334 | 341 0280 0F90 pop __tmp_reg__ |
||
335 | 342 0282 0F90 pop __tmp_reg__ |
||
336 | 343 0284 80E0 ldi r24,lo8(__c.2019) |
||
337 | 344 0286 90E0 ldi r25,hi8(__c.2019) |
||
338 | 345 0288 9F93 push r25 |
||
339 | 346 028a 8F93 push r24 |
||
340 | 347 028c 1F92 push __zero_reg__ |
||
341 | 348 028e 0E94 0000 call _printf_P |
||
342 | 349 0292 0E94 0000 call LcdClear |
||
343 | 350 0296 0F90 pop __tmp_reg__ |
||
344 | 351 0298 0F90 pop __tmp_reg__ |
||
345 | 352 029a 0F90 pop __tmp_reg__ |
||
346 | 353 .L49: |
||
347 | 354 029c 8091 0000 lds r24,UpdateMotor |
||
348 | 355 02a0 8823 tst r24 |
||
349 | 356 02a2 01F0 breq .L24 |
||
350 | 357 02a4 1092 0000 sts UpdateMotor,__zero_reg__ |
||
351 | 358 02a8 0E94 0000 call MotorRegler |
||
352 | 359 02ac 0E94 0000 call SendMotorData |
||
353 | 360 02b0 2898 cbi 37-0x20,0 |
||
354 | 361 02b2 8091 0000 lds r24,PcZugriff |
||
355 | 362 02b6 8823 tst r24 |
||
356 | 363 02b8 01F0 breq .L26 |
||
357 | 364 02ba 8150 subi r24,lo8(-(-1)) |
||
358 | 365 02bc 8093 0000 sts PcZugriff,r24 |
||
359 | 366 .L26: |
||
360 | 367 02c0 8091 0000 lds r24,SenderOkay |
||
361 | 368 02c4 8823 tst r24 |
||
362 | 369 02c6 01F0 breq .L28 |
||
363 | 370 02c8 8091 0000 lds r24,SenderOkay |
||
364 | 371 02cc 8150 subi r24,lo8(-(-1)) |
||
365 | 372 02ce 8093 0000 sts SenderOkay,r24 |
||
366 | 373 .L28: |
||
367 | 374 02d2 2091 0000 lds r18,UBat |
||
368 | 375 02d6 3091 0000 lds r19,(UBat)+1 |
||
369 | 376 02da 8091 0000 lds r24,EE_Parameter+24 |
||
370 | 377 02de 9927 clr r25 |
||
371 | 378 02e0 2817 cp r18,r24 |
||
372 | 379 02e2 3907 cpc r19,r25 |
||
373 | 380 02e4 04F4 brge .L30 |
||
374 | 381 02e6 80ED ldi r24,lo8(2000) |
||
375 | 382 02e8 97E0 ldi r25,hi8(2000) |
||
376 | 383 02ea 9093 0000 sts (beeptime)+1,r25 |
||
377 | 384 02ee 8093 0000 sts beeptime,r24 |
||
378 | 385 .L30: |
||
379 | 386 02f2 8091 0000 lds r24,Timeout |
||
380 | 387 02f6 8823 tst r24 |
||
381 | 388 02f8 01F4 brne .L32 |
||
382 | 389 02fa 0E94 0000 call i2c_init |
||
383 | 390 02fe 00C0 rjmp .L24 |
||
384 | 391 .L32: |
||
385 | 392 0300 2898 cbi 37-0x20,0 |
||
386 | 393 .L24: |
||
387 | 394 0302 0E94 0000 call DatenUebertragung |
||
388 | 395 0306 0E94 0000 call BearbeiteRxDaten |
||
389 | 396 030a 80E0 ldi r24,lo8(0) |
||
390 | 397 030c 90E0 ldi r25,hi8(0) |
||
391 | 398 030e 0E94 0000 call CheckDelay |
||
392 | 399 0312 8823 tst r24 |
||
393 | 400 0314 01F0 breq .L49 |
||
394 | 401 0316 8091 0000 lds r24,MotorenEin |
||
395 | 402 031a 8823 tst r24 |
||
396 | 403 031c 01F0 breq .L35 |
||
397 | 404 031e 88B1 in r24,40-0x20 |
||
398 | 405 0320 90E1 ldi r25,lo8(16) |
||
399 | 406 0322 8927 eor r24,r25 |
||
400 | 407 0324 88B9 out 40-0x20,r24 |
||
401 | 408 0326 00C0 rjmp .L37 |
||
402 | 409 .L35: |
||
403 | 410 0328 4498 cbi 40-0x20,4 |
||
404 | 411 .L37: |
||
405 | 412 032a 84EF ldi r24,lo8(500) |
||
406 | 413 032c 91E0 ldi r25,hi8(500) |
||
407 | 414 032e 0E94 0000 call SetDelay |
||
408 | 415 0332 00C0 rjmp .L49 |
||
409 | 416 /* epilogue: frame size=0 */ |
||
410 | 417 /* epilogue: noreturn */ |
||
411 | 418 /* epilogue end (size=0) */ |
||
412 | 419 /* function main size 363 (359) */ |
||
413 | 421 .section .progmem.data,"a",@progbits |
||
414 | 424 __c.2019: |
||
415 | 425 0000 0A0A 0D00 .string "\n\n\r" |
||
416 | 428 __c.2017: |
||
417 | 429 0004 4E65 7574 .string "Neutral" |
||
418 | 429 7261 6C00 |
||
419 | 432 __c.2015: |
||
420 | 433 000c 4865 6164 .string "HeadingHold" |
||
421 | 433 696E 6748 |
||
422 | 433 6F6C 6400 |
||
423 | 436 __c.2013: |
||
424 | 437 0018 0A0D 5374 .string "\n\rSteuerung: " |
||
425 | 437 6575 6572 |
||
426 | 437 756E 673A |
||
427 | 437 2000 |
||
428 | 440 __c.2011: |
||
429 | 441 0026 4F4B 0A0D .string "OK\n\r" |
||
430 | 441 00 |
||
431 | 444 __c.2006: |
||
432 | 445 002b 0A0D 4162 .string "\n\rAbgleich Luftdrucksensor.." |
||
433 | 445 676C 6569 |
||
434 | 445 6368 204C |
||
435 | 445 7566 7464 |
||
436 | 445 7275 636B |
||
437 | 448 __c.2004: |
||
438 | 449 0048 0A0D 4265 .string "\n\rBenutze Parametersatz %d" |
||
439 | 449 6E75 747A |
||
440 | 449 6520 5061 |
||
441 | 449 7261 6D65 |
||
442 | 449 7465 7273 |
||
443 | 452 __c.1996: |
||
444 | 453 0063 0A0D 496E .string "\n\rInit. EEPROM: Generiere Default-Parameter..." |
||
445 | 453 6974 2E20 |
||
446 | 453 4545 5052 |
||
447 | 453 4F4D 3A20 |
||
448 | 453 4765 6E65 |
||
449 | 456 __c.1994: |
||
450 | 457 0092 0A0D 3D3D .string "\n\r==============================" |
||
451 | 457 3D3D 3D3D |
||
452 | 457 3D3D 3D3D |
||
453 | 457 3D3D 3D3D |
||
454 | 457 3D3D 3D3D |
||
455 | 460 __c.1992: |
||
456 | 461 00b3 0A0D 466C .string "\n\rFlightControl V%d.%d " |
||
457 | 461 6967 6874 |
||
458 | 461 436F 6E74 |
||
459 | 461 726F 6C20 |
||
460 | 461 5625 642E |
||
461 | 462 .comm DiffNick,2,1 |
||
462 | 463 .comm DiffRoll,2,1 |
||
463 | 464 .comm SenderOkay,1,1 |
||
464 | 465 .comm CosinusNickWinkel,1,1 |
||
465 | 466 .comm CosinusRollWinkel,1,1 |
||
466 | 467 .global EEPromArray |
||
467 | 468 .section .eeprom,"aw",@progbits |
||
468 | 471 EEPromArray: |
||
469 | 472 0000 0000 0000 .skip 2048,0 |
||
470 | 472 0000 0000 |
||
471 | 472 0000 0000 |
||
472 | 472 0000 0000 |
||
473 | 472 0000 0000 |
||
474 | 473 .comm durchschnitt_northing,4,1 |
||
475 | 474 .comm durchschnitt_easting,4,1 |
||
476 | 475 .comm gps_p,2,1 |
||
477 | 476 .comm gps_d,2,1 |
||
478 | 477 .comm skal,2,1 |
||
479 | 478 .comm RemoteTasten,1,1 |
||
480 | 479 .comm Timeout,1,1 |
||
481 | 480 .comm IntegralNick,4,1 |
||
482 | 481 .comm IntegralNick2,4,1 |
||
483 | 482 .comm IntegralRoll,4,1 |
||
484 | 483 .comm IntegralRoll2,4,1 |
||
485 | 484 .comm Mess_IntegralNick,4,1 |
||
486 | 485 .comm Mess_IntegralNick2,4,1 |
||
487 | 486 .comm Mess_IntegralRoll,4,1 |
||
488 | 487 .comm Mess_IntegralRoll2,4,1 |
||
489 | 488 .comm Integral_Gier,4,1 |
||
490 | 489 .comm Mess_Integral_Gier,4,1 |
||
491 | 490 .comm h,1,1 |
||
492 | 491 .comm m,1,1 |
||
493 | 492 .comm s,1,1 |
||
494 | 493 .comm Motor_Vorne,1,1 |
||
495 | 494 .comm Motor_Hinten,1,1 |
||
496 | 495 .comm Motor_Rechts,1,1 |
||
497 | 496 .comm Motor_Links,1,1 |
||
498 | 497 .comm Count,1,1 |
||
499 | 498 .comm MotorWert,5,1 |
||
500 | 499 .comm StickNick,2,1 |
||
501 | 500 .comm StickRoll,2,1 |
||
502 | 501 .comm StickGier,2,1 |
||
503 | 502 .comm MotorenEin,1,1 |
||
504 | 503 /* File "main.c": code 434 = 0x01b2 ( 423), prologues 6, epilogues 5 */ |
||
505 | DEFINED SYMBOLS |
||
506 | *ABS*:00000000 main.c |
||
507 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:3 *ABS*:0000003f __SREG__ |
||
508 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:4 *ABS*:0000003e __SP_H__ |
||
509 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:5 *ABS*:0000003d __SP_L__ |
||
510 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:6 *ABS*:00000000 __tmp_reg__ |
||
511 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:7 *ABS*:00000001 __zero_reg__ |
||
512 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:13 .text:00000000 GetActiveParamSetNumber |
||
513 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:471 .eeprom:00000000 EEPromArray |
||
514 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:30 .text:0000000e WriteParameterSet |
||
515 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:47 .text:00000026 .26_start |
||
516 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:53 .text:00000032 .26_finished |
||
517 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:68 .text:0000003e ReadParameterSet |
||
518 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:86 .text:00000058 .44_start |
||
519 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:92 .text:00000064 .44_finished |
||
520 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:103 .text:0000006a main |
||
521 | *COM*:00000002 StickGier |
||
522 | *COM*:00000002 StickRoll |
||
523 | *COM*:00000002 StickNick |
||
524 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:460 .progmem.data:000000b3 __c.1992 |
||
525 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:456 .progmem.data:00000092 __c.1994 |
||
526 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:452 .progmem.data:00000063 __c.1996 |
||
527 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:448 .progmem.data:00000048 __c.2004 |
||
528 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:444 .progmem.data:0000002b __c.2006 |
||
529 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:440 .progmem.data:00000026 __c.2011 |
||
530 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:436 .progmem.data:00000018 __c.2013 |
||
531 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:432 .progmem.data:0000000c __c.2015 |
||
532 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:428 .progmem.data:00000004 __c.2017 |
||
533 | C:\DOKUME~1\CHRIST~1\LOKALE~1\Temp/ccuwiT9T.s:424 .progmem.data:00000000 __c.2019 |
||
534 | *COM*:00000001 SenderOkay |
||
535 | *COM*:00000001 Timeout |
||
536 | *COM*:00000001 MotorenEin |
||
537 | *COM*:00000002 DiffNick |
||
538 | *COM*:00000002 DiffRoll |
||
539 | *COM*:00000001 CosinusNickWinkel |
||
540 | *COM*:00000001 CosinusRollWinkel |
||
541 | *COM*:00000004 durchschnitt_northing |
||
542 | *COM*:00000004 durchschnitt_easting |
||
543 | *COM*:00000002 gps_p |
||
544 | *COM*:00000002 gps_d |
||
545 | *COM*:00000002 skal |
||
546 | *COM*:00000001 RemoteTasten |
||
547 | *COM*:00000004 IntegralNick |
||
548 | *COM*:00000004 IntegralNick2 |
||
549 | *COM*:00000004 IntegralRoll |
||
550 | *COM*:00000004 IntegralRoll2 |
||
551 | *COM*:00000004 Mess_IntegralNick |
||
552 | *COM*:00000004 Mess_IntegralNick2 |
||
553 | *COM*:00000004 Mess_IntegralRoll |
||
554 | *COM*:00000004 Mess_IntegralRoll2 |
||
555 | *COM*:00000004 Integral_Gier |
||
556 | *COM*:00000004 Mess_Integral_Gier |
||
557 | *COM*:00000001 h |
||
558 | *COM*:00000001 m |
||
559 | *COM*:00000001 s |
||
560 | *COM*:00000001 Motor_Vorne |
||
561 | *COM*:00000001 Motor_Hinten |
||
562 | *COM*:00000001 Motor_Rechts |
||
563 | *COM*:00000001 Motor_Links |
||
564 | *COM*:00000001 Count |
||
565 | *COM*:00000005 MotorWert |
||
566 | |||
567 | UNDEFINED SYMBOLS |
||
568 | __do_copy_data |
||
569 | __do_clear_bss |
||
570 | __eeprom_read_byte_1F2021 |
||
571 | __eeprom_write_byte_1F2021 |
||
572 | beeptime |
||
573 | PPM_in |
||
574 | Timer_Init |
||
575 | UART_Init |
||
576 | rc_sum_init |
||
577 | ADC_Init |
||
578 | i2c_init |
||
579 | VersionInfo |
||
580 | _printf_P |
||
581 | DefaultKonstanten1 |
||
582 | EE_Parameter |
||
583 | DefaultKonstanten2 |
||
584 | SetDelay |
||
585 | SucheLuftruckOffset |
||
586 | CheckDelay |
||
587 | SetNeutral |
||
588 | DebugIn |
||
589 | LcdClear |
||
590 | UpdateMotor |
||
591 | MotorRegler |
||
592 | SendMotorData |
||
593 | PcZugriff |
||
594 | UBat |
||
595 | DatenUebertragung |
||
596 | BearbeiteRxDaten |