📄 main.lst
字号:
1 .file "Main.c"
2 .arch atmega128
3 __SREG__ = 0x3f
4 __SP_H__ = 0x3e
5 __SP_L__ = 0x3d
6 __tmp_reg__ = 0
7 __zero_reg__ = 1
8 .global __do_copy_data
9 .global __do_clear_bss
11 .text
12 .Ltext0:
69 .global main
71 main:
1:Main.c **** /*
2:Main.c **** Copyright (C) 2004 John Orlando
3:Main.c ****
4:Main.c **** AVRcam: a small real-time image processing engine.
5:Main.c ****
6:Main.c **** This program is free software; you can redistribute it and/or
7:Main.c **** modify it under the terms of the GNU General Public
8:Main.c **** License as published by the Free Software Foundation; either
9:Main.c **** version 2 of the License, or (at your option) any later version.
10:Main.c ****
11:Main.c **** This program is distributed in the hope that it will be useful,
12:Main.c **** but WITHOUT ANY WARRANTY; without even the implied warranty of
13:Main.c **** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14:Main.c **** General Public License for more details.
15:Main.c ****
16:Main.c **** You should have received a copy of the GNU General Public
17:Main.c **** License along with this program; if not, write to the Free Software
18:Main.c **** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19:Main.c ****
20:Main.c **** For more information on the AVRcam, please contact:
21:Main.c ****
22:Main.c **** john@jrobot.net
23:Main.c ****
24:Main.c **** or go to www.jrobot.net for more details regarding the system.
25:Main.c **** */
26:Main.c **** /***********************************************************
27:Main.c **** Module Name: Main.c
28:Main.c **** Module Date: 04/10/2004
29:Main.c **** Module Auth: John Orlando
30:Main.c ****
31:Main.c **** Description: This module is responsible for providing
32:Main.c **** the entry point to the code through the "main" function.
33:Main.c ****
34:Main.c **** Revision History:
35:Main.c **** Date Rel Ver. Notes
36:Main.c **** 4/10/2004 0.1 Module created
37:Main.c **** 6/30/2004 1.0 Initial release for Circuit Cellar
38:Main.c **** contest.
39:Main.c **** ***********************************************************/
40:Main.c ****
41:Main.c **** /* Includes */
42:Main.c **** #include <avr/io.h>
43:Main.c **** #include <stdlib.h>
44:Main.c **** #include <string.h>
45:Main.c **** #include "UIMgr.h"
46:Main.c **** #include "UartInterface.h"
47:Main.c **** #include "I2CInterface.h"
48:Main.c **** #include "CamInterface.h"
49:Main.c **** #include "DebugInterface.h"
50:Main.c **** #include "FrameMgr.h"
51:Main.c **** #include "CommonDefs.h"
52:Main.c **** #include "CamConfig.h"
53:Main.c **** #include "Executive.h"
54:Main.c **** #include "Utility.h"
55:Main.c ****
56:Main.c ****
57:Main.c ****
58:Main.c ****
59:Main.c **** /***********************************************************
60:Main.c **** Function Name: main
61:Main.c **** Function Description: This function provides the entry
62:Main.c **** point into AVRcam application.
63:Main.c **** Inputs: none
64:Main.c **** Outputs: int
65:Main.c **** ***********************************************************/
66:Main.c **** int main(void)
67:Main.c **** {
73 .LM1:
74 /* prologue: frame size=0 */
75 0000 C0E0 ldi r28,lo8(__stack - 0)
76 0002 D0E0 ldi r29,hi8(__stack - 0)
77 0004 DEBF out __SP_H__,r29
78 0006 CDBF out __SP_L__,r28
79 /* prologue end (size=4) */
68:Main.c **** /* initialize all of the interface modules */
69:Main.c ****
70:Main.c **** //DebugInt_init();
71:Main.c **** UartInt_init();
81 .LM2:
82 0008 0E94 0000 call UartInt_init
72:Main.c ****
73:Main.c **** I2CInt_init();
84 .LM3:
85 000c 0E94 0000 call I2CInt_init
74:Main.c **** CamInt_init();
87 .LM4:
88 0010 0E94 0000 call CamInt_init
75:Main.c **** //
76:Main.c **** /* initialize the remaining modules that will process
77:Main.c **** data...interrupts need to be on for these */
78:Main.c **** ENABLE_INTS();
90 .LM5:
91 /* #APP */
92 0014 7894 sei
79:Main.c ****
80:Main.c **** CamConfig_init();
94 .LM6:
95 /* #NOAPP */
96 0016 0E94 0000 call CamConfig_init
81:Main.c ****
82:Main.c ****
83:Main.c **** UIMgr_init();
98 .LM7:
99 001a 0E94 0000 call UIMgr_init
84:Main.c **** FrameMgr_init();
101 .LM8:
102 001e 0E94 0000 call FrameMgr_init
85:Main.c ****
86:Main.c **** /* provide a short delay for the camera to stabilize before
87:Main.c **** we let the executive start up */
88:Main.c **** Utility_delay(1000);
104 .LM9:
105 0022 88EE ldi r24,lo8(1000)
106 0024 93E0 ldi r25,hi8(1000)
107 0026 0E94 0000 call Utility_delay
89:Main.c ****
90:Main.c **** /* the rest of the application will be under the
91:Main.c **** control of the Executive. */
92:Main.c ****
93:Main.c **** Exec_run();
109 .LM10:
110 002a 0E94 0000 call Exec_run
94:Main.c ****
95:Main.c ****
96:Main.c ****
97:Main.c **** /* this should never be reached */
98:Main.c **** return(0);
99:Main.c **** }
112 .LM11:
113 002e 80E0 ldi r24,lo8(0)
114 0030 90E0 ldi r25,hi8(0)
115 /* epilogue: frame size=0 */
116 0032 0C94 0000 jmp exit
117 /* epilogue end (size=2) */
118 /* function main size 28 (22) */
120 .Lscope0:
121 .text
123 Letext:
124 /* File "Main.c": code 28 = 0x001c ( 22), prologues 4, epilogues 2 */
DEFINED SYMBOLS
*ABS*:00000000 Main.c
*ABS*:0000003f __SREG__
*ABS*:0000003e __SP_H__
*ABS*:0000003d __SP_L__
*ABS*:00000000 __tmp_reg__
*ABS*:00000001 __zero_reg__
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc2taaaa.s:71 .text:00000000 main
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc2taaaa.s:123 .text:00000036 Letext
UNDEFINED SYMBOLS
__do_copy_data
__do_clear_bss
__stack
UartInt_init
I2CInt_init
CamInt_init
CamConfig_init
UIMgr_init
FrameMgr_init
Utility_delay
Exec_run
exit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -