forked from mfulz_github/qmk_firmware
Remove output files from the incomplete AudioInputHost demo, and improve the logic in the ConfigDescriptor.c device configuration processing routine.
This commit is contained in:
parent
0b6d5467bc
commit
78cfaac9b4
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -1,853 +0,0 @@
|
|||
1 .file "AudioInputHost.c"
|
||||
2 __SREG__ = 0x3f
|
||||
3 __SP_H__ = 0x3e
|
||||
4 __SP_L__ = 0x3d
|
||||
5 __CCP__ = 0x34
|
||||
6 __tmp_reg__ = 0
|
||||
7 __zero_reg__ = 1
|
||||
15 .Ltext0:
|
||||
16 .section .text.LEDs_SetAllLEDs,"ax",@progbits
|
||||
18 LEDs_SetAllLEDs:
|
||||
19 .LFB127:
|
||||
20 .LSM0:
|
||||
21 .LVL0:
|
||||
22 /* prologue: function */
|
||||
23 /* frame size = 0 */
|
||||
24 /* stack size = 0 */
|
||||
25 .L__stack_usage = 0
|
||||
26 .LSM1:
|
||||
27 0000 9BB1 in r25,43-32
|
||||
28 0002 9F70 andi r25,lo8(15)
|
||||
29 0004 982B or r25,r24
|
||||
30 0006 9BB9 out 43-32,r25
|
||||
31 /* epilogue start */
|
||||
32 .LSM2:
|
||||
33 0008 0895 ret
|
||||
34 .LFE127:
|
||||
36 .section .text.SetupHardware,"ax",@progbits
|
||||
37 .global SetupHardware
|
||||
39 SetupHardware:
|
||||
40 .LFB132:
|
||||
41 .LSM3:
|
||||
42 /* prologue: function */
|
||||
43 /* frame size = 0 */
|
||||
44 /* stack size = 0 */
|
||||
45 .L__stack_usage = 0
|
||||
46 .LSM4:
|
||||
47 0000 84B7 in r24,84-32
|
||||
48 0002 877F andi r24,lo8(-9)
|
||||
49 0004 84BF out 84-32,r24
|
||||
50 .LSM5:
|
||||
51 0006 28E1 ldi r18,lo8(24)
|
||||
52 /* #APP */
|
||||
53 ; 63 "AudioInputHost.c" 1
|
||||
54 0008 0FB6 in __tmp_reg__, __SREG__
|
||||
55 000a F894 cli
|
||||
56 000c 2093 6000 sts 96, r18
|
||||
57 0010 1092 6000 sts 96, __zero_reg__
|
||||
58 0014 0FBE out __SREG__,__tmp_reg__
|
||||
59
|
||||
60 ; 0 "" 2
|
||||
61 .LVL1:
|
||||
62 /* #NOAPP */
|
||||
63 .LBB39:
|
||||
64 .LBB40:
|
||||
65 .LSM6:
|
||||
66 0016 90E0 ldi r25,lo8(0)
|
||||
67 0018 80E8 ldi r24,lo8(-128)
|
||||
68 /* #APP */
|
||||
69 ; 1614 "c:\program files (x86)\atmel\avr studio 5.0\extensions\application\avr toolchain\bin\../l
|
||||
70 001a 0FB6 in __tmp_reg__,__SREG__
|
||||
71 001c F894 cli
|
||||
72 001e 8093 6100 sts 97, r24
|
||||
73 0022 9093 6100 sts 97, r25
|
||||
74 0026 0FBE out __SREG__, __tmp_reg__
|
||||
75 ; 0 "" 2
|
||||
76 .LVL2:
|
||||
77 /* #NOAPP */
|
||||
78 .LBE40:
|
||||
79 .LBE39:
|
||||
80 .LBB41:
|
||||
81 .LBB42:
|
||||
82 .LSM7:
|
||||
83 0028 83E3 ldi r24,lo8(51)
|
||||
84 002a 90E0 ldi r25,hi8(51)
|
||||
85 002c 9093 CD00 sts 204+1,r25
|
||||
86 0030 8093 CC00 sts 204,r24
|
||||
87 .LSM8:
|
||||
88 0034 86E0 ldi r24,lo8(6)
|
||||
89 0036 8093 CA00 sts 202,r24
|
||||
90 .LSM9:
|
||||
91 003a 1092 C800 sts 200,__zero_reg__
|
||||
92 .LSM10:
|
||||
93 003e 2093 C900 sts 201,r18
|
||||
94 .LSM11:
|
||||
95 0042 539A sbi 42-32,3
|
||||
96 .LSM12:
|
||||
97 0044 5A9A sbi 43-32,2
|
||||
98 .LBE42:
|
||||
99 .LBE41:
|
||||
100 .LBB43:
|
||||
101 .LBB44:
|
||||
102 .LSM13:
|
||||
103 0046 8AB1 in r24,42-32
|
||||
104 0048 806F ori r24,lo8(-16)
|
||||
105 004a 8AB9 out 42-32,r24
|
||||
106 .LSM14:
|
||||
107 004c 8BB1 in r24,43-32
|
||||
108 004e 8F70 andi r24,lo8(15)
|
||||
109 0050 8BB9 out 43-32,r24
|
||||
110 .LBE44:
|
||||
111 .LBE43:
|
||||
112 .LSM15:
|
||||
113 0052 0E94 0000 call USB_Init
|
||||
114 .LVL3:
|
||||
115 .LBB45:
|
||||
116 .LBB46:
|
||||
117 .LSM16:
|
||||
118 0056 E0E0 ldi r30,lo8(USARTSerialStream)
|
||||
119 0058 F0E0 ldi r31,hi8(USARTSerialStream)
|
||||
120 005a F093 0000 sts __iob+1,r31
|
||||
121 005e E093 0000 sts __iob,r30
|
||||
122 .LSM17:
|
||||
123 0062 F093 0000 sts __iob+2+1,r31
|
||||
124 0066 E093 0000 sts __iob+2,r30
|
||||
125 .LSM18:
|
||||
126 006a 8EE0 ldi r24,lo8(14)
|
||||
127 006c DF01 movw r26,r30
|
||||
128 006e 1D92 st X+,__zero_reg__
|
||||
129 0070 8A95 dec r24
|
||||
130 0072 01F4 brne .-6
|
||||
131 0074 83E0 ldi r24,lo8(3)
|
||||
132 0076 8093 0000 sts USARTSerialStream+3,r24
|
||||
133 007a 80E0 ldi r24,lo8(gs(Serial_putchar))
|
||||
134 007c 90E0 ldi r25,hi8(gs(Serial_putchar))
|
||||
135 007e 9093 0000 sts USARTSerialStream+8+1,r25
|
||||
136 0082 8093 0000 sts USARTSerialStream+8,r24
|
||||
137 0086 80E0 ldi r24,lo8(gs(Serial_getchar))
|
||||
138 0088 90E0 ldi r25,hi8(gs(Serial_getchar))
|
||||
139 008a 9093 0000 sts USARTSerialStream+10+1,r25
|
||||
140 008e 8093 0000 sts USARTSerialStream+10,r24
|
||||
141 /* epilogue start */
|
||||
142 .LBE46:
|
||||
143 .LBE45:
|
||||
144 .LSM19:
|
||||
145 0092 0895 ret
|
||||
146 .LFE132:
|
||||
148 .section .text.EVENT_USB_Host_DeviceAttached,"ax",@progbits
|
||||
149 .global EVENT_USB_Host_DeviceAttached
|
||||
151 EVENT_USB_Host_DeviceAttached:
|
||||
152 .LFB133:
|
||||
153 .LSM20:
|
||||
154 /* prologue: function */
|
||||
155 /* frame size = 0 */
|
||||
156 /* stack size = 0 */
|
||||
157 .L__stack_usage = 0
|
||||
158 .LSM21:
|
||||
159 0000 80E0 ldi r24,lo8(__c.3897)
|
||||
160 0002 90E0 ldi r25,hi8(__c.3897)
|
||||
161 0004 0E94 0000 call puts_P
|
||||
162 .LSM22:
|
||||
163 0008 80EA ldi r24,lo8(-96)
|
||||
164 000a 0E94 0000 call LEDs_SetAllLEDs
|
||||
165 /* epilogue start */
|
||||
166 .LSM23:
|
||||
167 000e 0895 ret
|
||||
168 .LFE133:
|
||||
170 .section .text.EVENT_USB_Host_DeviceUnattached,"ax",@progbits
|
||||
171 .global EVENT_USB_Host_DeviceUnattached
|
||||
173 EVENT_USB_Host_DeviceUnattached:
|
||||
174 .LFB134:
|
||||
175 .LSM24:
|
||||
176 /* prologue: function */
|
||||
177 /* frame size = 0 */
|
||||
178 /* stack size = 0 */
|
||||
179 .L__stack_usage = 0
|
||||
180 .LSM25:
|
||||
181 0000 80E0 ldi r24,lo8(__c.3902)
|
||||
182 0002 90E0 ldi r25,hi8(__c.3902)
|
||||
183 0004 0E94 0000 call puts_P
|
||||
184 .LSM26:
|
||||
185 0008 80E1 ldi r24,lo8(16)
|
||||
186 000a 0E94 0000 call LEDs_SetAllLEDs
|
||||
187 /* epilogue start */
|
||||
188 .LSM27:
|
||||
189 000e 0895 ret
|
||||
190 .LFE134:
|
||||
192 .section .text.EVENT_USB_Host_DeviceEnumerationComplete,"ax",@progbits
|
||||
193 .global EVENT_USB_Host_DeviceEnumerationComplete
|
||||
195 EVENT_USB_Host_DeviceEnumerationComplete:
|
||||
196 .LFB135:
|
||||
197 .LSM28:
|
||||
198 /* prologue: function */
|
||||
199 /* frame size = 0 */
|
||||
200 /* stack size = 0 */
|
||||
201 .L__stack_usage = 0
|
||||
202 .LSM29:
|
||||
203 0000 80E6 ldi r24,lo8(96)
|
||||
204 0002 0E94 0000 call LEDs_SetAllLEDs
|
||||
205 /* epilogue start */
|
||||
206 .LSM30:
|
||||
207 0006 0895 ret
|
||||
208 .LFE135:
|
||||
210 .section .text.EVENT_USB_Host_HostError,"ax",@progbits
|
||||
211 .global EVENT_USB_Host_HostError
|
||||
213 EVENT_USB_Host_HostError:
|
||||
214 .LFB136:
|
||||
215 .LSM31:
|
||||
216 .LVL4:
|
||||
217 0000 DF93 push r29
|
||||
218 0002 CF93 push r28
|
||||
219 0004 0F92 push __tmp_reg__
|
||||
220 0006 CDB7 in r28,__SP_L__
|
||||
221 0008 DEB7 in r29,__SP_H__
|
||||
222 /* prologue: function */
|
||||
223 /* frame size = 1 */
|
||||
224 /* stack size = 3 */
|
||||
225 .L__stack_usage = 3
|
||||
226 .LSM32:
|
||||
227 000a 8983 std Y+1,r24
|
||||
228 000c 0E94 0000 call USB_Disable
|
||||
229 .LVL5:
|
||||
230 .LSM33:
|
||||
231 0010 00D0 rcall .
|
||||
232 0012 00D0 rcall .
|
||||
233 0014 EDB7 in r30,__SP_L__
|
||||
234 0016 FEB7 in r31,__SP_H__
|
||||
235 0018 3196 adiw r30,1
|
||||
236 001a 20E0 ldi r18,lo8(__c.3910)
|
||||
237 001c 30E0 ldi r19,hi8(__c.3910)
|
||||
238 001e ADB7 in r26,__SP_L__
|
||||
239 0020 BEB7 in r27,__SP_H__
|
||||
240 0022 1296 adiw r26,1+1
|
||||
241 0024 3C93 st X,r19
|
||||
242 0026 2E93 st -X,r18
|
||||
243 0028 1197 sbiw r26,1
|
||||
244 002a 8981 ldd r24,Y+1
|
||||
245 002c 8283 std Z+2,r24
|
||||
246 002e 1382 std Z+3,__zero_reg__
|
||||
247 0030 0E94 0000 call printf_P
|
||||
248 .LSM34:
|
||||
249 0034 0F90 pop __tmp_reg__
|
||||
250 0036 0F90 pop __tmp_reg__
|
||||
251 0038 0F90 pop __tmp_reg__
|
||||
252 003a 0F90 pop __tmp_reg__
|
||||
253 003c 80E9 ldi r24,lo8(-112)
|
||||
254 003e 0E94 0000 call LEDs_SetAllLEDs
|
||||
255 .L7:
|
||||
256 0042 00C0 rjmp .L7
|
||||
257 .LFE136:
|
||||
259 .section .text.EVENT_USB_Host_DeviceEnumerationFailed,"ax",@progbits
|
||||
260 .global EVENT_USB_Host_DeviceEnumerationFailed
|
||||
262 EVENT_USB_Host_DeviceEnumerationFailed:
|
||||
263 .LFB137:
|
||||
264 .LSM35:
|
||||
265 .LVL6:
|
||||
266 /* prologue: function */
|
||||
267 /* frame size = 0 */
|
||||
268 /* stack size = 0 */
|
||||
269 .L__stack_usage = 0
|
||||
270 .LSM36:
|
||||
271 0000 9091 0000 lds r25,USB_HostState
|
||||
272 0004 2DB7 in r18,__SP_L__
|
||||
273 0006 3EB7 in r19,__SP_H__
|
||||
274 0008 2850 subi r18,lo8(-(-8))
|
||||
275 000a 3040 sbci r19,hi8(-(-8))
|
||||
276 000c 0FB6 in __tmp_reg__,__SREG__
|
||||
277 000e F894 cli
|
||||
278 0010 3EBF out __SP_H__,r19
|
||||
279 0012 0FBE out __SREG__,__tmp_reg__
|
||||
280 0014 2DBF out __SP_L__,r18
|
||||
281 0016 EDB7 in r30,__SP_L__
|
||||
282 0018 FEB7 in r31,__SP_H__
|
||||
283 001a 3196 adiw r30,1
|
||||
284 001c 20E0 ldi r18,lo8(__c.3917)
|
||||
285 001e 30E0 ldi r19,hi8(__c.3917)
|
||||
286 0020 ADB7 in r26,__SP_L__
|
||||
287 0022 BEB7 in r27,__SP_H__
|
||||
288 0024 1296 adiw r26,1+1
|
||||
289 0026 3C93 st X,r19
|
||||
290 0028 2E93 st -X,r18
|
||||
291 002a 1197 sbiw r26,1
|
||||
292 002c 8283 std Z+2,r24
|
||||
293 002e 1382 std Z+3,__zero_reg__
|
||||
294 0030 6483 std Z+4,r22
|
||||
295 0032 1582 std Z+5,__zero_reg__
|
||||
296 0034 9683 std Z+6,r25
|
||||
297 0036 1782 std Z+7,__zero_reg__
|
||||
298 0038 0E94 0000 call printf_P
|
||||
299 .LVL7:
|
||||
300 .LSM37:
|
||||
301 003c 2DB7 in r18,__SP_L__
|
||||
302 003e 3EB7 in r19,__SP_H__
|
||||
303 0040 285F subi r18,lo8(-(8))
|
||||
304 0042 3F4F sbci r19,hi8(-(8))
|
||||
305 0044 0FB6 in __tmp_reg__,__SREG__
|
||||
306 0046 F894 cli
|
||||
307 0048 3EBF out __SP_H__,r19
|
||||
308 004a 0FBE out __SREG__,__tmp_reg__
|
||||
309 004c 2DBF out __SP_L__,r18
|
||||
310 004e 80E9 ldi r24,lo8(-112)
|
||||
311 0050 0E94 0000 call LEDs_SetAllLEDs
|
||||
312 /* epilogue start */
|
||||
313 .LSM38:
|
||||
314 0054 0895 ret
|
||||
315 .LFE137:
|
||||
317 .section .text.Audio_Task,"ax",@progbits
|
||||
318 .global Audio_Task
|
||||
320 Audio_Task:
|
||||
321 .LFB138:
|
||||
322 .LSM39:
|
||||
323 0000 1F93 push r17
|
||||
324 0002 DF93 push r29
|
||||
325 0004 CF93 push r28
|
||||
326 0006 00D0 rcall .
|
||||
327 0008 0F92 push __tmp_reg__
|
||||
328 000a CDB7 in r28,__SP_L__
|
||||
329 000c DEB7 in r29,__SP_H__
|
||||
330 /* prologue: function */
|
||||
331 /* frame size = 3 */
|
||||
332 /* stack size = 6 */
|
||||
333 .L__stack_usage = 6
|
||||
334 .LSM40:
|
||||
335 000e 8091 0000 lds r24,USB_HostState
|
||||
336 0012 8B30 cpi r24,lo8(11)
|
||||
337 0014 01F0 breq .+2
|
||||
338 0016 00C0 rjmp .L9
|
||||
339 .LBB47:
|
||||
340 .LSM41:
|
||||
341 0018 80E0 ldi r24,lo8(__c.3924)
|
||||
342 001a 90E0 ldi r25,hi8(__c.3924)
|
||||
343 001c 0E94 0000 call puts_P
|
||||
344 .LSM42:
|
||||
345 0020 0E94 0000 call ProcessConfigurationDescriptor
|
||||
346 0024 182F mov r17,r24
|
||||
347 .LVL8:
|
||||
348 0026 8823 tst r24
|
||||
349 0028 01F0 breq .L12
|
||||
350 .LSM43:
|
||||
351 002a 8130 cpi r24,lo8(1)
|
||||
352 002c 01F4 brne .L13
|
||||
353 .LSM44:
|
||||
354 002e 80E0 ldi r24,lo8(__c.3926)
|
||||
355 0030 90E0 ldi r25,hi8(__c.3926)
|
||||
356 .LVL9:
|
||||
357 0032 00C0 rjmp .L20
|
||||
358 .L13:
|
||||
359 .LSM45:
|
||||
360 0034 80E0 ldi r24,lo8(__c.3928)
|
||||
361 0036 90E0 ldi r25,hi8(__c.3928)
|
||||
362 .L20:
|
||||
363 0038 0E94 0000 call puts_P
|
||||
364 .LSM46:
|
||||
365 003c 00D0 rcall .
|
||||
366 003e 00D0 rcall .
|
||||
367 0040 EDB7 in r30,__SP_L__
|
||||
368 0042 FEB7 in r31,__SP_H__
|
||||
369 0044 3196 adiw r30,1
|
||||
370 0046 20E0 ldi r18,lo8(__c.3930)
|
||||
371 0048 30E0 ldi r19,hi8(__c.3930)
|
||||
372 004a ADB7 in r26,__SP_L__
|
||||
373 004c BEB7 in r27,__SP_H__
|
||||
374 004e 1296 adiw r26,1+1
|
||||
375 0050 3C93 st X,r19
|
||||
376 0052 2E93 st -X,r18
|
||||
377 0054 1197 sbiw r26,1
|
||||
378 0056 1283 std Z+2,r17
|
||||
379 .LVL10:
|
||||
380 .L22:
|
||||
381 0058 1382 std Z+3,__zero_reg__
|
||||
382 005a 0E94 0000 call printf_P
|
||||
383 .LSM47:
|
||||
384 005e 0F90 pop __tmp_reg__
|
||||
385 0060 0F90 pop __tmp_reg__
|
||||
386 0062 0F90 pop __tmp_reg__
|
||||
387 0064 0F90 pop __tmp_reg__
|
||||
388 0066 00C0 rjmp .L21
|
||||
389 .LVL11:
|
||||
390 .L12:
|
||||
391 .LSM48:
|
||||
392 0068 81E0 ldi r24,lo8(1)
|
||||
393 006a 0E94 0000 call USB_Host_SetDeviceConfiguration
|
||||
394 .LVL12:
|
||||
395 006e 8823 tst r24
|
||||
396 0070 01F0 breq .L15
|
||||
397 .LSM49:
|
||||
398 0072 00D0 rcall .
|
||||
399 0074 00D0 rcall .
|
||||
400 0076 EDB7 in r30,__SP_L__
|
||||
401 0078 FEB7 in r31,__SP_H__
|
||||
402 007a 3196 adiw r30,1
|
||||
403 007c 20E0 ldi r18,lo8(__c.3933)
|
||||
404 007e 30E0 ldi r19,hi8(__c.3933)
|
||||
405 0080 00C0 rjmp .L23
|
||||
406 .L15:
|
||||
407 .LSM50:
|
||||
408 0082 8091 0000 lds r24,StreamingInterfaceIndex
|
||||
409 .LVL13:
|
||||
410 0086 6091 0000 lds r22,StreamingInterfaceAltSetting
|
||||
411 008a 0E94 0000 call USB_Host_SetInterfaceAltSetting
|
||||
412 .LVL14:
|
||||
413 008e 8823 tst r24
|
||||
414 0090 01F0 breq .L16
|
||||
415 .LSM51:
|
||||
416 0092 00D0 rcall .
|
||||
417 0094 00D0 rcall .
|
||||
418 0096 EDB7 in r30,__SP_L__
|
||||
419 0098 FEB7 in r31,__SP_H__
|
||||
420 009a 3196 adiw r30,1
|
||||
421 009c 20E0 ldi r18,lo8(__c.3935)
|
||||
422 009e 30E0 ldi r19,hi8(__c.3935)
|
||||
423 .L23:
|
||||
424 00a0 ADB7 in r26,__SP_L__
|
||||
425 00a2 BEB7 in r27,__SP_H__
|
||||
426 00a4 1296 adiw r26,1+1
|
||||
427 00a6 3C93 st X,r19
|
||||
428 00a8 2E93 st -X,r18
|
||||
429 00aa 1197 sbiw r26,1
|
||||
430 00ac 8283 std Z+2,r24
|
||||
431 00ae 00C0 rjmp .L22
|
||||
432 .L16:
|
||||
433 .LSM52:
|
||||
434 00b0 2091 0000 lds r18,StreamingEndpointAddress
|
||||
435 00b4 82E2 ldi r24,lo8(34)
|
||||
436 .LVL15:
|
||||
437 00b6 8093 0000 sts USB_ControlRequest,r24
|
||||
438 00ba 81E0 ldi r24,lo8(1)
|
||||
439 00bc 8093 0000 sts USB_ControlRequest+1,r24
|
||||
440 00c0 80E0 ldi r24,lo8(256)
|
||||
441 00c2 91E0 ldi r25,hi8(256)
|
||||
442 00c4 9093 0000 sts USB_ControlRequest+2+1,r25
|
||||
443 00c8 8093 0000 sts USB_ControlRequest+2,r24
|
||||
444 00cc 2093 0000 sts USB_ControlRequest+4,r18
|
||||
445 00d0 1092 0000 sts USB_ControlRequest+5,__zero_reg__
|
||||
446 00d4 83E0 ldi r24,lo8(3)
|
||||
447 00d6 90E0 ldi r25,hi8(3)
|
||||
448 00d8 9093 0000 sts USB_ControlRequest+6+1,r25
|
||||
449 00dc 8093 0000 sts USB_ControlRequest+6,r24
|
||||
450 .LSM53:
|
||||
451 00e0 DE01 movw r26,r28
|
||||
452 00e2 1196 adiw r26,1
|
||||
453 00e4 E0E0 ldi r30,lo8(C.5.5024)
|
||||
454 00e6 F0E0 ldi r31,hi8(C.5.5024)
|
||||
455 00e8 83E0 ldi r24,lo8(3)
|
||||
456 .L17:
|
||||
457 00ea 0190 ld r0,Z+
|
||||
458 00ec 0D92 st X+,r0
|
||||
459 00ee 8150 subi r24,lo8(-(-1))
|
||||
460 00f0 01F4 brne .L17
|
||||
461 .LVL16:
|
||||
462 .LBB48:
|
||||
463 .LBB49:
|
||||
464 .LSM54:
|
||||
465 00f2 1092 A700 sts 167,__zero_reg__
|
||||
466 .LBE49:
|
||||
467 .LBE48:
|
||||
468 .LSM55:
|
||||
469 00f6 CE01 movw r24,r28
|
||||
470 00f8 0196 adiw r24,1
|
||||
471 00fa 0E94 0000 call USB_Host_SendControlRequest
|
||||
472 .LVL17:
|
||||
473 00fe 8823 tst r24
|
||||
474 0100 01F0 breq .L18
|
||||
475 .LVL18:
|
||||
476 .L21:
|
||||
477 .LSM56:
|
||||
478 0102 80E9 ldi r24,lo8(-112)
|
||||
479 0104 0E94 0000 call LEDs_SetAllLEDs
|
||||
480 .LSM57:
|
||||
481 0108 1092 0000 sts USB_HostState,__zero_reg__
|
||||
482 .LSM58:
|
||||
483 010c 00C0 rjmp .L9
|
||||
484 .LVL19:
|
||||
485 .L18:
|
||||
486 .LSM59:
|
||||
487 010e 82E0 ldi r24,lo8(2)
|
||||
488 .LVL20:
|
||||
489 0110 8093 6E00 sts 110,r24
|
||||
490 .LSM60:
|
||||
491 0114 9CE7 ldi r25,lo8(124)
|
||||
492 0116 97BD out 71-32,r25
|
||||
493 .LSM61:
|
||||
494 0118 84BD out 68-32,r24
|
||||
495 .LSM62:
|
||||
496 011a 85BD out 69-32,r24
|
||||
497 .LSM63:
|
||||
498 011c 3E9A sbi 39-32,6
|
||||
499 .LSM64:
|
||||
500 011e 81EF ldi r24,lo8(-15)
|
||||
501 0120 8093 9000 sts 144,r24
|
||||
502 .LSM65:
|
||||
503 0124 89E0 ldi r24,lo8(9)
|
||||
504 0126 8093 9100 sts 145,r24
|
||||
505 .LSM66:
|
||||
506 012a 80E0 ldi r24,lo8(__c.3939)
|
||||
507 012c 90E0 ldi r25,hi8(__c.3939)
|
||||
508 012e 0E94 0000 call puts_P
|
||||
509 .LSM67:
|
||||
510 0132 8CE0 ldi r24,lo8(12)
|
||||
511 0134 8093 0000 sts USB_HostState,r24
|
||||
512 .LVL21:
|
||||
513 .L9:
|
||||
514 /* epilogue start */
|
||||
515 .LBE47:
|
||||
516 .LSM68:
|
||||
517 0138 0F90 pop __tmp_reg__
|
||||
518 013a 0F90 pop __tmp_reg__
|
||||
519 013c 0F90 pop __tmp_reg__
|
||||
520 013e CF91 pop r28
|
||||
521 0140 DF91 pop r29
|
||||
522 0142 1F91 pop r17
|
||||
523 0144 0895 ret
|
||||
524 .LFE138:
|
||||
526 .section .text.main,"ax",@progbits
|
||||
527 .global main
|
||||
529 main:
|
||||
530 .LFB131:
|
||||
531 .LSM69:
|
||||
532 /* prologue: function */
|
||||
533 /* frame size = 0 */
|
||||
534 /* stack size = 0 */
|
||||
535 .L__stack_usage = 0
|
||||
536 .LSM70:
|
||||
537 0000 0E94 0000 call SetupHardware
|
||||
538 .LSM71:
|
||||
539 0004 80E0 ldi r24,lo8(__c.3888)
|
||||
540 0006 90E0 ldi r25,hi8(__c.3888)
|
||||
541 0008 0E94 0000 call puts_P
|
||||
542 .LSM72:
|
||||
543 000c 80E1 ldi r24,lo8(16)
|
||||
544 000e 0E94 0000 call LEDs_SetAllLEDs
|
||||
545 .LSM73:
|
||||
546 /* #APP */
|
||||
547 ; 49 "AudioInputHost.c" 1
|
||||
548 0012 7894 sei
|
||||
549 ; 0 "" 2
|
||||
550 /* #NOAPP */
|
||||
551 .L25:
|
||||
552 .LSM74:
|
||||
553 0014 0E94 0000 call Audio_Task
|
||||
554 .LSM75:
|
||||
555 0018 0E94 0000 call USB_USBTask
|
||||
556 001c 00C0 rjmp .L25
|
||||
557 .LFE131:
|
||||
559 .section .text.__vector_21,"ax",@progbits
|
||||
560 .global __vector_21
|
||||
562 __vector_21:
|
||||
563 .LFB139:
|
||||
564 .LSM76:
|
||||
565 0000 1F92 push __zero_reg__
|
||||
566 0002 0F92 push r0
|
||||
567 0004 0FB6 in r0,__SREG__
|
||||
568 0006 0F92 push r0
|
||||
569 0008 0BB6 in r0,91-32
|
||||
570 000a 0F92 push r0
|
||||
571 000c 1124 clr __zero_reg__
|
||||
572 000e 1F93 push r17
|
||||
573 0010 2F93 push r18
|
||||
574 0012 3F93 push r19
|
||||
575 0014 4F93 push r20
|
||||
576 0016 5F93 push r21
|
||||
577 0018 6F93 push r22
|
||||
578 001a 7F93 push r23
|
||||
579 001c 8F93 push r24
|
||||
580 001e 9F93 push r25
|
||||
581 0020 AF93 push r26
|
||||
582 0022 BF93 push r27
|
||||
583 0024 EF93 push r30
|
||||
584 0026 FF93 push r31
|
||||
585 /* prologue: Signal */
|
||||
586 /* frame size = 0 */
|
||||
587 /* stack size = 17 */
|
||||
588 .L__stack_usage = 17
|
||||
589 .LBB50:
|
||||
590 .LBB51:
|
||||
591 .LSM77:
|
||||
592 0028 1091 A700 lds r17,167
|
||||
593 002c 1770 andi r17,lo8(7)
|
||||
594 .LVL22:
|
||||
595 .LBE51:
|
||||
596 .LBE50:
|
||||
597 .LBB52:
|
||||
598 .LBB53:
|
||||
599 .LSM78:
|
||||
600 002e 81E0 ldi r24,lo8(1)
|
||||
601 0030 8093 A700 sts 167,r24
|
||||
602 .LBE53:
|
||||
603 .LBE52:
|
||||
604 .LBB54:
|
||||
605 .LBB55:
|
||||
606 .LSM79:
|
||||
607 0034 8091 A900 lds r24,169
|
||||
608 0038 8F7B andi r24,lo8(-65)
|
||||
609 003a 8093 A900 sts 169,r24
|
||||
610 .LBE55:
|
||||
611 .LBE54:
|
||||
612 .LBB56:
|
||||
613 .LBB57:
|
||||
614 .LSM80:
|
||||
615 003e 8091 A600 lds r24,166
|
||||
616 .LBE57:
|
||||
617 .LBE56:
|
||||
618 .LSM81:
|
||||
619 0042 80FF sbrs r24,0
|
||||
620 0044 00C0 rjmp .L27
|
||||
621 .LBB58:
|
||||
622 .LBB59:
|
||||
623 .LBB60:
|
||||
624 .LSM82:
|
||||
625 0046 8091 AF00 lds r24,175
|
||||
626 .LSM83:
|
||||
627 004a 4091 AF00 lds r20,175
|
||||
628 .LVL23:
|
||||
629 .LBE60:
|
||||
630 .LBE59:
|
||||
631 .LBB61:
|
||||
632 .LBB62:
|
||||
633 .LSM84:
|
||||
634 004e 8091 A600 lds r24,166
|
||||
635 .LBE62:
|
||||
636 .LBE61:
|
||||
637 .LSM85:
|
||||
638 0052 85FD sbrc r24,5
|
||||
639 0054 00C0 rjmp .L28
|
||||
640 .LBB63:
|
||||
641 .LBB64:
|
||||
642 .LSM86:
|
||||
643 0056 8091 A600 lds r24,166
|
||||
644 005a 8E77 andi r24,lo8(126)
|
||||
645 005c 8093 A600 sts 166,r24
|
||||
646 .L28:
|
||||
647 .LBE64:
|
||||
648 .LBE63:
|
||||
649 .LSM87:
|
||||
650 0060 842F mov r24,r20
|
||||
651 0062 9927 clr r25
|
||||
652 0064 87FD sbrc r24,7
|
||||
653 0066 9095 com r25
|
||||
654 0068 20E8 ldi r18,lo8(128)
|
||||
655 006a 30E0 ldi r19,hi8(128)
|
||||
656 006c 8227 eor r24,r18
|
||||
657 006e 9327 eor r25,r19
|
||||
658 0070 9093 9900 sts 152+1,r25
|
||||
659 0074 8093 9800 sts 152,r24
|
||||
660 .LVL24:
|
||||
661 .LSM88:
|
||||
662 0078 4131 cpi r20,lo8(17)
|
||||
663 007a 04F4 brge .L30
|
||||
664 .LSM89:
|
||||
665 007c 4930 cpi r20,lo8(9)
|
||||
666 007e 04F4 brge .L31
|
||||
667 .LSM90:
|
||||
668 0080 4530 cpi r20,lo8(5)
|
||||
669 0082 04F4 brge .L32
|
||||
670 .LSM91:
|
||||
671 0084 4330 cpi r20,lo8(3)
|
||||
672 0086 04F4 brge .L33
|
||||
673 .LSM92:
|
||||
674 0088 80E0 ldi r24,lo8(0)
|
||||
675 008a 00C0 rjmp .L29
|
||||
676 .L30:
|
||||
677 .LSM93:
|
||||
678 008c 80EF ldi r24,lo8(-16)
|
||||
679 008e 00C0 rjmp .L29
|
||||
680 .L31:
|
||||
681 .LSM94:
|
||||
682 0090 80EB ldi r24,lo8(-80)
|
||||
683 0092 00C0 rjmp .L29
|
||||
684 .L32:
|
||||
685 .LSM95:
|
||||
686 0094 80E3 ldi r24,lo8(48)
|
||||
687 0096 00C0 rjmp .L29
|
||||
688 .L33:
|
||||
689 .LSM96:
|
||||
690 0098 80E1 ldi r24,lo8(16)
|
||||
691 .L29:
|
||||
692 .LVL25:
|
||||
693 .LSM97:
|
||||
694 009a 0E94 0000 call LEDs_SetAllLEDs
|
||||
695 .LVL26:
|
||||
696 .L27:
|
||||
697 .LBE58:
|
||||
698 .LBB65:
|
||||
699 .LBB66:
|
||||
700 .LSM98:
|
||||
701 009e 8091 A900 lds r24,169
|
||||
702 00a2 8064 ori r24,lo8(64)
|
||||
703 00a4 8093 A900 sts 169,r24
|
||||
704 .LVL27:
|
||||
705 .LBE66:
|
||||
706 .LBE65:
|
||||
707 .LBB67:
|
||||
708 .LBB68:
|
||||
709 .LSM99:
|
||||
710 00a8 1093 A700 sts 167,r17
|
||||
711 /* epilogue start */
|
||||
712 .LBE68:
|
||||
713 .LBE67:
|
||||
714 .LSM100:
|
||||
715 00ac FF91 pop r31
|
||||
716 00ae EF91 pop r30
|
||||
717 00b0 BF91 pop r27
|
||||
718 00b2 AF91 pop r26
|
||||
719 00b4 9F91 pop r25
|
||||
720 00b6 8F91 pop r24
|
||||
721 00b8 7F91 pop r23
|
||||
722 00ba 6F91 pop r22
|
||||
723 00bc 5F91 pop r21
|
||||
724 00be 4F91 pop r20
|
||||
725 00c0 3F91 pop r19
|
||||
726 00c2 2F91 pop r18
|
||||
727 00c4 1F91 pop r17
|
||||
728 .LVL28:
|
||||
729 00c6 0F90 pop r0
|
||||
730 00c8 0BBE out 91-32,r0
|
||||
731 00ca 0F90 pop r0
|
||||
732 00cc 0FBE out __SREG__,r0
|
||||
733 00ce 0F90 pop r0
|
||||
734 00d0 1F90 pop __zero_reg__
|
||||
735 00d2 1895 reti
|
||||
736 .LFE139:
|
||||
738 .section .progmem.data,"a",@progbits
|
||||
741 __c.3939:
|
||||
742 0000 4D69 6372 .string "Microphone Enumerated.\r\n"
|
||||
742 6F70 686F
|
||||
742 6E65 2045
|
||||
742 6E75 6D65
|
||||
742 7261 7465
|
||||
745 __c.3935:
|
||||
746 0019 1B5B 3331 .ascii "\033[31mCould not set alt"
|
||||
746 6D43 6F75
|
||||
746 6C64 206E
|
||||
746 6F74 2073
|
||||
746 6574 2061
|
||||
747 002f 6572 6E61 .string "ernative streaming interface setting.\r\n -- Error Code: %d\r\n\033[37m"
|
||||
747 7469 7665
|
||||
747 2073 7472
|
||||
747 6561 6D69
|
||||
747 6E67 2069
|
||||
750 __c.3933:
|
||||
751 0070 1B5B .ascii "\033["
|
||||
752 0072 3331 6D43 .string "31mControl Error (Set Configuration).\r\n -- Error Code: %d\r\n\033[37m"
|
||||
752 6F6E 7472
|
||||
752 6F6C 2045
|
||||
752 7272 6F72
|
||||
752 2028 5365
|
||||
755 __c.3930:
|
||||
756 00b3 202D 2D20 .string " -- Error Code: %d\r\n\033[37m"
|
||||
756 4572 726F
|
||||
756 7220 436F
|
||||
756 6465 3A20
|
||||
756 2564 0D0A
|
||||
759 __c.3928:
|
||||
760 00cd 1B5B 3331 .string "\033[31mInvalid Device.\r\n"
|
||||
760 6D49 6E76
|
||||
760 616C 6964
|
||||
760 2044 6576
|
||||
760 6963 652E
|
||||
763 __c.3926:
|
||||
764 00e4 1B5B 3331 .string "\033[31mControl Error (Get Configuration).\r\n"
|
||||
764 6D43 6F6E
|
||||
764 7472 6F6C
|
||||
764 2045 7272
|
||||
764 6F72 2028
|
||||
767 __c.3924:
|
||||
768 010e 4765 7474 .string "Getting Config Data.\r\n"
|
||||
768 696E 6720
|
||||
768 436F 6E66
|
||||
768 6967 2044
|
||||
768 6174 612E
|
||||
769 .data
|
||||
772 C.5.5024:
|
||||
773 0000 80 .byte -128
|
||||
774 0001 BB .byte -69
|
||||
775 0002 00 .byte 0
|
||||
776 .section .progmem.data
|
||||
779 __c.3917:
|
||||
780 0125 1B5B 3331 .ascii "\033[31mDev Enum Error\r\n"
|
||||
780 6D44 6576
|
||||
780 2045 6E75
|
||||
780 6D20 4572
|
||||
780 726F 720D
|
||||
781 013a 202D 2D20 .string " -- Error Code %d\r\n -- Sub Error Code %d\r\n -- In State %d\r\n\033[37m"
|
||||
781 4572 726F
|
||||
781 7220 436F
|
||||
781 6465 2025
|
||||
781 640D 0A20
|
||||
784 __c.3910:
|
||||
785 017b 1B5B 3331 .string "\033[31mHost Mode Error\r\n -- Error Code %d\r\n\033[37m"
|
||||
785 6D48 6F73
|
||||
785 7420 4D6F
|
||||
785 6465 2045
|
||||
785 7272 6F72
|
||||
788 __c.3902:
|
||||
789 01aa 1B5B 3332 .string "\033[32mDevice Unattached.\r\n\033[37m"
|
||||
789 6D44 6576
|
||||
789 6963 6520
|
||||
789 556E 6174
|
||||
789 7461 6368
|
||||
792 __c.3897:
|
||||
793 01c9 1B5B 3332 .string "\033[32mDevice Attached.\r\n\033[37m"
|
||||
793 6D44 6576
|
||||
793 6963 6520
|
||||
793 4174 7461
|
||||
793 6368 6564
|
||||
796 __c.3888:
|
||||
797 01e6 1B5B 3336 .string "\033[36mAudio Host Demo running.\r\n\033[37m"
|
||||
797 6D41 7564
|
||||
797 696F 2048
|
||||
797 6F73 7420
|
||||
797 4465 6D6F
|
||||
894 .Letext0:
|
||||
DEFINED SYMBOLS
|
||||
*ABS*:00000000 AudioInputHost.c
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:2 *ABS*:0000003f __SREG__
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:3 *ABS*:0000003e __SP_H__
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:4 *ABS*:0000003d __SP_L__
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:5 *ABS*:00000034 __CCP__
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:6 *ABS*:00000000 __tmp_reg__
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:7 *ABS*:00000001 __zero_reg__
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:18 .text.LEDs_SetAllLEDs:00000000 LEDs_SetAllLEDs
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:39 .text.SetupHardware:00000000 SetupHardware
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:151 .text.EVENT_USB_Host_DeviceAttached:00000000 EVENT_USB_Host_DeviceAttached
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:792 .progmem.data:000001c9 __c.3897
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:173 .text.EVENT_USB_Host_DeviceUnattached:00000000 EVENT_USB_Host_DeviceUnattached
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:788 .progmem.data:000001aa __c.3902
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:195 .text.EVENT_USB_Host_DeviceEnumerationComplete:00000000 EVENT_USB_Host_DeviceEnumerationComplete
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:213 .text.EVENT_USB_Host_HostError:00000000 EVENT_USB_Host_HostError
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:784 .progmem.data:0000017b __c.3910
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:262 .text.EVENT_USB_Host_DeviceEnumerationFailed:00000000 EVENT_USB_Host_DeviceEnumerationFailed
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:779 .progmem.data:00000125 __c.3917
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:320 .text.Audio_Task:00000000 Audio_Task
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:767 .progmem.data:0000010e __c.3924
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:763 .progmem.data:000000e4 __c.3926
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:759 .progmem.data:000000cd __c.3928
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:755 .progmem.data:000000b3 __c.3930
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:750 .progmem.data:00000070 __c.3933
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:745 .progmem.data:00000019 __c.3935
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:772 .data:00000000 C.5.5024
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:741 .progmem.data:00000000 __c.3939
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:529 .text.main:00000000 main
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:796 .progmem.data:000001e6 __c.3888
|
||||
C:\Users\Dean\AppData\Local\Temp\ccMWbd5S.s:562 .text.__vector_21:00000000 __vector_21
|
||||
|
||||
UNDEFINED SYMBOLS
|
||||
USB_Init
|
||||
USARTSerialStream
|
||||
__iob
|
||||
Serial_putchar
|
||||
Serial_getchar
|
||||
puts_P
|
||||
USB_Disable
|
||||
printf_P
|
||||
USB_HostState
|
||||
ProcessConfigurationDescriptor
|
||||
USB_Host_SetDeviceConfiguration
|
||||
StreamingInterfaceIndex
|
||||
StreamingInterfaceAltSetting
|
||||
USB_Host_SetInterfaceAltSetting
|
||||
StreamingEndpointAddress
|
||||
USB_ControlRequest
|
||||
USB_Host_SendControlRequest
|
||||
USB_USBTask
|
||||
__do_copy_data
|
File diff suppressed because it is too large
Load Diff
|
@ -1,267 +0,0 @@
|
|||
U CALLBACK_HIDParser_FilterHIDReportItem
|
||||
00000000 W __heap_end
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 a __tmp_reg__
|
||||
00000000 W __vector_default
|
||||
00000000 T __vectors
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000001 a __zero_reg__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
00000034 a __CCP__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003d a __SP_L__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003e a __SP_H__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
0000003f a __SREG__
|
||||
00000098 t __c.3939
|
||||
000000b1 t __c.3935
|
||||
00000108 t __c.3933
|
||||
0000014b t __c.3930
|
||||
00000165 t __c.3928
|
||||
0000017c t __c.3926
|
||||
000001a6 t __c.3924
|
||||
000001bd t __c.3917
|
||||
00000213 t __c.3910
|
||||
00000242 t __c.3902
|
||||
00000261 t __c.3897
|
||||
0000027e t __c.3888
|
||||
000002a4 T __ctors_end
|
||||
000002a4 T __ctors_start
|
||||
000002a4 T __dtors_end
|
||||
000002a4 T __dtors_start
|
||||
000002a4 W __init
|
||||
000002a4 T __trampolines_end
|
||||
000002a4 T __trampolines_start
|
||||
000002b0 T __do_copy_data
|
||||
000002ca T __do_clear_bss
|
||||
000002d2 t .do_clear_bss_loop
|
||||
000002d4 t .do_clear_bss_start
|
||||
000002e0 T __bad_interrupt
|
||||
000002e0 W __vector_1
|
||||
000002e0 W __vector_11
|
||||
000002e0 W __vector_12
|
||||
000002e0 W __vector_13
|
||||
000002e0 W __vector_14
|
||||
000002e0 W __vector_15
|
||||
000002e0 W __vector_16
|
||||
000002e0 W __vector_17
|
||||
000002e0 W __vector_18
|
||||
000002e0 W __vector_19
|
||||
000002e0 W __vector_2
|
||||
000002e0 W __vector_20
|
||||
000002e0 W __vector_22
|
||||
000002e0 W __vector_23
|
||||
000002e0 W __vector_24
|
||||
000002e0 W __vector_25
|
||||
000002e0 W __vector_26
|
||||
000002e0 W __vector_27
|
||||
000002e0 W __vector_28
|
||||
000002e0 W __vector_29
|
||||
000002e0 W __vector_3
|
||||
000002e0 W __vector_30
|
||||
000002e0 W __vector_31
|
||||
000002e0 W __vector_32
|
||||
000002e0 W __vector_33
|
||||
000002e0 W __vector_34
|
||||
000002e0 W __vector_35
|
||||
000002e0 W __vector_36
|
||||
000002e0 W __vector_37
|
||||
000002e0 W __vector_4
|
||||
000002e0 W __vector_5
|
||||
000002e0 W __vector_6
|
||||
000002e0 W __vector_7
|
||||
000002e0 W __vector_8
|
||||
000002e0 W __vector_9
|
||||
000002e2 t LEDs_SetAllLEDs
|
||||
000002ec T SetupHardware
|
||||
0000037e T EVENT_USB_Host_DeviceAttached
|
||||
00000388 T EVENT_USB_Host_DeviceUnattached
|
||||
00000392 T EVENT_USB_Host_DeviceEnumerationComplete
|
||||
00000396 T EVENT_USB_Host_HostError
|
||||
000003d4 T EVENT_USB_Host_DeviceEnumerationFailed
|
||||
00000424 T Audio_Task
|
||||
00000558 T main
|
||||
0000056c T __vector_21
|
||||
0000063e T DComp_NextAudioControlInterface
|
||||
00000660 T DComp_NextAudioStreamInterface
|
||||
00000682 T DComp_NextAudioInterfaceDataEndpoint
|
||||
000006a4 T ProcessConfigurationDescriptor
|
||||
000007d6 t USB_Host_ResetDevice
|
||||
0000087e T USB_Host_WaitMS
|
||||
00000928 T USB_Host_ProcessNextHostState
|
||||
00000b8c T USB_Host_SetDeviceConfiguration
|
||||
00000bb8 T USB_Host_SetInterfaceAltSetting
|
||||
00000be6 T Pipe_ConfigurePipe
|
||||
00000cb4 T Pipe_ClearPipes
|
||||
00000cdc T USB_Disable
|
||||
00000d0c T USB_ResetInterface
|
||||
00000da8 T USB_Init
|
||||
00000dba T USB_INT_DisableAllInterrupts
|
||||
00000dca T USB_INT_ClearAllInterrupts
|
||||
00000dd4 T __vector_10
|
||||
00000efa T USB_Host_GetDeviceConfigDescriptor
|
||||
00000fa8 T USB_GetNextDescriptorComp
|
||||
0000102e W EVENT_USB_Host_StartOfFrame
|
||||
0000102e T USB_Event_Stub
|
||||
00001030 t USB_Host_WaitForIOS
|
||||
00001082 T USB_Host_SendControlRequest
|
||||
000012ae T USB_USBTask
|
||||
000012ca T Serial_putchar
|
||||
000012dc T Serial_getchar
|
||||
00001302 T printf_P
|
||||
00001340 T puts_P
|
||||
000013b0 T vfprintf
|
||||
000017b6 T strnlen_P
|
||||
000017cc T strnlen
|
||||
000017e2 T fputc
|
||||
0000183a T __ultoa_invert
|
||||
000018f6 T _exit
|
||||
000018f6 W exit
|
||||
000018f8 t __stop_program
|
||||
000018fa A __data_load_start
|
||||
000018fa T _etext
|
||||
00001916 A __data_load_end
|
||||
000020ff W __stack
|
||||
00800100 d C.5.5024
|
||||
00800100 D __data_start
|
||||
00800103 d C.0.3420
|
||||
0080010b d C.10.3637
|
||||
00800113 d C.7.3627
|
||||
0080011b D USB_ControlPipeSize
|
||||
0080011c B StreamingInterfaceIndex
|
||||
0080011c B __bss_start
|
||||
0080011c D __data_end
|
||||
0080011c D _edata
|
||||
0080011d B StreamingInterfaceAltSetting
|
||||
0080011e B StreamingEndpointAddress
|
||||
0080011f b PostWaitState.2492
|
||||
00800120 b WaitMSRemaining.2491
|
||||
00800122 B USB_IsInitialized
|
||||
00800123 B USB_ControlRequest
|
||||
0080012b B USB_HostState
|
||||
0080012c B USARTSerialStream
|
||||
0080013a B __iob
|
||||
00800140 B __bss_end
|
||||
00800140 N _end
|
||||
00810000 N __eeprom_end
|
|
@ -37,10 +37,24 @@
|
|||
|
||||
#include "ConfigDescriptor.h"
|
||||
|
||||
/** Index of the currently used Audio Streaming Interface within the device. */
|
||||
uint8_t StreamingInterfaceIndex = 0;
|
||||
|
||||
/** Alternative Setting of the currently used Audio Streaming Interface within the device. */
|
||||
uint8_t StreamingInterfaceAltSetting = 0;
|
||||
|
||||
/** Address of the streaming audio endpoint currently in use within the device. */
|
||||
uint8_t StreamingEndpointAddress = 0;
|
||||
|
||||
|
||||
/** Reads and processes an attached device's descriptors, to determine compatibility and pipe configurations. This
|
||||
* routine will read in the entire configuration descriptor, and configure the hosts pipes to correctly communicate
|
||||
* with compatible devices.
|
||||
*
|
||||
* This routine searches for a Streaming Audio interface descriptor containing a valid Isochronous audio endpoint.
|
||||
*
|
||||
* \return An error code from the \ref RNDISHost_GetConfigDescriptorDataCodes_t enum.
|
||||
*/
|
||||
uint8_t ProcessConfigurationDescriptor(void)
|
||||
{
|
||||
uint8_t ConfigDescriptorData[512];
|
||||
|
@ -66,12 +80,17 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
|
||||
while (!(DataINEndpoint))
|
||||
{
|
||||
/* See if we've found a likely compatible interface, and if there is an endpoint within that interface */
|
||||
if (!(AudioControlInterface) ||
|
||||
USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
|
||||
DComp_NextAudioInterfaceDataEndpoint) != DESCRIPTOR_SEARCH_COMP_Found)
|
||||
{
|
||||
if (!(AudioControlInterface))
|
||||
/* Check if we haven't found an Audio Control interface yet, or if we have run out of related Audio Streaming interfaces */
|
||||
if (!(AudioControlInterface) ||
|
||||
USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
|
||||
DComp_NextAudioStreamInterface) != DESCRIPTOR_SEARCH_COMP_Found)
|
||||
{
|
||||
/* Find a new Audio Control interface if the current one doesn't contain a compatible streaming interface */
|
||||
if (USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
|
||||
DComp_NextAudioControlInterface) != DESCRIPTOR_SEARCH_COMP_Found)
|
||||
{
|
||||
|
@ -81,20 +100,14 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
|
||||
/* Save the interface in case we need to refer back to it later */
|
||||
AudioControlInterface = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Interface_t);
|
||||
}
|
||||
|
||||
if (USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
|
||||
DComp_NextAudioStreamInterface) != DESCRIPTOR_SEARCH_COMP_Found)
|
||||
{
|
||||
|
||||
/* Find the next Audio Streaming interface within that Audio Control interface */
|
||||
if (USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation,
|
||||
DComp_NextAudioControlInterface) != DESCRIPTOR_SEARCH_COMP_Found)
|
||||
DComp_NextAudioStreamInterface) != DESCRIPTOR_SEARCH_COMP_Found)
|
||||
{
|
||||
/* Descriptor not found, error out */
|
||||
return NoCompatibleInterfaceFound;
|
||||
}
|
||||
|
||||
/* Save the interface in case we need to refer back to it later */
|
||||
AudioControlInterface = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Interface_t);
|
||||
}
|
||||
|
||||
/* Save the interface in case we need to refer back to it later */
|
||||
|
@ -124,6 +137,14 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
return SuccessfulConfigRead;
|
||||
}
|
||||
|
||||
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
|
||||
* configuration descriptor, to search for a specific sub descriptor. It can also be used to abort the configuration
|
||||
* descriptor processing if an incompatible descriptor configuration is found.
|
||||
*
|
||||
* This comparator searches for the next Interface descriptor of the correct Audio Control Class, Subclass and Protocol values.
|
||||
*
|
||||
* \return A value from the DSEARCH_Return_ErrorCodes_t enum
|
||||
*/
|
||||
uint8_t DComp_NextAudioControlInterface(void* CurrentDescriptor)
|
||||
{
|
||||
USB_Descriptor_Header_t* Header = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Header_t);
|
||||
|
@ -143,6 +164,14 @@ uint8_t DComp_NextAudioControlInterface(void* CurrentDescriptor)
|
|||
return DESCRIPTOR_SEARCH_NotFound;
|
||||
}
|
||||
|
||||
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
|
||||
* configuration descriptor, to search for a specific sub descriptor. It can also be used to abort the configuration
|
||||
* descriptor processing if an incompatible descriptor configuration is found.
|
||||
*
|
||||
* This comparator searches for the next Interface descriptor of the correct Audio Streaming Class, Subclass and Protocol values.
|
||||
*
|
||||
* \return A value from the DSEARCH_Return_ErrorCodes_t enum
|
||||
*/
|
||||
uint8_t DComp_NextAudioStreamInterface(void* CurrentDescriptor)
|
||||
{
|
||||
USB_Descriptor_Header_t* Header = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Header_t);
|
||||
|
@ -162,6 +191,15 @@ uint8_t DComp_NextAudioStreamInterface(void* CurrentDescriptor)
|
|||
return DESCRIPTOR_SEARCH_NotFound;
|
||||
}
|
||||
|
||||
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
|
||||
* configuration descriptor, to search for a specific sub descriptor. It can also be used to abort the configuration
|
||||
* descriptor processing if an incompatible descriptor configuration is found.
|
||||
*
|
||||
* This comparator searches for the next Isochronous Endpoint descriptor within the current interface, aborting the
|
||||
* search if another interface descriptor is found before the next endpoint.
|
||||
*
|
||||
* \return A value from the DSEARCH_Return_ErrorCodes_t enum
|
||||
*/
|
||||
uint8_t DComp_NextAudioInterfaceDataEndpoint(void* CurrentDescriptor)
|
||||
{
|
||||
USB_Descriptor_Header_t* Header = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Header_t);
|
||||
|
@ -180,4 +218,3 @@ uint8_t DComp_NextAudioInterfaceDataEndpoint(void* CurrentDescriptor)
|
|||
|
||||
return DESCRIPTOR_SEARCH_NotFound;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,400 +0,0 @@
|
|||
1 .file "ConfigDescriptor.c"
|
||||
2 __SREG__ = 0x3f
|
||||
3 __SP_H__ = 0x3e
|
||||
4 __SP_L__ = 0x3d
|
||||
5 __CCP__ = 0x34
|
||||
6 __tmp_reg__ = 0
|
||||
7 __zero_reg__ = 1
|
||||
15 .Ltext0:
|
||||
16 .section .text.DComp_NextAudioControlInterface,"ax",@progbits
|
||||
17 .global DComp_NextAudioControlInterface
|
||||
19 DComp_NextAudioControlInterface:
|
||||
20 .LFB132:
|
||||
21 .LSM0:
|
||||
22 .LVL0:
|
||||
23 /* prologue: function */
|
||||
24 /* frame size = 0 */
|
||||
25 /* stack size = 0 */
|
||||
26 .L__stack_usage = 0
|
||||
27 0000 FC01 movw r30,r24
|
||||
28 .LVL1:
|
||||
29 .LSM1:
|
||||
30 0002 8181 ldd r24,Z+1
|
||||
31 .LVL2:
|
||||
32 0004 8430 cpi r24,lo8(4)
|
||||
33 0006 01F4 brne .L5
|
||||
34 .LVL3:
|
||||
35 .LBB2:
|
||||
36 .LSM2:
|
||||
37 0008 8581 ldd r24,Z+5
|
||||
38 000a 8130 cpi r24,lo8(1)
|
||||
39 000c 01F4 brne .L5
|
||||
40 .LSM3:
|
||||
41 000e 8681 ldd r24,Z+6
|
||||
42 0010 8130 cpi r24,lo8(1)
|
||||
43 0012 01F4 brne .L5
|
||||
44 .LSM4:
|
||||
45 0014 8781 ldd r24,Z+7
|
||||
46 0016 8823 tst r24
|
||||
47 0018 01F0 breq .L6
|
||||
48 .LVL4:
|
||||
49 .L5:
|
||||
50 .LSM5:
|
||||
51 001a 82E0 ldi r24,lo8(2)
|
||||
52 001c 0895 ret
|
||||
53 .LVL5:
|
||||
54 .L6:
|
||||
55 .LSM6:
|
||||
56 001e 80E0 ldi r24,lo8(0)
|
||||
57 .LBE2:
|
||||
58 .LSM7:
|
||||
59 0020 0895 ret
|
||||
60 .LFE132:
|
||||
62 .section .text.DComp_NextAudioStreamInterface,"ax",@progbits
|
||||
63 .global DComp_NextAudioStreamInterface
|
||||
65 DComp_NextAudioStreamInterface:
|
||||
66 .LFB133:
|
||||
67 .LSM8:
|
||||
68 .LVL6:
|
||||
69 /* prologue: function */
|
||||
70 /* frame size = 0 */
|
||||
71 /* stack size = 0 */
|
||||
72 .L__stack_usage = 0
|
||||
73 0000 FC01 movw r30,r24
|
||||
74 .LVL7:
|
||||
75 .LSM9:
|
||||
76 0002 8181 ldd r24,Z+1
|
||||
77 .LVL8:
|
||||
78 0004 8430 cpi r24,lo8(4)
|
||||
79 0006 01F4 brne .L11
|
||||
80 .LVL9:
|
||||
81 .LBB3:
|
||||
82 .LSM10:
|
||||
83 0008 8581 ldd r24,Z+5
|
||||
84 000a 8130 cpi r24,lo8(1)
|
||||
85 000c 01F4 brne .L11
|
||||
86 .LSM11:
|
||||
87 000e 8681 ldd r24,Z+6
|
||||
88 0010 8230 cpi r24,lo8(2)
|
||||
89 0012 01F4 brne .L11
|
||||
90 .LSM12:
|
||||
91 0014 8781 ldd r24,Z+7
|
||||
92 0016 8823 tst r24
|
||||
93 0018 01F0 breq .L12
|
||||
94 .LVL10:
|
||||
95 .L11:
|
||||
96 .LSM13:
|
||||
97 001a 82E0 ldi r24,lo8(2)
|
||||
98 001c 0895 ret
|
||||
99 .LVL11:
|
||||
100 .L12:
|
||||
101 .LSM14:
|
||||
102 001e 80E0 ldi r24,lo8(0)
|
||||
103 .LBE3:
|
||||
104 .LSM15:
|
||||
105 0020 0895 ret
|
||||
106 .LFE133:
|
||||
108 .section .text.DComp_NextAudioInterfaceDataEndpoint,"ax",@progbits
|
||||
109 .global DComp_NextAudioInterfaceDataEndpoint
|
||||
111 DComp_NextAudioInterfaceDataEndpoint:
|
||||
112 .LFB134:
|
||||
113 .LSM16:
|
||||
114 .LVL12:
|
||||
115 /* prologue: function */
|
||||
116 /* frame size = 0 */
|
||||
117 /* stack size = 0 */
|
||||
118 .L__stack_usage = 0
|
||||
119 0000 FC01 movw r30,r24
|
||||
120 .LVL13:
|
||||
121 .LSM17:
|
||||
122 0002 8181 ldd r24,Z+1
|
||||
123 .LVL14:
|
||||
124 0004 8530 cpi r24,lo8(5)
|
||||
125 0006 01F4 brne .L14
|
||||
126 .LVL15:
|
||||
127 .LBB4:
|
||||
128 .LSM18:
|
||||
129 0008 8381 ldd r24,Z+3
|
||||
130 000a 8370 andi r24,lo8(3)
|
||||
131 000c 8130 cpi r24,lo8(1)
|
||||
132 000e 01F4 brne .L18
|
||||
133 0010 00C0 rjmp .L16
|
||||
134 .LVL16:
|
||||
135 .L14:
|
||||
136 .LBE4:
|
||||
137 .LSM19:
|
||||
138 0012 8430 cpi r24,lo8(4)
|
||||
139 0014 01F0 breq .L17
|
||||
140 .L18:
|
||||
141 .LSM20:
|
||||
142 0016 82E0 ldi r24,lo8(2)
|
||||
143 0018 0895 ret
|
||||
144 .LVL17:
|
||||
145 .L16:
|
||||
146 .LBB5:
|
||||
147 .LSM21:
|
||||
148 001a 80E0 ldi r24,lo8(0)
|
||||
149 001c 0895 ret
|
||||
150 .LVL18:
|
||||
151 .L17:
|
||||
152 .LBE5:
|
||||
153 .LSM22:
|
||||
154 001e 81E0 ldi r24,lo8(1)
|
||||
155 .LSM23:
|
||||
156 0020 0895 ret
|
||||
157 .LFE134:
|
||||
159 .section .text.ProcessConfigurationDescriptor,"ax",@progbits
|
||||
160 .global ProcessConfigurationDescriptor
|
||||
162 ProcessConfigurationDescriptor:
|
||||
163 .LFB131:
|
||||
164 .LSM24:
|
||||
165 0000 AF92 push r10
|
||||
166 0002 BF92 push r11
|
||||
167 0004 CF92 push r12
|
||||
168 0006 DF92 push r13
|
||||
169 0008 EF92 push r14
|
||||
170 000a FF92 push r15
|
||||
171 000c 0F93 push r16
|
||||
172 000e 1F93 push r17
|
||||
173 0010 DF93 push r29
|
||||
174 0012 CF93 push r28
|
||||
175 0014 CDB7 in r28,__SP_L__
|
||||
176 0016 DEB7 in r29,__SP_H__
|
||||
177 0018 C450 subi r28,lo8(-(-516))
|
||||
178 001a D240 sbci r29,hi8(-(-516))
|
||||
179 001c 0FB6 in __tmp_reg__,__SREG__
|
||||
180 001e F894 cli
|
||||
181 0020 DEBF out __SP_H__,r29
|
||||
182 0022 0FBE out __SREG__,__tmp_reg__
|
||||
183 0024 CDBF out __SP_L__,r28
|
||||
184 /* prologue: function */
|
||||
185 /* frame size = 516 */
|
||||
186 /* stack size = 526 */
|
||||
187 .L__stack_usage = 526
|
||||
188 .LSM25:
|
||||
189 0026 AE01 movw r20,r28
|
||||
190 0028 4B5F subi r20,lo8(-(5))
|
||||
191 002a 5F4F sbci r21,hi8(-(5))
|
||||
192 002c 5A83 std Y+2,r21
|
||||
193 002e 4983 std Y+1,r20
|
||||
194 .LVL19:
|
||||
195 .LSM26:
|
||||
196 0030 23E0 ldi r18,lo8(3)
|
||||
197 0032 E22E mov r14,r18
|
||||
198 0034 F12C mov r15,__zero_reg__
|
||||
199 0036 EC0E add r14,r28
|
||||
200 0038 FD1E adc r15,r29
|
||||
201 003a 81E0 ldi r24,lo8(1)
|
||||
202 003c B701 movw r22,r14
|
||||
203 003e 20E0 ldi r18,lo8(512)
|
||||
204 0040 32E0 ldi r19,hi8(512)
|
||||
205 0042 0E94 0000 call USB_Host_GetDeviceConfigDescriptor
|
||||
206 0046 8530 cpi r24,lo8(5)
|
||||
207 0048 01F4 brne .+2
|
||||
208 004a 00C0 rjmp .L31
|
||||
209 004c 8630 cpi r24,lo8(6)
|
||||
210 004e 01F0 breq .L23
|
||||
211 0050 8823 tst r24
|
||||
212 0052 01F4 brne .L34
|
||||
213 0054 00E0 ldi r16,lo8(0)
|
||||
214 0056 10E0 ldi r17,hi8(0)
|
||||
215 0058 CC24 clr r12
|
||||
216 005a DD24 clr r13
|
||||
217 005c 5701 movw r10,r14
|
||||
218 005e 7E01 movw r14,r28
|
||||
219 0060 0894 sec
|
||||
220 0062 E11C adc r14,__zero_reg__
|
||||
221 0064 F11C adc r15,__zero_reg__
|
||||
222 0066 00C0 rjmp .L24
|
||||
223 .L23:
|
||||
224 .LSM27:
|
||||
225 0068 83E0 ldi r24,lo8(3)
|
||||
226 006a 00C0 rjmp .L22
|
||||
227 .L34:
|
||||
228 .LSM28:
|
||||
229 006c 81E0 ldi r24,lo8(1)
|
||||
230 006e 00C0 rjmp .L22
|
||||
231 .LVL20:
|
||||
232 .L30:
|
||||
233 .LSM29:
|
||||
234 0070 9C01 movw r18,r24
|
||||
235 0072 032F mov r16,r19
|
||||
236 0074 182F mov r17,r24
|
||||
237 .LVL21:
|
||||
238 .L24:
|
||||
239 .LBB6:
|
||||
240 .LSM30:
|
||||
241 0076 C114 cp r12,__zero_reg__
|
||||
242 0078 D104 cpc r13,__zero_reg__
|
||||
243 007a 01F0 breq .L25
|
||||
244 .LSM31:
|
||||
245 007c C501 movw r24,r10
|
||||
246 007e B701 movw r22,r14
|
||||
247 0080 40E0 ldi r20,lo8(gs(DComp_NextAudioInterfaceDataEndpoint))
|
||||
248 0082 50E0 ldi r21,hi8(gs(DComp_NextAudioInterfaceDataEndpoint))
|
||||
249 0084 0E94 0000 call USB_GetNextDescriptorComp
|
||||
250 .LSM32:
|
||||
251 0088 8823 tst r24
|
||||
252 008a 01F4 brne .L26
|
||||
253 008c 00C0 rjmp .L36
|
||||
254 .L25:
|
||||
255 .LSM33:
|
||||
256 008e C501 movw r24,r10
|
||||
257 0090 B701 movw r22,r14
|
||||
258 0092 40E0 ldi r20,lo8(gs(DComp_NextAudioControlInterface))
|
||||
259 0094 50E0 ldi r21,hi8(gs(DComp_NextAudioControlInterface))
|
||||
260 0096 0E94 0000 call USB_GetNextDescriptorComp
|
||||
261 009a 8823 tst r24
|
||||
262 009c 01F4 brne .L33
|
||||
263 .LSM34:
|
||||
264 009e C980 ldd r12,Y+1
|
||||
265 00a0 DA80 ldd r13,Y+2
|
||||
266 .LVL22:
|
||||
267 .L26:
|
||||
268 .LSM35:
|
||||
269 00a2 C501 movw r24,r10
|
||||
270 00a4 B701 movw r22,r14
|
||||
271 00a6 40E0 ldi r20,lo8(gs(DComp_NextAudioStreamInterface))
|
||||
272 00a8 50E0 ldi r21,hi8(gs(DComp_NextAudioStreamInterface))
|
||||
273 00aa 0E94 0000 call USB_GetNextDescriptorComp
|
||||
274 00ae 8823 tst r24
|
||||
275 00b0 01F0 breq .L28
|
||||
276 .LSM36:
|
||||
277 00b2 C501 movw r24,r10
|
||||
278 00b4 B701 movw r22,r14
|
||||
279 00b6 40E0 ldi r20,lo8(gs(DComp_NextAudioControlInterface))
|
||||
280 00b8 50E0 ldi r21,hi8(gs(DComp_NextAudioControlInterface))
|
||||
281 00ba 0E94 0000 call USB_GetNextDescriptorComp
|
||||
282 00be 8823 tst r24
|
||||
283 00c0 01F4 brne .L33
|
||||
284 .LSM37:
|
||||
285 00c2 C980 ldd r12,Y+1
|
||||
286 00c4 DA80 ldd r13,Y+2
|
||||
287 .LVL23:
|
||||
288 .L28:
|
||||
289 .LSM38:
|
||||
290 00c6 0981 ldd r16,Y+1
|
||||
291 00c8 1A81 ldd r17,Y+2
|
||||
292 .LVL24:
|
||||
293 .LSM39:
|
||||
294 00ca 00C0 rjmp .L29
|
||||
295 .LVL25:
|
||||
296 .L36:
|
||||
297 .LSM40:
|
||||
298 00cc E981 ldd r30,Y+1
|
||||
299 00ce FA81 ldd r31,Y+2
|
||||
300 .LVL26:
|
||||
301 .LSM41:
|
||||
302 00d0 8281 ldd r24,Z+2
|
||||
303 00d2 87FF sbrs r24,7
|
||||
304 00d4 00C0 rjmp .L29
|
||||
305 .LSM42:
|
||||
306 00d6 902F mov r25,r16
|
||||
307 00d8 812F mov r24,r17
|
||||
308 .LVL27:
|
||||
309 .LBE6:
|
||||
310 .LSM43:
|
||||
311 00da 3097 sbiw r30,0
|
||||
312 00dc 01F0 breq .L30
|
||||
313 .LSM44:
|
||||
314 00de D801 movw r26,r16
|
||||
315 00e0 1296 adiw r26,2
|
||||
316 00e2 8C91 ld r24,X
|
||||
317 00e4 1297 sbiw r26,2
|
||||
318 00e6 8093 0000 sts StreamingInterfaceIndex,r24
|
||||
319 .LSM45:
|
||||
320 00ea 1396 adiw r26,3
|
||||
321 00ec 8C91 ld r24,X
|
||||
322 00ee 8093 0000 sts StreamingInterfaceAltSetting,r24
|
||||
323 .LSM46:
|
||||
324 00f2 2281 ldd r18,Z+2
|
||||
325 00f4 2093 0000 sts StreamingEndpointAddress,r18
|
||||
326 .LSM47:
|
||||
327 00f8 0481 ldd r16,Z+4
|
||||
328 00fa 1581 ldd r17,Z+5
|
||||
329 .LVL28:
|
||||
330 00fc 81E0 ldi r24,lo8(1)
|
||||
331 00fe 61E0 ldi r22,lo8(1)
|
||||
332 0100 40E1 ldi r20,lo8(16)
|
||||
333 0102 94E0 ldi r25,lo8(4)
|
||||
334 0104 E92E mov r14,r25
|
||||
335 .LVL29:
|
||||
336 0106 0E94 0000 call Pipe_ConfigurePipe
|
||||
337 .LVL30:
|
||||
338 .LSM48:
|
||||
339 010a 80E0 ldi r24,lo8(0)
|
||||
340 010c 00C0 rjmp .L22
|
||||
341 .LVL31:
|
||||
342 .L31:
|
||||
343 .LSM49:
|
||||
344 010e 82E0 ldi r24,lo8(2)
|
||||
345 0110 00C0 rjmp .L22
|
||||
346 .LVL32:
|
||||
347 .L33:
|
||||
348 .LBB7:
|
||||
349 .LSM50:
|
||||
350 0112 84E0 ldi r24,lo8(4)
|
||||
351 .L22:
|
||||
352 /* epilogue start */
|
||||
353 .LBE7:
|
||||
354 .LSM51:
|
||||
355 0114 CC5F subi r28,lo8(-(516))
|
||||
356 0116 DD4F sbci r29,hi8(-(516))
|
||||
357 0118 0FB6 in __tmp_reg__,__SREG__
|
||||
358 011a F894 cli
|
||||
359 011c DEBF out __SP_H__,r29
|
||||
360 011e 0FBE out __SREG__,__tmp_reg__
|
||||
361 0120 CDBF out __SP_L__,r28
|
||||
362 0122 CF91 pop r28
|
||||
363 0124 DF91 pop r29
|
||||
364 0126 1F91 pop r17
|
||||
365 0128 0F91 pop r16
|
||||
366 012a FF90 pop r15
|
||||
367 012c EF90 pop r14
|
||||
368 012e DF90 pop r13
|
||||
369 0130 CF90 pop r12
|
||||
370 0132 BF90 pop r11
|
||||
371 0134 AF90 pop r10
|
||||
372 0136 0895 ret
|
||||
373 .L29:
|
||||
374 .LVL33:
|
||||
375 .LSM52:
|
||||
376 0138 902F mov r25,r16
|
||||
377 013a 812F mov r24,r17
|
||||
378 013c 00C0 rjmp .L30
|
||||
379 .LFE131:
|
||||
381 .global StreamingInterfaceIndex
|
||||
382 .global StreamingInterfaceIndex
|
||||
383 .section .bss
|
||||
386 StreamingInterfaceIndex:
|
||||
387 0000 00 .skip 1,0
|
||||
388 .global StreamingInterfaceAltSetting
|
||||
389 .global StreamingInterfaceAltSetting
|
||||
392 StreamingInterfaceAltSetting:
|
||||
393 0001 00 .skip 1,0
|
||||
394 .global StreamingEndpointAddress
|
||||
395 .global StreamingEndpointAddress
|
||||
398 StreamingEndpointAddress:
|
||||
399 0002 00 .skip 1,0
|
||||
448 .Letext0:
|
||||
DEFINED SYMBOLS
|
||||
*ABS*:00000000 ConfigDescriptor.c
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:2 *ABS*:0000003f __SREG__
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:3 *ABS*:0000003e __SP_H__
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:4 *ABS*:0000003d __SP_L__
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:5 *ABS*:00000034 __CCP__
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:6 *ABS*:00000000 __tmp_reg__
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:7 *ABS*:00000001 __zero_reg__
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:19 .text.DComp_NextAudioControlInterface:00000000 DComp_NextAudioControlInterface
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:65 .text.DComp_NextAudioStreamInterface:00000000 DComp_NextAudioStreamInterface
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:111 .text.DComp_NextAudioInterfaceDataEndpoint:00000000 DComp_NextAudioInterfaceDataEndpoint
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:162 .text.ProcessConfigurationDescriptor:00000000 ProcessConfigurationDescriptor
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:386 .bss:00000000 StreamingInterfaceIndex
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:392 .bss:00000001 StreamingInterfaceAltSetting
|
||||
C:\Users\Dean\AppData\Local\Temp\cc2CU2Sj.s:398 .bss:00000002 StreamingEndpointAddress
|
||||
|
||||
UNDEFINED SYMBOLS
|
||||
USB_Host_GetDeviceConfigDescriptor
|
||||
USB_GetNextDescriptorComp
|
||||
Pipe_ConfigurePipe
|
||||
__do_clear_bss
|
Binary file not shown.
Loading…
Reference in New Issue