⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lst

📁 协调器的执行程序
💻 LST
📖 第 1 页 / 共 3 页
字号:
 666               		ldi r21,hhi8(1024)
 258:main.c        **** 				break;
 259:main.c        ****                   case  MAC_STATE_START_TO_SLEEP:
 260:main.c        **** 				//ADC 任务启动
 261:main.c        **** 				PLME_SET_TRX_STATE_request(FORCE_TRX_OFF);
 667               	16,lo8(gs(GET_ADC_value))
 668               		ldi r17,hi8(gs(GET_ADC_value))
 669 02a6 83E0      		call kertimer_start
 262:main.c        **** 				 DATA_READY=FALSE;
 671               	9:
 672               		call Leds_greenOff
 263:main.c        ****                                 kertimer_start(0, KERTIMER_ONE_SHOT, 1024, GET_ADC_value);
 674               	50:
 675               		call Leds_yellowOff
 677 02b2 61E0      	.LM51:
 678 02b4 20E0      		call Leds_redOff
 680 02b8 40E0      	.LM52:
 681 02ba 50E0      		ldi r24,lo8(8)
 682 02bc 00E0      		call cc2420_sendcmd
 684 02c0 0E94 0000 	.LM53:
 264:main.c        **** 				//printf("\n----the current state is MAC_STATE_START_TO_SLEEP---\n");
 265:main.c        **** 				Leds_greenOff();
 685               	8(8)
 686               		call cc2420_sendcmd
 266:main.c        **** 				Leds_yellowOff();
 688               	54:
 689               		lds r24,head_of_systimer_queue
 690 02c8 0E94 0000 		lds r25,(head_of_systimer_queue)+1
 267:main.c        **** 				Leds_redOff();
 691               	i r22,lo8(2)
 692               		call systimer_stop_task
 693 02cc 0E94 0000 		sts (head_of_systimer_queue)+1,r25
 268:main.c        **** 				cc2420_sendcmd(cc2420_SFLUSHRX);
 694               	s head_of_systimer_queue,r24
 696 02d0 88E0      	.LM55:
 697 02d2 0E94 0000 		ldi r22,lo8(1)
 269:main.c        **** 				cc2420_sendcmd(cc2420_SFLUSHRX);
 698               	p .L36
 699               	.L19:
 701 02d8 0E94 0000 	.LM56:
 270:main.c        **** 				head_of_systimer_queue=systimer_stop_task(head_of_systimer_queue, CAP_OVER);
 702               	w r24,r30
 703               		ld r22,Z
 704 02dc 8091 0000 	.L36:
 705 02e0 9091 0000 		call systimer_stop_task
 706 02e4 62E0      		sts (head_of_systimer_queue)+1,r25
 707 02e6 0E94 0000 		sts head_of_systimer_queue,r24
 709 02ee 8093 0000 	.LM57:
 271:main.c        **** 				head_of_systimer_queue=systimer_stop_task(head_of_systimer_queue, RECEIVE_BEACON);
 710               	,head_of_systimer_queue
 711               		lds r31,(head_of_systimer_queue)+1
 712 02f2 61E0      		sbiw r30,0
 713 02f4 00C0      		brne .L19
 714               		rjmp .L32
 272:main.c        **** 				while(head_of_systimer_queue!=NULL)
 273:main.c        **** 					{
 274:main.c        **** 					    head_of_systimer_queue=systimer_stop_task(head_of_systimer_queue, head_of_systimer_queue->
 715               	
 717 02f6 CF01      	.LM58:
 718 02f8 6081      		movw r24,r30
 719               		ldd r22,Z+1
 720 02fa 0E94 0000 		ldd r20,Z+2
 721 02fe 9093 0000 		call timer3quere_cancel
 722 0302 8093 0000 		sts (head_of_timer_queue)+1,r25
 723               		sts head_of_timer_queue,r24
 724               	.L32:
 726 030a F091 0000 	.LM59:
 727 030e 3097      		lds r30,head_of_timer_queue
 728 0310 01F4      		lds r31,(head_of_timer_queue)+1
 729 0312 00C0      		sbiw r30,0
 730               		brne .L21
 275:main.c        **** 					  //printf("\n---error1--\n");
 276:main.c        **** 					}	
 277:main.c        **** 				while(head_of_timer_queue!=NULL)
 278:main.c        **** 					{
 279:main.c        **** 					    head_of_timer_queue=timer3quere_cancel(head_of_timer_queue, head_of_timer_queue->framedsn,
 731               	:
 733 0314 CF01      	.LM60:
 734 0316 6181      		call remove_from_rx_buffer
 735 0318 4281      	.L33:
 737 031e 9093 0000 	.LM61:
 738 0322 8093 0000 		lds r24,head_of_rx_buffer
 739               		lds r25,(head_of_rx_buffer)+1
 740               		sbiw r24,0
 741               		brne .L23
 742 0326 E091 0000 		rjmp .L34
 743 032a F091 0000 	.L25:
 745 0330 01F4      	.LM62:
 746 0332 00C0      		ldd r24,Z+3
 747               		call remove_tx_queue
 280:main.c        **** 					  //printf("\n---error2--\n");	
 281:main.c        **** 					}
 282:main.c        **** 				while(head_of_rx_buffer!=NULL)
 283:main.c        **** 					{
 284:main.c        **** 					    remove_from_rx_buffer(head_of_rx_buffer);
 748               	0,287,.LM63-.LFBB2
 749               	.LM63:
 750 0334 0E94 0000 		lds r30,head_of_tx_buffer
 751               		lds r31,(head_of_tx_buffer)+1
 752               		sbiw r30,0
 753               		brne .L25
 754 0338 8091 0000 		rjmp .L35
 755 033c 9091 0000 	.L27:
 757 0342 01F4      	.LM64:
 758 0344 00C0      		call remove_pending_queue
 759               	.L35:
 285:main.c        **** 					  //printf("\n---error3--\n");		
 286:main.c        **** 					}
 287:main.c        **** 				while(head_of_tx_buffer!=NULL)
 288:main.c        **** 					{
 289:main.c        **** 					    remove_tx_queue(head_of_tx_buffer->FrameSeq);
 760               	,292,.LM65-.LFBB2
 761               	.LM65:
 762 0346 8381      		lds r24,head_of_indirect_pending_buffer
 763 0348 0E94 0000 		lds r25,(head_of_indirect_pending_buffer)+1
 764               		sbiw r24,0
 765               		brne .L27
 767 034c E091 0000 	.LM66:
 768 0350 F091 0000 		ldi r24,lo8(.LC1)
 769 0354 3097      		ldi r25,hi8(.LC1)
 770 0356 01F4      		call puts
 772               	.LM67:
 290:main.c        **** 				         //printf("\n---error4--\n");				
 291:main.c        **** 					}
 292:main.c        **** 				while(head_of_indirect_pending_buffer!=NULL)
 293:main.c        **** 					{
 294:main.c        **** 					    remove_pending_queue(head_of_indirect_pending_buffer);
 773               	17)
 774               		sts mac_current_state,r24
 776               	.LM68:
 777               		call OS_sleep
 778               	.L6:
 780 0362 9091 0000 	.LM69:
 781 0366 0097      		call OS_run_task
 782 0368 01F4      		rjmp .L28
 295:main.c        **** 					  //printf("\n---error5--\n");			
 296:main.c        **** 					}
 297:main.c        **** 				printf("\n----SYSTEM SLEEPING----\n");
 783               	n, .-main
 298:main.c        **** 				mac_current_state=MAC_STATE_INACTIVE;
 788               	s	"temp_addr:(23,47)",128,0,0,1
 299:main.c        **** 				OS_sleep();
 792               	s	"temp_addr:(23,47)",128,0,0,1
 300:main.c        **** 				break;
 301:main.c        ****        	     default: break;
 302:main.c        ****        	    	//开始作associate
 303:main.c        ****        	    	
 304:main.c        ****        	
 305:main.c        **** 		}
 306:main.c        **** 	       //printf("\nthe current state is %d---\n",mac_current_state);
 307:main.c        **** 	      // wdt_reset();
 308:main.c        **** 	OS_run_task();
 796               	s	"temp_addr:(23,47)",128,0,0,1
 807               	.Lscope2:
 809               	.global	GET_ADC_value
 811               	GET_ADC_value:
 813               	.LM70:
 814               	.LFBB3:
 815               	/* prologue: function */
 816               	/* frame size = 0 */
 818               	.LM71:
 819               		call read_data_task
 821               	.LM72:
 822               		ldi r24,lo8(1)
 823               		sts DATA_READY,r24
 825               	.LM73:
 826               		lds r24,ppib
 827 0386 81E0      		ldi r22,lo8(1)
 828 0388 8093 0000 		call mlmeSyncRequest
 829               	/* epilogue start */
 831 038c 8091 0000 	.LM74:
 832 0390 61E0      		ret
 834               	.Lscope3:
 835               		.comm OS_queue,16,1
 836               		.comm OS_sched_full,1,1
 837 0396 0895      		.comm OS_sched_free,1,1
 838               		.comm currentTime,2,1
 839               		.comm head_of_systimer_queue,2,1
 840               		.comm timestamp_H,2,1
 841               		.comm mState,4,1
 842               		.comm setIntervalFlag,1,1
 843               		.comm mScale,1,1
 844               		.comm mInterval,1,1
 845               		.comm queue_head,1,1
 846               		.comm queue_tail,1,1
 847               		.comm queue_size,1,1
 848               		.comm queue,3,1
 849               		.comm mTimerList,33,1
 850               		.comm cc2420_bramspi,1,1
 851               		.comm cc2420_rambuf,2,1
 852               		.comm cc2420_ramlen,1,1
 853               		.comm cc2420_ramaddr,2,1
 854               		.comm cc2420fifo_bspi,1,1
 855               		.comm cc2420fifo_txbuf,2,1
 856               		.comm cc2420fifo_txlength,1,1
 857               		.comm cc2420_rxbuf,4,1
 858               		.comm cc2420_rxlength,1,1
 859               		.comm cc2420_rxbuf_now,2,1
 860               		.comm cc2420_rxlength_now,1,1
 861               		.comm cc2420_rxbufuse,1,1
 862               		.comm rfpackernum,1,1
 863               		.comm cc2420_rxflag,1,1
 864               		.comm cc2420_currentparameters,28,1
 865               		.comm receive_timestamp,4,1
 866               		.comm send_timestamp,4,1
 867               		.comm cc2420_stateRadio,1,1
 868               		.comm cc2420_LocalAddr,2,1
 869               		.comm ieee_address,8,1
 870               		.comm GTSDirectionMask,1,1
 871               		.comm phy_channel_state,1,1
 872               		.comm rxbuf_flag,1,1
 873               		.comm ppib,3,1
 874               		.comm SENSOR_DATA_VALUE,20,1
 875               		.comm ADC_INTERRUPT_FLAG,1,1
 876               		.comm demopacket,2,1
 877               		.comm demo_ieee_address,8,1
 878               		.comm shortaddress,2,1
 879               		.comm DATA_READY,1,1
 926               	.Letext0:
 927               	...
