Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
174 kaklik 1
GAS LISTING /tmp/ccATXzNG.s 			page 1
2
 
3
 
4
   1               		.file	"DebugInterface.c"
5
   2               		.arch atmega8
6
   3               	__SREG__ = 0x3f
7
   4               	__SP_H__ = 0x3e
8
   5               	__SP_L__ = 0x3d
9
   6               	__tmp_reg__ = 0
10
   7               	__zero_reg__ = 1
11
   8               		.global __do_copy_data
12
   9               		.global __do_clear_bss
13
  10               		.stabs	"/home/kaklik/projects/programy/Atmel_C/AVRcam/",100,0,2,.Ltext0
14
  11               		.stabs	"DebugInterface.c",100,0,2,.Ltext0
15
  12               		.text
16
  13               	.Ltext0:
17
  14               		.stabs	"gcc2_compiled.",60,0,0,0
18
  15               		.stabs	"int:t(0,1)=r(0,1);-32768;32767;",128,0,0,0
19
  16               		.stabs	"char:t(0,2)=@s8;r(0,2);0;255;",128,0,0,0
20
  17               		.stabs	"long int:t(0,3)=@s32;r(0,3);020000000000;017777777777;",128,0,0,0
21
  18               		.stabs	"unsigned int:t(0,4)=r(0,4);0;0177777;",128,0,0,0
22
  19               		.stabs	"long unsigned int:t(0,5)=@s32;r(0,5);0;037777777777;",128,0,0,0
23
  20               		.stabs	"long long int:t(0,6)=@s64;r(0,6);01000000000000000000000;0777777777777777777777;",128,0,0,
24
  21               		.stabs	"long long unsigned int:t(0,7)=@s64;r(0,7);0;01777777777777777777777;",128,0,0,0
25
  22               		.stabs	"short int:t(0,8)=r(0,8);-32768;32767;",128,0,0,0
26
  23               		.stabs	"short unsigned int:t(0,9)=r(0,9);0;0177777;",128,0,0,0
27
  24               		.stabs	"signed char:t(0,10)=@s8;r(0,10);-128;127;",128,0,0,0
28
  25               		.stabs	"unsigned char:t(0,11)=@s8;r(0,11);0;255;",128,0,0,0
29
  26               		.stabs	"float:t(0,12)=r(0,1);4;0;",128,0,0,0
30
  27               		.stabs	"double:t(0,13)=r(0,1);4;0;",128,0,0,0
31
  28               		.stabs	"long double:t(0,14)=r(0,1);4;0;",128,0,0,0
32
  29               		.stabs	"void:t(0,15)=(0,15)",128,0,0,0
33
  30               		.stabs	"CommonDefs.h",130,0,0,0
34
  31               		.stabs	"/usr/lib/gcc/avr/4.1.0/../../../../avr/include/avr/interrupt.h",130,0,0,0
35
  32               		.stabs	"/usr/lib/gcc/avr/4.1.0/../../../../avr/include/avr/io.h",130,0,0,0
36
  33               		.stabs	"/usr/lib/gcc/avr/4.1.0/../../../../avr/include/avr/sfr_defs.h",130,0,0,0
37
  34               		.stabs	"/usr/lib/gcc/avr/4.1.0/../../../../avr/include/inttypes.h",130,0,0,0
38
  35               		.stabs	"/usr/lib/gcc/avr/4.1.0/../../../../avr/include/stdint.h",130,0,0,0
39
  36               		.stabs	"int8_t:t(6,1)=(0,10)",128,0,116,0
40
  37               		.stabs	"uint8_t:t(6,2)=(0,11)",128,0,117,0
41
  38               		.stabs	"int16_t:t(6,3)=(0,1)",128,0,118,0
42
  39               		.stabs	"uint16_t:t(6,4)=(0,4)",128,0,119,0
43
  40               		.stabs	"int32_t:t(6,5)=(0,3)",128,0,120,0
44
  41               		.stabs	"uint32_t:t(6,6)=(0,5)",128,0,121,0
45
  42               		.stabs	"int64_t:t(6,7)=(0,6)",128,0,122,0
46
  43               		.stabs	"uint64_t:t(6,8)=(0,7)",128,0,123,0
47
  44               		.stabs	"intptr_t:t(6,9)=(6,3)",128,0,135,0
48
  45               		.stabs	"uintptr_t:t(6,10)=(6,4)",128,0,140,0
49
  46               		.stabs	"int_least8_t:t(6,11)=(6,1)",128,0,152,0
50
  47               		.stabs	"uint_least8_t:t(6,12)=(6,2)",128,0,157,0
51
  48               		.stabs	"int_least16_t:t(6,13)=(6,3)",128,0,162,0
52
  49               		.stabs	"uint_least16_t:t(6,14)=(6,4)",128,0,167,0
53
  50               		.stabs	"int_least32_t:t(6,15)=(6,5)",128,0,172,0
54
  51               		.stabs	"uint_least32_t:t(6,16)=(6,6)",128,0,177,0
55
  52               		.stabs	"int_least64_t:t(6,17)=(6,7)",128,0,182,0
56
  53               		.stabs	"uint_least64_t:t(6,18)=(6,8)",128,0,187,0
57
  54               		.stabs	"int_fast8_t:t(6,19)=(6,1)",128,0,200,0
58
  55               		.stabs	"uint_fast8_t:t(6,20)=(6,2)",128,0,205,0
59
  56               		.stabs	"int_fast16_t:t(6,21)=(6,3)",128,0,210,0
60
  57               		.stabs	"uint_fast16_t:t(6,22)=(6,4)",128,0,215,0
61
GAS LISTING /tmp/ccATXzNG.s 			page 2
62
 
63
 
64
  58               		.stabs	"int_fast32_t:t(6,23)=(6,5)",128,0,220,0
65
  59               		.stabs	"uint_fast32_t:t(6,24)=(6,6)",128,0,225,0
66
  60               		.stabs	"int_fast64_t:t(6,25)=(6,7)",128,0,230,0
67
  61               		.stabs	"uint_fast64_t:t(6,26)=(6,8)",128,0,235,0
68
  62               		.stabs	"intmax_t:t(6,27)=(6,7)",128,0,249,0
69
  63               		.stabs	"uintmax_t:t(6,28)=(6,8)",128,0,254,0
70
  64               		.stabn	162,0,0,0
71
  65               		.stabs	"int_farptr_t:t(5,1)=(6,5)",128,0,76,0
72
  66               		.stabs	"uint_farptr_t:t(5,2)=(6,6)",128,0,80,0
73
  67               		.stabn	162,0,0,0
74
  68               		.stabn	162,0,0,0
75
  69               		.stabn	162,0,0,0
76
  70               		.stabn	162,0,0,0
77
  71               		.stabs	"bool_t:t(1,1)=(0,11)",128,0,56,0
78
  72               		.stabn	162,0,0,0
79
  73               		.stabs	"DebugInt_init:F(0,15)",36,0,71,DebugInt_init
80
  74               	.global	DebugInt_init
81
  75               		.type	DebugInt_init, @function
82
  76               	DebugInt_init:
83
  77               		.stabd	46,0,0
151 kaklik 84
   1:DebugInterface.c **** /*
85
   2:DebugInterface.c ****     Copyright (C) 2004    John Orlando
86
   3:DebugInterface.c ****     
87
   4:DebugInterface.c ****    AVRcam: a small real-time image processing engine.
88
   5:DebugInterface.c **** 
89
   6:DebugInterface.c ****     This program is free software; you can redistribute it and/or
90
   7:DebugInterface.c ****     modify it under the terms of the GNU General Public
91
   8:DebugInterface.c ****     License as published by the Free Software Foundation; either
92
   9:DebugInterface.c ****     version 2 of the License, or (at your option) any later version.
93
  10:DebugInterface.c **** 
94
  11:DebugInterface.c ****     This program is distributed in the hope that it will be useful,
95
  12:DebugInterface.c ****     but WITHOUT ANY WARRANTY; without even the implied warranty of
96
  13:DebugInterface.c ****     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
97
  14:DebugInterface.c ****     General Public License for more details.
98
  15:DebugInterface.c **** 
99
  16:DebugInterface.c ****     You should have received a copy of the GNU General Public
100
  17:DebugInterface.c ****     License along with this program; if not, write to the Free Software
101
  18:DebugInterface.c ****     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
102
  19:DebugInterface.c **** 
103
  20:DebugInterface.c ****    For more information on the AVRcam, please contact:
104
  21:DebugInterface.c **** 
105
  22:DebugInterface.c ****    john@jrobot.net
106
  23:DebugInterface.c **** 
107
  24:DebugInterface.c ****    or go to www.jrobot.net for more details regarding the system.
108
  25:DebugInterface.c **** */
