root / branches / colonetmk2 / code / projects / swarm / robot / main.lst @ 1456
History | View | Annotate | Download (3.99 KB)
1 |
1 .file "main.c" |
---|---|
2 |
2 __SREG__ = 0x3f |
3 |
3 __SP_H__ = 0x3e |
4 |
4 __SP_L__ = 0x3d |
5 |
5 __CCP__ = 0x34 |
6 |
6 __tmp_reg__ = 0 |
7 |
7 __zero_reg__ = 1 |
8 |
8 .global __do_copy_data |
9 |
9 .global __do_clear_bss |
10 |
12 .text |
11 |
13 .Ltext0: |
12 |
119 .data |
13 |
120 .LC0: |
14 |
121 0000 696E 6974 .string "initialized\r\n" |
15 |
121 6961 6C69 |
16 |
121 7A65 640D |
17 |
121 0A00 |
18 |
122 .text |
19 |
124 .global main |
20 |
126 main: |
21 |
127 .stabd 46,0,0 |
22 |
1:main.c **** #include <dragonfly_lib.h> |
23 |
2:main.c **** #include <wireless.h> |
24 |
3:main.c **** #include <wl_token_ring.h> |
25 |
4:main.c **** //#include <xbee.h> |
26 |
5:main.c **** |
27 |
6:main.c **** //#define SWARM_PACKET_GROUP_ID 0x8 |
28 |
7:main.c **** |
29 |
8:main.c **** //static PacketGroupHandler swarm_pgh; |
30 |
9:main.c **** //static void swarm_handle_receive(char type, int wl_source, unsigned char* packet, int length); |
31 |
10:main.c **** |
32 |
11:main.c **** int main(void) |
33 |
12:main.c **** { |
34 |
129 .LM0: |
35 |
130 .LFBB1: |
36 |
131 /* prologue: function */ |
37 |
132 /* frame size = 0 */ |
38 |
13:main.c **** dragonfly_init(ALL_ON); |
39 |
134 .LM1: |
40 |
135 0000 8FEF ldi r24,lo8(2047) |
41 |
136 0002 97E0 ldi r25,hi8(2047) |
42 |
137 0004 0E94 0000 call dragonfly_init |
43 |
14:main.c **** |
44 |
15:main.c **** wl_init(); |
45 |
139 .LM2: |
46 |
140 0008 0E94 0000 call wl_init |
47 |
16:main.c **** wl_set_channel(0xF); |
48 |
142 .LM3: |
49 |
143 000c 8FE0 ldi r24,lo8(15) |
50 |
144 000e 90E0 ldi r25,hi8(15) |
51 |
145 0010 0E94 0000 call wl_set_channel |
52 |
17:main.c **** |
53 |
18:main.c **** /*swarm_pgh.groupCode = SWARM_PACKET_GROUP_ID; |
54 |
19:main.c **** swarm_pgh.timeout_handler = NULL; |
55 |
20:main.c **** swarm_pgh.handle_response = NULL; |
56 |
21:main.c **** swarm_pgh.handle_receive = swarm_handle_receive; |
57 |
22:main.c **** swarm_pgh.unregister = NULL; |
58 |
23:main.c **** wl_register_packet_group(&swarm_pgh);*/ |
59 |
24:main.c **** |
60 |
25:main.c **** wl_token_ring_register(); |
61 |
147 .LM4: |
62 |
148 0014 0E94 0000 call wl_token_ring_register |
63 |
26:main.c **** wl_token_ring_join(); |
64 |
150 .LM5: |
65 |
151 0018 0E94 0000 call wl_token_ring_join |
66 |
27:main.c **** |
67 |
28:main.c **** usb_puts("initialized\r\n"); |
68 |
153 .LM6: |
69 |
154 001c 80E0 ldi r24,lo8(.LC0) |
70 |
155 001e 90E0 ldi r25,hi8(.LC0) |
71 |
156 0020 0E94 0000 call usb_puts |
72 |
157 .L2: |
73 |
29:main.c **** |
74 |
30:main.c **** /*char packet[] = { 0x0, 0x1, 0x0, 0x3, 0x4, 0x0, 0x6, 0x7, 0x8, 0x0, 0xa, 0xb, 0xc, 0xd, 0x0, |
75 |
31:main.c **** int length = 17; |
76 |
32:main.c **** |
77 |
33:main.c **** int num = 0;*/ |
78 |
34:main.c **** |
79 |
35:main.c **** while (1) |
80 |
36:main.c **** { |
81 |
37:main.c **** wl_do(); |
82 |
159 .LM7: |
83 |
160 0024 0E94 0000 call wl_do |
84 |
161 0028 00C0 rjmp .L2 |
85 |
163 .Lscope1: |
86 |
165 .stabd 78,0,0 |
87 |
167 .Letext0: |
88 |
DEFINED SYMBOLS |
89 |
*ABS*:0000000000000000 main.c |
90 |
/tmp/cclr52J4.s:2 *ABS*:000000000000003f __SREG__ |
91 |
/tmp/cclr52J4.s:3 *ABS*:000000000000003e __SP_H__ |
92 |
/tmp/cclr52J4.s:4 *ABS*:000000000000003d __SP_L__ |
93 |
/tmp/cclr52J4.s:5 *ABS*:0000000000000034 __CCP__ |
94 |
/tmp/cclr52J4.s:6 *ABS*:0000000000000000 __tmp_reg__ |
95 |
/tmp/cclr52J4.s:7 *ABS*:0000000000000001 __zero_reg__ |
96 |
/tmp/cclr52J4.s:126 .text:0000000000000000 main |
97 |
|
98 |
UNDEFINED SYMBOLS |
99 |
__do_copy_data |
100 |
__do_clear_bss |
101 |
dragonfly_init |
102 |
wl_init |
103 |
wl_set_channel |
104 |
wl_token_ring_register |
105 |
wl_token_ring_join |
106 |
usb_puts |
107 |
wl_do |