Blame | Last modification | View Log | SVN | RSS feed
1 .file "main.c"2 .arch atmega1683 __SREG__ = 0x3f4 __SP_H__ = 0x3e5 __SP_L__ = 0x3d6 __tmp_reg__ = 07 __zero_reg__ = 18 .global __do_copy_data9 .global __do_clear_bss11 .text12 .Ltext0:99 .global main101 main:1:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <inttypes.h>2:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <avr/interrupt.h>3:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <stdio.h>4:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <string.h>5:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <drivers/can/stdcan.h>6:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <config.h> // All configuration parameters7:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <bios.h> // BIOS interface declarations, including CAN structure and ID defines.8:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include <drivers/timer/timer.h>9:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****10:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** #include "../modules/sns_ds18x20/sns_ds18x20.h"11:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****12:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** int main(void)13:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** {103 .LM0:104 /* prologue: frame size=13 */105 0000 C0E0 ldi r28,lo8(__stack - 13)106 0002 D0E0 ldi r29,hi8(__stack - 13)107 0004 DEBF out __SP_H__,r29108 0006 CDBF out __SP_L__,r28109 /* prologue end (size=4) */14:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** StdCan_Msg_t rxMsg; // Message storage15:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****16:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** // Enable interrupts as early as possible17:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** sei();111 .LM1:112 /* #APP */113 0008 7894 sei18:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****19:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** Timer_Init();115 .LM2:116 /* #NOAPP */117 000a 0E94 0000 call Timer_Init20:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****21:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** StdCan_Init();119 .LM3:120 000e 0E94 0000 call StdCan_Init22:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****23:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** Timer_SetTimeout(APP_HEARTBEAT_TIMER, STDCAN_HEARTBEAT_PERIOD, TimerTypeFreeRunning, StdCan_SendHe122 .LM4:123 0012 20E0 ldi r18,lo8(pm(StdCan_SendHeartbeat))124 0014 30E0 ldi r19,hi8(pm(StdCan_SendHeartbeat))125 0016 41E0 ldi r20,lo8(1)126 0018 60E1 ldi r22,lo8(10000)127 001a 77E2 ldi r23,hi8(10000)128 001c 80E0 ldi r24,lo8(0)129 001e 0E94 0000 call Timer_SetTimeout24:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****25:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** sns_ds18x20_Init();131 .LM5:132 0022 0E94 0000 call sns_ds18x20_Init133 .L13:26:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****27:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** while (1) {28:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****29:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** sns_ds18x20_Process();135 .LM6:136 0026 0E94 0000 call sns_ds18x20_Process30:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****31:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** if (StdCan_Get(&rxMsg) == StdCan_Ret_OK) {138 .LM7:139 002a 8E01 movw r16,r28140 002c 0F5F subi r16,lo8(-(1))141 002e 1F4F sbci r17,hi8(-(1))142 0030 C801 movw r24,r16143 0032 0E94 0000 call StdCan_Get144 0036 8823 tst r24145 0038 B1F7 brne .L1332:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** if ((uint8_t)StdCan_Ret_class(rxMsg) == CAN_MODULE_NMT) {147 .LM8:148 003a 8C81 ldd r24,Y+4149 003c 8695 lsr r24150 003e 8F70 andi r24,lo8(15)151 0040 8B30 cpi r24,lo8(11)152 0042 39F4 brne .L433:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****34:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** if (rxMsg.Header.ModuleType == CAN_MODULE_NMT_LIST) {154 .LM9:155 0044 8B81 ldd r24,Y+3156 0046 8D32 cpi r24,lo8(45)157 0048 71F7 brne .L1335:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** sns_ds18x20_List(1);159 .LM10:160 004a 81E0 ldi r24,lo8(1)161 004c 0E94 0000 call sns_ds18x20_List162 0050 EACF rjmp .L13163 .L4:36:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** }37:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** }38:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** else {39:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c ****40:/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c **** sns_ds18x20_HandleMessage(&rxMsg);165 .LM11:166 0052 C801 movw r24,r16167 0054 0E94 0000 call sns_ds18x20_HandleMessage168 0058 E6CF rjmp .L13169 /* epilogue: frame size=13 */170 /* epilogue: noreturn */171 /* epilogue end (size=0) */172 /* function main size 46 (42) */177 .Lscope0:178 .comm BIOS_CanCallback,2,1179 .comm gSensorIDs,32,1183 .Letext0:184 /* File "/home/linus/HomeAutomation/trunk/EmbeddedSoftware/AVR/personal/template_module/src/main.c"DEFINED SYMBOLS*ABS*:00000000 main.c/tmp/ccuso3Wn.s:3 *ABS*:0000003f __SREG__/tmp/ccuso3Wn.s:4 *ABS*:0000003e __SP_H__/tmp/ccuso3Wn.s:5 *ABS*:0000003d __SP_L__/tmp/ccuso3Wn.s:6 *ABS*:00000000 __tmp_reg__/tmp/ccuso3Wn.s:7 *ABS*:00000001 __zero_reg__/tmp/ccuso3Wn.s:101 .text:00000000 main*COM*:00000002 BIOS_CanCallback*COM*:00000020 gSensorIDsUNDEFINED SYMBOLS__do_copy_data__do_clear_bss__stackTimer_InitStdCan_InitStdCan_SendHeartbeatTimer_SetTimeoutsns_ds18x20_Initsns_ds18x20_ProcessStdCan_Getsns_ds18x20_Listsns_ds18x20_HandleMessage