109
  26:DebugInterface.c **** /***********************************************************
110
  27:DebugInterface.c **** 	Module Name: DebugInterface.c
111
  28:DebugInterface.c **** 	Module Date: 04/15/2004
112
  29:DebugInterface.c **** 	Module Auth: John Orlando
113
  30:DebugInterface.c **** 	
114
  31:DebugInterface.c **** 	Description: This module is responsible for providing a
115
  32:DebugInterface.c **** 	debug interface to the system.  Currently, the only
116
  33:DebugInterface.c **** 	debugging that is available is through the on-board
117
  34:DebugInterface.c **** 	UART (which is used by the main application as well) in
118
  35:DebugInterface.c **** 	addition to the LED hooked up at PORTD bit 6.
119
  36:DebugInterface.c ****     
120
  37:DebugInterface.c ****     Revision History:
174 kaklik 121
GAS LISTING /tmp/ccATXzNG.s 			page 3
122
 
123
 
151 kaklik 124
  38:DebugInterface.c ****     Date        Rel Ver.    Notes
125
  39:DebugInterface.c ****     4/10/2004      0.1     Module created
126
  40:DebugInterface.c ****     6/30/2004      1.0     Initial release for Circuit Cellar
127
  41:DebugInterface.c ****                            contest.
128
  42:DebugInterface.c **** ***********************************************************/
129
  43:DebugInterface.c **** 
130
  44:DebugInterface.c **** /*	Includes */
131
  45:DebugInterface.c **** #include "CommonDefs.h"
132
  46:DebugInterface.c **** #include "UartInterface.h"
133
  47:DebugInterface.c **** #include "Utility.h"
134
  48:DebugInterface.c **** 
135
  49:DebugInterface.c **** /*  Local Variables */
136
  50:DebugInterface.c **** 
137
  51:DebugInterface.c **** /* 	Local Structures and Typedefs */
138
  52:DebugInterface.c **** 
139
  53:DebugInterface.c **** /*  Extern Variables */
140
  54:DebugInterface.c **** 
141
  55:DebugInterface.c **** /*  Definitions */
142
  56:DebugInterface.c **** 
143
  57:DebugInterface.c **** /***********************************************************
144
  58:DebugInterface.c **** 	Function Name: DebugInt_init
145
  59:DebugInterface.c **** 	Function Description: This function is responsible for
146
  60:DebugInterface.c **** 	initializing the debug module.  It sets up the debug LED
147
  61:DebugInterface.c **** 	as well as any other debugging that will be done.  The 
148
  62:DebugInterface.c ****     LED blinks four times, which indicates to the user
149
  63:DebugInterface.c ****     that the system is available for re-programming if 
150
  64:DebugInterface.c ****     necessary.  This works because the data lines on the
151
  65:DebugInterface.c ****     OV6620 are still tri-stated at this point, but won't
152
  66:DebugInterface.c ****     be for long after this function returns.
153
  67:DebugInterface.c **** 	Inputs:  none
154
  68:DebugInterface.c **** 	Outputs: none
155
  69:DebugInterface.c **** ***********************************************************/	
156
  70:DebugInterface.c **** void DebugInt_init(void)