DEFINED SYMBOLS
                            *ABS*:00000000 main.c
  F:\Temp/ccme31Vd.s:2      *ABS*:0000003f __SREG__
  F:\Temp/ccme31Vd.s:3      *ABS*:0000003e __SP_H__
  F:\Temp/ccme31Vd.s:4      *ABS*:0000003d __SP_L__
  F:\Temp/ccme31Vd.s:5      *ABS*:00000034 __CCP__
  F:\Temp/ccme31Vd.s:6      *ABS*:00000000 __tmp_reg__
  F:\Temp/ccme31Vd.s:7      *ABS*:00000001 __zero_reg__
  F:\Temp/ccme31Vd.s:243    .text:00000000 memory_init
  F:\Temp/ccme31Vd.s:281    .text:00000010 main
                            *COM*:00000001 DATA_READY
                            *COM*:00000002 head_of_systimer_queue
                            *COM*:00000014 SENSOR_DATA_VALUE
                            *COM*:00000003 ppib
  F:\Temp/ccme31Vd.s:816    .text:00000382 GET_ADC_value
                            *COM*:00000010 OS_queue
                            *COM*:00000001 OS_sched_full
                            *COM*:00000001 OS_sched_free
                            *COM*:00000002 currentTime
                            *COM*:00000002 timestamp_H
                            *COM*:00000004 mState
                            *COM*:00000001 setIntervalFlag
                            *COM*:00000001 mScale
                            *COM*:00000001 mInterval
                            *COM*:00000001 queue_head
                            *COM*:00000001 queue_tail
                            *COM*:00000001 queue_size
                            *COM*:00000003 queue
                            *COM*:00000021 mTimerList
                            *COM*:00000001 cc2420_bramspi
                            *COM*:00000002 cc2420_rambuf
                            *COM*:00000001 cc2420_ramlen
                            *COM*:00000002 cc2420_ramaddr
                            *COM*:00000001 cc2420fifo_bspi
                            *COM*:00000002 cc2420fifo_txbuf
                            *COM*:00000001 cc2420fifo_txlength
                            *COM*:00000004 cc2420_rxbuf
                            *COM*:00000001 cc2420_rxlength
                            *COM*:00000002 cc2420_rxbuf_now
                            *COM*:00000001 cc2420_rxlength_now
                            *COM*:00000001 cc2420_rxbufuse
                            *COM*:00000001 rfpackernum
                            *COM*:00000001 cc2420_rxflag
                            *COM*:0000001c cc2420_currentparameters
                            *COM*:00000004 receive_timestamp
                            *COM*:00000004 send_timestamp
                            *COM*:00000001 cc2420_stateRadio
                            *COM*:00000002 cc2420_LocalAddr
                            *COM*:00000008 ieee_address
                            *COM*:00000001 GTSDirectionMask
                            *COM*:00000001 phy_channel_state
                            *COM*:00000001 rxbuf_flag
                            *COM*:00000001 ADC_INTERRUPT_FLAG
                            *COM*:00000002 demopacket
                            *COM*:00000008 demo_ieee_address
                            *COM*:00000002 shortaddress

UNDEFINED SYMBOLS
__do_copy_data
__do_clear_bss
OS_SET_PIN_DIRECTIONS
Leds_greenOn
Leds_redOn
Leds_yellowOn
IoInit
OS_sched_init
phy_init
os_atomic_enable_interrupt
cc2420_enableAddrDecode
MAC_init
router_init
systime32
printf
cc2420_enablefifop
mac_current_state
mlmeResetRequest
IS_NETWORK_FORMED
mlmeScanRequest
mac_pib_data
cc2420_setshortaddress
cc2420_setpanid
mlmeStartRequest
mlmeAssociateRequest
mcpsDataRequest
head_of_rx_buffer
head_of_tx_buffer
head_of_timer_queue
PLME_SET_TRX_STATE_request
kertimer_start
Leds_greenOff
Leds_yellowOff
Leds_redOff
cc2420_sendcmd
systimer_stop_task
timer3quere_cancel
remove_from_rx_buffer
remove_tx_queue
remove_pending_queue
head_of_indirect_pending_buffer
puts
OS_sleep
OS_run_task
read_data_task
mlmeSyncRequest

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -