Revision 1605 branches/colonetmk2/code/projects/swarm/robot/main.lst

View differences:

main.lst
9 9
   9               		.global __do_clear_bss
10 10
  12               		.text
11 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
12
 108               		.data
13
 109               	.LC0:
14
 110 0000 696E 6974 		.string	"initialized\r\n"
15
 110      6961 6C69 
16
 110      7A65 640D 
17
 110      0A00 
18
 111               		.text
19
 113               	.global	main
20
 115               	main:
21
 116               		.stabd	46,0,0
22 22
   1:main.c        **** #include <dragonfly_lib.h>
23 23
   2:main.c        **** #include <wireless.h>
24 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
25
   4:main.c        **** 
26
   5:main.c        **** int main(void)
27
   6:main.c        **** {
28
 118               	.LM0:
29
 119               	.LFBB1:
30
 120               	/* prologue: function */
31
 121               	/* frame size = 0 */
32
   7:main.c        ****     dragonfly_init(ALL_ON);
33
 123               	.LM1:
34
 124 0000 8FEF      		ldi r24,lo8(2047)
35
 125 0002 97E0      		ldi r25,hi8(2047)
36
 126 0004 0E94 0000 		call dragonfly_init
37
   8:main.c        **** 
38
   9:main.c        ****     wl_init();
39
 128               	.LM2:
40
 129 0008 0E94 0000 		call wl_init
41
  10:main.c        ****     wl_set_channel(0xF);
42
 131               	.LM3:
43
 132 000c 8FE0      		ldi r24,lo8(15)
44
 133 000e 90E0      		ldi r25,hi8(15)
45
 134 0010 0E94 0000 		call wl_set_channel
46
  11:main.c        **** 
47
  12:main.c        ****     wl_token_ring_register();
48
 136               	.LM4:
49
 137 0014 0E94 0000 		call wl_token_ring_register
50
  13:main.c        ****     wl_token_ring_join();
51
 139               	.LM5:
52
 140 0018 0E94 0000 		call wl_token_ring_join
43 53
  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:
54
  15:main.c        ****     usb_puts("initialized\r\n");
55
 142               	.LM6:
56
 143 001c 80E0      		ldi r24,lo8(.LC0)
57
 144 001e 90E0      		ldi r25,hi8(.LC0)
58
 145 0020 0E94 0000 		call usb_puts
59
 146               	.L2:
60
  16:main.c        **** 
61
  17:main.c        ****     while (1)
62
  18:main.c        ****     {
63
  19:main.c        **** 	    wl_do();
64
 148               	.LM7:
65
 149 0024 0E94 0000 		call wl_do
66
 150 0028 00C0      		rjmp .L2
67
 152               	.Lscope1:
68
 154               		.stabd	78,0,0
69
 156               	.Letext0:
88 70
DEFINED SYMBOLS
89 71
                            *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
72
     /tmp/ccxiULPV.s:2      *ABS*:000000000000003f __SREG__
73
     /tmp/ccxiULPV.s:3      *ABS*:000000000000003e __SP_H__
74
     /tmp/ccxiULPV.s:4      *ABS*:000000000000003d __SP_L__
75
     /tmp/ccxiULPV.s:5      *ABS*:0000000000000034 __CCP__
76
     /tmp/ccxiULPV.s:6      *ABS*:0000000000000000 __tmp_reg__
77
     /tmp/ccxiULPV.s:7      *ABS*:0000000000000001 __zero_reg__
78
     /tmp/ccxiULPV.s:115    .text:0000000000000000 main
97 79

  
98 80
UNDEFINED SYMBOLS
99 81
__do_copy_data

Also available in: Unified diff