1 .file "Spektrum.c" 2 __SREG__ = 0x3f 3 __SP_H__ = 0x3e 4 __SP_L__ = 0x3d 5 __CCP__ = 0x34 6 __tmp_reg__ = 0 7 __zero_reg__ = 1 8 .text 9 .global SpektrumUartInit 11 SpektrumUartInit: 12 /* prologue: function */ 13 /* frame size = 0 */ 14 0000 9FB7 in r25,__SREG__ 15 /* #APP */ 16 ; 84 "Spektrum.c" 1 17 0002 F894 cli 18 ; 0 "" 2 19 /* #NOAPP */ 20 0004 8091 C900 lds r24,201 21 0008 8F77 andi r24,lo8(127) 22 000a 8093 C900 sts 201,r24 23 000e 8091 C900 lds r24,201 24 0012 8F7B andi r24,lo8(-65) 25 0014 8093 C900 sts 201,r24 26 0018 8091 C900 lds r24,201 27 001c 8F7D andi r24,lo8(-33) 28 001e 8093 C900 sts 201,r24 29 0022 5A9A sbi 43-32,2 30 0024 5298 cbi 42-32,2 31 0026 5B9A sbi 43-32,3 32 0028 539A sbi 42-32,3 33 002a 1092 CD00 sts 205,__zero_reg__ 34 002e 84E1 ldi r24,lo8(20) 35 0030 8093 CC00 sts 204,r24 36 0034 8091 C800 lds r24,200 37 0038 8260 ori r24,lo8(2) 38 003a 8093 C800 sts 200,r24 39 003e 80E1 ldi r24,lo8(16) 40 0040 8093 C900 sts 201,r24 41 0044 8091 CA00 lds r24,202 42 0048 8F77 andi r24,lo8(127) 43 004a 8093 CA00 sts 202,r24 44 004e 8091 CA00 lds r24,202 45 0052 8F7B andi r24,lo8(-65) 46 0054 8093 CA00 sts 202,r24 47 0058 8091 CA00 lds r24,202 48 005c 8F7D andi r24,lo8(-33) 49 005e 8093 CA00 sts 202,r24 50 0062 8091 CA00 lds r24,202 51 0066 8F7E andi r24,lo8(-17) 52 0068 8093 CA00 sts 202,r24 53 006c 8091 CA00 lds r24,202 54 0070 877F andi r24,lo8(-9) 55 0072 8093 CA00 sts 202,r24 56 0076 8091 C900 lds r24,201 57 007a 8B7F andi r24,lo8(-5) 58 007c 8093 C900 sts 201,r24 59 0080 8091 CA00 lds r24,202 60 0084 8460 ori r24,lo8(4) 61 0086 8093 CA00 sts 202,r24 62 008a 8091 CA00 lds r24,202 63 008e 8260 ori r24,lo8(2) 64 0090 8093 CA00 sts 202,r24 65 0094 00C0 rjmp .L2 66 .L3: 67 0096 8091 CE00 lds r24,206 68 .L2: 69 009a 8091 C800 lds r24,200 70 009e 87FD sbrc r24,7 71 00a0 00C0 rjmp .L3 72 00a2 8091 C900 lds r24,201 73 00a6 8068 ori r24,lo8(-128) 74 00a8 8093 C900 sts 201,r24 75 00ac 9FBF out __SREG__,r25 76 /* epilogue start */ 77 00ae 0895 ret 79 .global SpektrumParser 81 SpektrumParser: 82 00b0 0F93 push r16 83 00b2 1F93 push r17 84 00b4 CF93 push r28 85 00b6 DF93 push r29 86 /* prologue: function */ 87 /* frame size = 0 */ 88 00b8 982F mov r25,r24 89 00ba 8091 0000 lds r24,ReSync.2382 90 00be 8130 cpi r24,lo8(1) 91 00c0 01F4 brne .L6 92 00c2 1092 0000 sts ReSync.2382,__zero_reg__ 93 00c6 84E4 ldi r24,lo8(68) 94 00c8 8093 0000 sts SpektrumTimer,r24 95 00cc 1092 0000 sts FrameCnt.2380,__zero_reg__ 96 00d0 1092 0000 sts Sync.2379,__zero_reg__ 97 00d4 1092 0000 sts ByteHigh.2381,__zero_reg__ 98 00d8 00C0 rjmp .L27 99 .L6: 100 00da 20E0 ldi r18,lo8(0) 101 00dc 30E0 ldi r19,hi8(0) 102 00de 8091 0000 lds r24,SpektrumTimer 103 00e2 8823 tst r24 104 00e4 01F4 brne .L8 105 00e6 21E0 ldi r18,lo8(1) 106 00e8 30E0 ldi r19,hi8(1) 107 .L8: 108 00ea 8091 0000 lds r24,Sync.2379 109 00ee 8823 tst r24 110 00f0 01F4 brne .L9 111 00f2 232B or r18,r19 112 00f4 01F0 breq .L10 113 00f6 81E0 ldi r24,lo8(1) 114 00f8 00C0 rjmp .L31 115 .L10: 116 00fa 84E4 ldi r24,lo8(68) 117 00fc 8093 0000 sts SpektrumTimer,r24 118 0100 1092 0000 sts FrameCnt.2380,__zero_reg__ 119 0104 1092 0000 sts Sync.2379,__zero_reg__ 120 0108 1092 0000 sts ByteHigh.2381,__zero_reg__ 121 010c 00C0 rjmp .L11 122 .L9: 123 010e 8130 cpi r24,lo8(1) 124 0110 01F4 brne .L12 125 0112 232B or r18,r19 126 0114 01F0 breq .+2 127 0116 00C0 rjmp .L15 128 0118 82E0 ldi r24,lo8(2) 129 .L31: 130 011a 8093 0000 sts Sync.2379,r24 131 011e 8091 0000 lds r24,FrameCnt.2380 132 0122 8F5F subi r24,lo8(-(1)) 133 0124 8093 0000 sts FrameCnt.2380,r24 134 0128 83E0 ldi r24,lo8(3) 135 012a 00C0 rjmp .L30 136 .L12: 137 012c 8230 cpi r24,lo8(2) 138 012e 01F4 brne .L13 139 0130 232B or r18,r19 140 0132 01F0 breq .+2 141 0134 00C0 rjmp .L15 142 0136 83E0 ldi r24,lo8(3) 143 0138 8093 0000 sts SpektrumTimer,r24 144 013c 9093 0000 sts ByteHigh.2381,r25 145 0140 2091 0000 lds r18,FrameCnt.2380 146 0144 2230 cpi r18,lo8(2) 147 0146 01F4 brne .L14 148 0148 1092 0000 sts Frame2.2383,__zero_reg__ 149 014c 97FF sbrs r25,7 150 014e 00C0 rjmp .L14 151 0150 81E0 ldi r24,lo8(1) 152 0152 8093 0000 sts Frame2.2383,r24 153 .L14: 154 0156 83E0 ldi r24,lo8(3) 155 0158 8093 0000 sts Sync.2379,r24 156 015c 2F5F subi r18,lo8(-(1)) 157 015e 2093 0000 sts FrameCnt.2380,r18 158 0162 00C0 rjmp .L11 159 .L13: 160 0164 8330 cpi r24,lo8(3) 161 0166 01F0 breq .+2 162 0168 00C0 rjmp .L15 163 016a 232B or r18,r19 164 016c 01F0 breq .+2 165 016e 00C0 rjmp .L15 166 0170 8093 0000 sts SpektrumTimer,r24 167 0174 82E0 ldi r24,lo8(2) 168 0176 8093 0000 sts Sync.2379,r24 169 017a 8091 0000 lds r24,FrameCnt.2380 170 017e 8F5F subi r24,lo8(-(1)) 171 0180 8093 0000 sts FrameCnt.2380,r24 172 0184 4091 0000 lds r20,ByteHigh.2381 173 0188 292F mov r18,r25 174 018a 30E0 ldi r19,lo8(0) 175 018c 942F mov r25,r20 176 018e 80E0 ldi r24,lo8(0) 177 0190 282B or r18,r24 178 0192 392B or r19,r25 179 0194 8091 0000 lds r24,EE_Parameter+39 180 0198 8130 cpi r24,lo8(1) 181 019a 01F4 brne .L16 182 019c 3370 andi r19,hi8(1023) 183 019e C901 movw r24,r18 184 01a0 8050 subi r24,lo8(-(-512)) 185 01a2 9240 sbci r25,hi8(-(-512)) 186 01a4 63E0 ldi r22,lo8(3) 187 01a6 70E0 ldi r23,hi8(3) 188 01a8 00C0 rjmp .L28 189 .L16: 190 01aa 8230 cpi r24,lo8(2) 191 01ac 01F4 brne .L18 192 01ae 3770 andi r19,hi8(2047) 193 01b0 C901 movw r24,r18 194 01b2 8050 subi r24,lo8(-(-1024)) 195 01b4 9440 sbci r25,hi8(-(-1024)) 196 01b6 66E0 ldi r22,lo8(6) 197 01b8 70E0 ldi r23,hi8(6) 198 01ba 0E94 0000 call __divmodhi4 199 01be EB01 movw r28,r22 200 01c0 4695 lsr r20 201 01c2 4695 lsr r20 202 01c4 4695 lsr r20 203 01c6 00C0 rjmp .L29 204 .L18: 205 01c8 3370 andi r19,hi8(1023) 206 01ca C901 movw r24,r18 207 01cc 8856 subi r24,lo8(-(-360)) 208 01ce 9140 sbci r25,hi8(-(-360)) 209 01d0 62E0 ldi r22,lo8(2) 210 01d2 70E0 ldi r23,hi8(2) 211 .L28: 212 01d4 0E94 0000 call __divmodhi4 213 01d8 EB01 movw r28,r22 214 01da 4695 lsr r20 215 01dc 4695 lsr r20 216 .L29: 217 01de 842F mov r24,r20 218 01e0 90E0 ldi r25,lo8(0) 219 01e2 8F70 andi r24,lo8(15) 220 01e4 9070 andi r25,hi8(15) 221 01e6 8C01 movw r16,r24 222 01e8 0F5F subi r16,lo8(-(1)) 223 01ea 1F4F sbci r17,hi8(-(1)) 224 01ec 0D30 cpi r16,13 225 01ee 1105 cpc r17,__zero_reg__ 226 01f0 00F0 brlo .+2 227 01f2 00C0 rjmp .L11 228 01f4 F801 movw r30,r16 229 01f6 EE0F lsl r30 230 01f8 FF1F rol r31 231 01fa E050 subi r30,lo8(-(PPM_in)) 232 01fc F040 sbci r31,hi8(-(PPM_in)) 233 01fe 8081 ld r24,Z 234 0200 9181 ldd r25,Z+1 235 0202 9E01 movw r18,r28 236 0204 281B sub r18,r24 237 0206 390B sbc r19,r25 238 0208 C901 movw r24,r18 239 020a 37FF sbrs r19,7 240 020c 00C0 rjmp .L20 241 020e 9095 com r25 242 0210 8195 neg r24 243 0212 9F4F sbci r25,lo8(-1) 244 .L20: 245 0214 0697 sbiw r24,6 246 0216 04F4 brge .L19 247 0218 8091 0000 lds r24,SenderOkay 248 021c 883C cpi r24,lo8(-56) 249 021e 00F4 brsh .L21 250 0220 8091 0000 lds r24,SenderOkay 251 0224 865F subi r24,lo8(-(10)) 252 0226 8093 0000 sts SenderOkay,r24 253 022a 00C0 rjmp .L19 254 .L21: 255 022c 88EC ldi r24,lo8(-56) 256 022e 8093 0000 sts SenderOkay,r24 257 0232 8091 6F00 lds r24,111 258 0236 8F7D andi r24,lo8(-33) 259 0238 8093 6F00 sts 111,r24 260 .L19: 261 023c F801 movw r30,r16 262 023e EE0F lsl r30 263 0240 FF1F rol r31 264 0242 E050 subi r30,lo8(-(PPM_in)) 265 0244 F040 sbci r31,hi8(-(PPM_in)) 266 0246 2081 ld r18,Z 267 0248 3181 ldd r19,Z+1 268 024a C901 movw r24,r18 269 024c 880F lsl r24 270 024e 991F rol r25 271 0250 820F add r24,r18 272 0252 931F adc r25,r19 273 0254 8C0F add r24,r28 274 0256 9D1F adc r25,r29 275 0258 64E0 ldi r22,lo8(4) 276 025a 70E0 ldi r23,hi8(4) 277 025c 0E94 0000 call __divmodhi4 278 0260 9B01 movw r18,r22 279 0262 CE01 movw r24,r28 280 0264 0196 adiw r24,1 281 0266 8617 cp r24,r22 282 0268 9707 cpc r25,r23 283 026a 04F4 brge .L22 284 026c 2150 subi r18,lo8(-(-1)) 285 026e 3040 sbci r19,hi8(-(-1)) 286 0270 00C0 rjmp .L23 287 .L22: 288 0272 2197 sbiw r28,1 289 0274 6C17 cp r22,r28 290 0276 7D07 cpc r23,r29 291 0278 04F4 brge .L23 292 027a 2F5F subi r18,lo8(-(1)) 293 027c 3F4F sbci r19,hi8(-(1)) 294 .L23: 295 027e 8091 0000 lds r24,SenderOkay 296 0282 E801 movw r28,r16 297 0284 CC0F lsl r28 298 0286 DD1F rol r29 299 0288 843B cpi r24,lo8(-76) 300 028a 00F0 brlo .L24 301 028c FE01 movw r30,r28 302 028e E050 subi r30,lo8(-(PPM_in)) 303 0290 F040 sbci r31,hi8(-(PPM_in)) 304 0292 8081 ld r24,Z 305 0294 9181 ldd r25,Z+1 306 0296 A901 movw r20,r18 307 0298 481B sub r20,r24 308 029a 590B sbc r21,r25 309 029c CA01 movw r24,r20 310 029e 63E0 ldi r22,lo8(3) 311 02a0 70E0 ldi r23,hi8(3) 312 02a2 0E94 0000 call __divmodhi4 313 02a6 CB01 movw r24,r22 314 02a8 880F lsl r24 315 02aa 991F rol r25 316 02ac 860F add r24,r22 317 02ae 971F adc r25,r23 318 02b0 C050 subi r28,lo8(-(PPM_diff)) 319 02b2 D040 sbci r29,hi8(-(PPM_diff)) 320 02b4 9983 std Y+1,r25 321 02b6 8883 st Y,r24 322 02b8 00C0 rjmp .L25 323 .L24: 324 02ba C050 subi r28,lo8(-(PPM_diff)) 325 02bc D040 sbci r29,hi8(-(PPM_diff)) 326 02be 1982 std Y+1,__zero_reg__ 327 02c0 1882 st Y,__zero_reg__ 328 .L25: 329 02c2 000F lsl r16 330 02c4 111F rol r17 331 02c6 0050 subi r16,lo8(-(PPM_in)) 332 02c8 1040 sbci r17,hi8(-(PPM_in)) 333 02ca F801 movw r30,r16 334 02cc 3183 std Z+1,r19 335 02ce 2083 st Z,r18 336 02d0 00C0 rjmp .L11 337 .L15: 338 02d2 81E0 ldi r24,lo8(1) 339 02d4 8093 0000 sts ReSync.2382,r24 340 02d8 1092 0000 sts FrameCnt.2380,__zero_reg__ 341 02dc 1092 0000 sts Frame2.2383,__zero_reg__ 342 02e0 84E4 ldi r24,lo8(68) 343 .L30: 344 02e2 8093 0000 sts SpektrumTimer,r24 345 .L11: 346 02e6 8091 0000 lds r24,FrameCnt.2380 347 02ea 8031 cpi r24,lo8(16) 348 02ec 00F0 brlo .L27 349 02ee 8091 0000 lds r24,Frame2.2383 350 02f2 8823 tst r24 351 02f4 01F4 brne .L26 352 02f6 8091 0000 lds r24,ReSync.2382 353 02fa 8823 tst r24 354 02fc 01F4 brne .L26 355 02fe 1092 0000 sts NewPpmData,__zero_reg__ 356 .L26: 357 0302 1092 0000 sts FrameCnt.2380,__zero_reg__ 358 0306 1092 0000 sts Frame2.2383,__zero_reg__ 359 030a 1092 0000 sts Sync.2379,__zero_reg__ 360 030e 84E4 ldi r24,lo8(68) 361 0310 8093 0000 sts SpektrumTimer,r24 362 .L27: 363 /* epilogue start */ 364 0314 DF91 pop r29 365 0316 CF91 pop r28 366 0318 1F91 pop r17 367 031a 0F91 pop r16 368 031c 0895 ret 370 .global SpektrumBinding 372 SpektrumBinding: 373 031e CF93 push r28 374 0320 DF93 push r29 375 /* prologue: function */ 376 /* frame size = 0 */ 377 0322 80E1 ldi r24,lo8(10000) 378 0324 97E2 ldi r25,hi8(10000) 379 0326 0E94 0000 call SetDelay 380 032a EC01 movw r28,r24 381 032c 8091 C900 lds r24,201 382 0330 8F77 andi r24,lo8(127) 383 0332 8093 C900 sts 201,r24 384 0336 8091 C900 lds r24,201 385 033a 8F7E andi r24,lo8(-17) 386 033c 8093 C900 sts 201,r24 387 0340 5A98 cbi 43-32,2 388 0342 00D0 rcall . 389 0344 00D0 rcall . 390 0346 80E0 ldi r24,lo8(gs(uart_putchar)) 391 0348 90E0 ldi r25,hi8(gs(uart_putchar)) 392 034a EDB7 in r30,__SP_L__ 393 034c FEB7 in r31,__SP_H__ 394 034e 9283 std Z+2,r25 395 0350 8183 std Z+1,r24 396 0352 80E0 ldi r24,lo8(__c.2218) 397 0354 90E0 ldi r25,hi8(__c.2218) 398 0356 9483 std Z+4,r25 399 0358 8383 std Z+3,r24 400 035a E091 0000 lds r30,_printf_P 401 035e F091 0000 lds r31,(_printf_P)+1 402 0362 0995 icall 403 0364 0F90 pop __tmp_reg__ 404 0366 0F90 pop __tmp_reg__ 405 0368 0F90 pop __tmp_reg__ 406 036a 0F90 pop __tmp_reg__ 407 036c 00C0 rjmp .L33 408 .L35: 409 036e 4A9B sbis 41-32,2 410 0370 00C0 rjmp .L33 411 0372 8AE5 ldi r24,lo8(90) 412 0374 90E0 ldi r25,hi8(90) 413 0376 0E94 0000 call SetDelay 414 037a EC01 movw r28,r24 415 037c 00D0 rcall . 416 037e 00D0 rcall . 417 0380 80E0 ldi r24,lo8(gs(uart_putchar)) 418 0382 90E0 ldi r25,hi8(gs(uart_putchar)) 419 0384 EDB7 in r30,__SP_L__ 420 0386 FEB7 in r31,__SP_H__ 421 0388 9283 std Z+2,r25 422 038a 8183 std Z+1,r24 423 038c 80E0 ldi r24,lo8(__c.2223) 424 038e 90E0 ldi r25,hi8(__c.2223) 425 0390 9483 std Z+4,r25 426 0392 8383 std Z+3,r24 427 0394 E091 0000 lds r30,_printf_P 428 0398 F091 0000 lds r31,(_printf_P)+1 429 039c 0995 icall 430 039e 529A sbi 42-32,2 431 03a0 0F90 pop __tmp_reg__ 432 03a2 0F90 pop __tmp_reg__ 433 03a4 0F90 pop __tmp_reg__ 434 03a6 0F90 pop __tmp_reg__ 435 03a8 00C0 rjmp .L34 436 .L33: 437 03aa CE01 movw r24,r28 438 03ac 0E94 0000 call CheckDelay 439 03b0 8823 tst r24 440 03b2 01F0 breq .L35 441 03b4 00C0 rjmp .L68 442 .L34: 443 03b6 CE01 movw r24,r28 444 03b8 0E94 0000 call CheckDelay 445 03bc 8823 tst r24 446 03be 01F0 breq .L34 447 03c0 80E0 ldi r24,lo8(0) 448 03c2 90E0 ldi r25,hi8(0) 449 .L37: 450 03c4 5A9A sbi 43-32,2 451 03c6 0196 adiw r24,1 452 03c8 8436 cpi r24,100 453 03ca 9105 cpc r25,__zero_reg__ 454 03cc 01F4 brne .L37 455 03ce 80E0 ldi r24,lo8(0) 456 03d0 90E0 ldi r25,hi8(0) 457 .L38: 458 03d2 5A98 cbi 43-32,2 459 03d4 0196 adiw r24,1 460 03d6 F1E0 ldi r31,hi8(400) 461 03d8 8039 cpi r24,lo8(400) 462 03da 9F07 cpc r25,r31 463 03dc 01F4 brne .L38 464 03de 80E0 ldi r24,lo8(0) 465 03e0 90E0 ldi r25,hi8(0) 466 .L39: 467 03e2 5A9A sbi 43-32,2 468 03e4 0196 adiw r24,1 469 03e6 8A30 cpi r24,10 470 03e8 9105 cpc r25,__zero_reg__ 471 03ea 01F4 brne .L39 472 03ec 80E0 ldi r24,lo8(0) 473 03ee 90E0 ldi r25,hi8(0) 474 .L40: 475 03f0 5A98 cbi 43-32,2 476 03f2 0196 adiw r24,1 477 03f4 8A30 cpi r24,10 478 03f6 9105 cpc r25,__zero_reg__ 479 03f8 01F4 brne .L40 480 03fa 80E0 ldi r24,lo8(0) 481 03fc 90E0 ldi r25,hi8(0) 482 .L41: 483 03fe 5A9A sbi 43-32,2 484 0400 0196 adiw r24,1 485 0402 21E0 ldi r18,hi8(400) 486 0404 8039 cpi r24,lo8(400) 487 0406 9207 cpc r25,r18 488 0408 01F4 brne .L41 489 040a 80E0 ldi r24,lo8(0) 490 040c 90E0 ldi r25,hi8(0) 491 .L42: 492 040e 5A98 cbi 43-32,2 493 0410 0196 adiw r24,1 494 0412 E1E0 ldi r30,hi8(400) 495 0414 8039 cpi r24,lo8(400) 496 0416 9E07 cpc r25,r30 497 0418 01F4 brne .L42 498 041a 80E0 ldi r24,lo8(0) 499 041c 90E0 ldi r25,hi8(0) 500 .L43: 501 041e 5A9A sbi 43-32,2 502 0420 0196 adiw r24,1 503 0422 8A30 cpi r24,10 504 0424 9105 cpc r25,__zero_reg__ 505 0426 01F4 brne .L43 506 0428 80E0 ldi r24,lo8(0) 507 042a 90E0 ldi r25,hi8(0) 508 .L44: 509 042c 5A98 cbi 43-32,2 510 042e 0196 adiw r24,1 511 0430 8A30 cpi r24,10 512 0432 9105 cpc r25,__zero_reg__ 513 0434 01F4 brne .L44 514 0436 80E0 ldi r24,lo8(0) 515 0438 90E0 ldi r25,hi8(0) 516 .L45: 517 043a 5A9A sbi 43-32,2 518 043c 0196 adiw r24,1 519 043e F1E0 ldi r31,hi8(400) 520 0440 8039 cpi r24,lo8(400) 521 0442 9F07 cpc r25,r31 522 0444 01F4 brne .L45 523 0446 80E0 ldi r24,lo8(0) 524 0448 90E0 ldi r25,hi8(0) 525 .L46: 526 044a 5A98 cbi 43-32,2 527 044c 0196 adiw r24,1 528 044e 21E0 ldi r18,hi8(400) 529 0450 8039 cpi r24,lo8(400) 530 0452 9207 cpc r25,r18 531 0454 01F4 brne .L46 532 0456 80E0 ldi r24,lo8(0) 533 0458 90E0 ldi r25,hi8(0) 534 .L47: 535 045a 5A9A sbi 43-32,2 536 045c 0196 adiw r24,1 537 045e 8A30 cpi r24,10 538 0460 9105 cpc r25,__zero_reg__ 539 0462 01F4 brne .L47 540 0464 80E0 ldi r24,lo8(0) 541 0466 90E0 ldi r25,hi8(0) 542 .L48: 543 0468 5A98 cbi 43-32,2 544 046a 0196 adiw r24,1 545 046c 8A30 cpi r24,10 546 046e 9105 cpc r25,__zero_reg__ 547 0470 01F4 brne .L48 548 0472 80E0 ldi r24,lo8(0) 549 0474 90E0 ldi r25,hi8(0) 550 .L49: 551 0476 5A9A sbi 43-32,2 552 0478 0196 adiw r24,1 553 047a E1E0 ldi r30,hi8(400) 554 047c 8039 cpi r24,lo8(400) 555 047e 9E07 cpc r25,r30 556 0480 01F4 brne .L49 557 .L50: 558 0482 5298 cbi 42-32,2 559 0484 5A98 cbi 43-32,2 560 0486 0E94 0000 call SpektrumUartInit 561 /* epilogue start */ 562 048a DF91 pop r29 563 048c CF91 pop r28 564 048e 0895 ret 565 .L68: 566 0490 00D0 rcall . 567 0492 00D0 rcall . 568 0494 80E0 ldi r24,lo8(gs(uart_putchar)) 569 0496 90E0 ldi r25,hi8(gs(uart_putchar)) 570 0498 EDB7 in r30,__SP_L__ 571 049a FEB7 in r31,__SP_H__ 572 049c 9283 std Z+2,r25 573 049e 8183 std Z+1,r24 574 04a0 80E0 ldi r24,lo8(__c.2267) 575 04a2 90E0 ldi r25,hi8(__c.2267) 576 04a4 9483 std Z+4,r25 577 04a6 8383 std Z+3,r24 578 04a8 E091 0000 lds r30,_printf_P 579 04ac F091 0000 lds r31,(_printf_P)+1 580 04b0 0995 icall 581 04b2 0F90 pop __tmp_reg__ 582 04b4 0F90 pop __tmp_reg__ 583 04b6 0F90 pop __tmp_reg__ 584 04b8 0F90 pop __tmp_reg__ 585 04ba 00C0 rjmp .L50 587 .global SpektrumTimer 588 .global SpektrumTimer 589 .section .bss 592 SpektrumTimer: 593 0000 00 .skip 1,0 594 .lcomm Frame2.2383,1 595 .data 598 ReSync.2382: 599 0000 01 .byte 1 600 .lcomm ByteHigh.2381,1 601 .lcomm FrameCnt.2380,1 602 .lcomm Sync.2379,1 603 .section .progmem.data,"a",@progbits 606 __c.2267: 607 0000 5469 6D65 .string "Timeout.\n\r" 607 6F75 742E 607 0A0D 00 610 __c.2223: 611 000b 6F6B 2E0A .string "ok.\n\r" 611 0D00 614 __c.2218: 615 0011 0A0D 506C .string "\n\rPlease connect Spektrum receiver for binding NOW..." 615 6561 7365 615 2063 6F6E 615 6E65 6374 615 2053 7065 616 .global __do_copy_data 617 .global __do_clear_bss DEFINED SYMBOLS *ABS*:00000000 Spektrum.c C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:2 *ABS*:0000003f __SREG__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:3 *ABS*:0000003e __SP_H__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:4 *ABS*:0000003d __SP_L__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:5 *ABS*:00000034 __CCP__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:6 *ABS*:00000000 __tmp_reg__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:7 *ABS*:00000001 __zero_reg__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:11 .text:00000000 SpektrumUartInit C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:81 .text:000000b0 SpektrumParser C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:598 .data:00000000 ReSync.2382 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:592 .bss:00000000 SpektrumTimer C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:600 .bss:00000003 FrameCnt.2380 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:601 .bss:00000004 Sync.2379 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:594 .bss:00000002 ByteHigh.2381 .bss:00000001 Frame2.2383 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:372 .text:0000031e SpektrumBinding C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:614 .progmem.data:00000011 __c.2218 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:610 .progmem.data:0000000b __c.2223 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccUjdFTS.s:606 .progmem.data:00000000 __c.2267 UNDEFINED SYMBOLS EE_Parameter __divmodhi4 PPM_in SenderOkay PPM_diff NewPpmData SetDelay uart_putchar _printf_P CheckDelay __do_copy_data __do_clear_bss