157
  71:DebugInterface.c **** {
174 kaklik 158
  78               		.stabn	68,0,71,.LM0-DebugInt_init
159
  79               	.LM0:
160
  80               	/* prologue: frame size=0 */
161
  81               	/* prologue end (size=0) */
151 kaklik 162
  72:DebugInterface.c **** 	/* set PortD pin6 for output */
163
  73:DebugInterface.c **** 	DDRD  |= 0x40;
174 kaklik 164
  82               		.stabn	68,0,73,.LM1-DebugInt_init
165
  83               	.LM1:
166
  84 0000 8E9A      		sbi 49-0x20,6
151 kaklik 167
  74:DebugInterface.c **** 	/* turn on LED */
168
  75:DebugInterface.c **** 	PORTD |= 0x40;
174 kaklik 169
  85               		.stabn	68,0,75,.LM2-DebugInt_init
170
  86               	.LM2:
171
  87 0002 969A      		sbi 50-0x20,6
151 kaklik 172
  76:DebugInterface.c ****     Utility_delay(500);
174 kaklik 173
  88               		.stabn	68,0,76,.LM3-DebugInt_init
174
  89               	.LM3:
175
  90 0004 84EF      		ldi r24,lo8(500)
176
  91 0006 91E0      		ldi r25,hi8(500)
177
  92 0008 00D0      		rcall Utility_delay
151 kaklik 178
  77:DebugInterface.c ****     PORTD &= 0xBF;
174 kaklik 179
  93               		.stabn	68,0,77,.LM4-DebugInt_init
180
  94               	.LM4:
181
GAS LISTING /tmp/ccATXzNG.s 			page 4
182
 
183
 
184
  95 000a 9698      		cbi 50-0x20,6
151 kaklik 185
  78:DebugInterface.c ****     Utility_delay(500);
174 kaklik 186
  96               		.stabn	68,0,78,.LM5-DebugInt_init
187
  97               	.LM5:
188
  98 000c 84EF      		ldi r24,lo8(500)
189
  99 000e 91E0      		ldi r25,hi8(500)
190
 100 0010 00D0      		rcall Utility_delay
151 kaklik 191
  79:DebugInterface.c ****     PORTD |= 0x40;
174 kaklik 192
 101               		.stabn	68,0,79,.LM6-DebugInt_init
193
 102               	.LM6:
194
 103 0012 969A      		sbi 50-0x20,6
151 kaklik 195
  80:DebugInterface.c ****     Utility_delay(500);
174 kaklik 196
 104               		.stabn	68,0,80,.LM7-DebugInt_init
197
 105               	.LM7:
198
 106 0014 84EF      		ldi r24,lo8(500)
199
 107 0016 91E0      		ldi r25,hi8(500)
200
 108 0018 00D0      		rcall Utility_delay
151 kaklik 201
  81:DebugInterface.c ****     PORTD &= 0xBF;
174 kaklik 202
 109               		.stabn	68,0,81,.LM8-DebugInt_init
203
 110               	.LM8:
204
 111 001a 9698      		cbi 50-0x20,6
151 kaklik 205
  82:DebugInterface.c ****     Utility_delay(500);
174 kaklik 206
 112               		.stabn	68,0,82,.LM9-DebugInt_init
207
 113               	.LM9:
208
 114 001c 84EF      		ldi r24,lo8(500)
209
 115 001e 91E0      		ldi r25,hi8(500)
210
 116 0020 00D0      		rcall Utility_delay
151 kaklik 211
  83:DebugInterface.c ****     PORTD |= 0x40;
174 kaklik 212
 117               		.stabn	68,0,83,.LM10-DebugInt_init
213
 118               	.LM10:
214
 119 0022 969A      		sbi 50-0x20,6
151 kaklik 215
  84:DebugInterface.c ****     Utility_delay(500);
174 kaklik 216
 120               		.stabn	68,0,84,.LM11-DebugInt_init
217
 121               	.LM11:
218
 122 0024 84EF      		ldi r24,lo8(500)
219
 123 0026 91E0      		ldi r25,hi8(500)
220
 124 0028 00D0      		rcall Utility_delay
151 kaklik 221
  85:DebugInterface.c ****     PORTD &= 0xBF;
174 kaklik 222
 125               		.stabn	68,0,85,.LM12-DebugInt_init
223
 126               	.LM12:
224
 127 002a 9698      		cbi 50-0x20,6
151 kaklik 225
  86:DebugInterface.c ****     Utility_delay(500);
174 kaklik 226
 128               		.stabn	68,0,86,.LM13-DebugInt_init
227
 129               	.LM13:
228
 130 002c 84EF      		ldi r24,lo8(500)
229
 131 002e 91E0      		ldi r25,hi8(500)
230
 132 0030 00D0      		rcall Utility_delay
151 kaklik 231
  87:DebugInterface.c ****     PORTD |= 0x40;
174 kaklik 232
 133               		.stabn	68,0,87,.LM14-DebugInt_init
233
 134               	.LM14:
234
 135 0032 969A      		sbi 50-0x20,6
235
 136               	/* epilogue: frame size=0 */
236
 137 0034 0895      		ret
237
 138               	/* epilogue end (size=1) */
238
 139               	/* function DebugInt_init size 27 (26) */
239
 140               		.size	DebugInt_init, .-DebugInt_init
240
 141               	.Lscope0:
241
GAS LISTING /tmp/ccATXzNG.s 			page 5
242
 
243
 
244
 142               		.stabs	"",36,0,0,.Lscope0-DebugInt_init
245
 143               		.stabd	78,0,0
246
 144               		.stabs	"",100,0,0,.Letext0
247
 145               	.Letext0:
248
 146               	/* File "DebugInterface.c": code   27 = 0x001b (  26), prologues   0, epilogues   1 */
249
GAS LISTING /tmp/ccATXzNG.s 			page 6
250
 
251
 
252
DEFINED SYMBOLS
253
                            *ABS*:00000000 DebugInterface.c
254
     /tmp/ccATXzNG.s:3      *ABS*:0000003f __SREG__
255
     /tmp/ccATXzNG.s:4      *ABS*:0000003e __SP_H__
256
     /tmp/ccATXzNG.s:5      *ABS*:0000003d __SP_L__
257
     /tmp/ccATXzNG.s:6      *ABS*:00000000 __tmp_reg__
258
     /tmp/ccATXzNG.s:7      *ABS*:00000001 __zero_reg__
259
     /tmp/ccATXzNG.s:76     .text:00000000 DebugInt_init
260
 
261
UNDEFINED SYMBOLS
262
__do_copy_data
263
__do_clear_bss
264
Utility_delay