📄 spi0.lst
字号:
1 .file "spi0.c"
9 .Ltext0:
10 .align 2
11 .global SPI0_Init
13 SPI0_Init:
14 .LFB2:
15 .file 1 "spi0.c"
1:spi0.c **** /*
2:spi0.c **** SPI Communication for LPC2148 SPI0.
3:spi0.c **** 2/1/2008
4:spi0.c **** Ryan Owens
5:spi0.c ****
6:spi0.c **** NOTES:
7:spi0.c **** SCLK_PINSEL, MISO_PINSEL and MOSI_PINSEL must be defined in an external header file. The definiti
8:spi0.c **** correspond to the value that needs to be set in the PINSEL0 register.
9:spi0.c ****
10:spi0.c **** */
11:spi0.c ****
12:spi0.c **** #include "spi0.h"
13:spi0.c **** #include "LPC214x.h"
14:spi0.c **** #include <stdio.h>
15:spi0.c ****
16:spi0.c **** void SPI0_Init(void) //This function needs to go in bootup() of Main.c
17:spi0.c **** {
16 Function supports interworking.
17 @ args = 0, pretend = 0, frame = 0
18 @ frame_needed = 1, uses_anonymous_args = 0
19 mov ip, sp
20 0000 0DC0A0E1 .LCFI0:
21 stmfd sp!, {fp, ip, lr, pc}
22 0004 00D82DE9 .LCFI1:
23 sub fp, ip, #4
24 0008 04B04CE2 .LCFI2:
25 .loc 1 19 0
18:spi0.c **** go in bootup() of Main.c
19:spi0.c **** {
26 -536870912
27 000c 0E22A0E3 add r2, r2, #180224
28 0010 0B2982E2 mov r3, #-536870912
29 0014 0E32A0E3 add r3, r3, #180224
30 0018 0B3983E2 ldr r3, [r3, #0]
31 001c 003093E5 bic r3, r3, #768
32 0020 033CC3E3 orr r3, r3, #256
33 0024 013C83E3 str r3, [r2, #0]
34 0028 003082E5 .loc 1 20 0
20:spi0.c **** go in bootup() of Main.c
35 #-536870912
36 002c 0E22A0E3 add r2, r2, #180224
37 0030 0B2982E2 mov r3, #-536870912
38 0034 0E32A0E3 add r3, r3, #180224
39 0038 0B3983E2 ldr r3, [r3, #0]
40 003c 003093E5 bic r3, r3, #3072
41 0040 033BC3E3 orr r3, r3, #1024
42 0044 013B83E3 str r3, [r2, #0]
43 0048 003082E5 .loc 1 21 0
21:spi0.c **** to go in bootup() of Main.c
44 #-536870912
45 004c 0E22A0E3 add r2, r2, #180224
46 0050 0B2982E2 mov r3, #-536870912
47 0054 0E32A0E3 add r3, r3, #180224
48 0058 0B3983E2 ldr r3, [r3, #0]
49 005c 003093E5 bic r3, r3, #12288
50 0060 033AC3E3 orr r3, r3, #4096
51 0064 013A83E3 str r3, [r2, #0]
52 0068 003082E5 .loc 1 23 0
22:spi0.c **** to go in bootup() of Main.c
23:spi0.c **** {
53 fp, #12
54 006c 0CD04BE2 ldmfd sp, {fp, sp, lr}
55 0070 00689DE8 bx lr
56 0074 1EFF2FE1 .LFE2:
58 .align 2
59 .global SPI0_send
61 SPI0_send:
62 .LFB3:
63 .loc 1 26 0
24:spi0.c **** go in bootup() of Main.c
25:spi0.c **** {
26:spi0.c ****
64 supports interworking.
65 @ args = 0, pretend = 0, frame = 4
66 @ frame_needed = 1, uses_anonymous_args = 0
67 mov ip, sp
68 0078 0DC0A0E1 .LCFI3:
69 stmfd sp!, {fp, ip, lr, pc}
70 007c 00D82DE9 .LCFI4:
71 sub fp, ip, #4
72 0080 04B04CE2 .LCFI5:
73 sub sp, sp, #4
74 0084 04D04DE2 .LCFI6:
75 mov r3, r0
76 0088 0030A0E1 strb r3, [fp, #-16]
77 008c 10304BE5 .loc 1 27 0
27:spi0.c **** in bootup() of Main.c
78 #-16] @ zero_extendqisi2
79 0090 10305BE5 mov r0, r3
80 0094 0300A0E1 bl SPI0_send_recv
81 0098 FEFFFFEB .loc 1 28 0
28:spi0.c **** to go in bootup() of Main.c
82 sp, fp, #12
83 009c 0CD04BE2 ldmfd sp, {fp, sp, lr}
84 00a0 00689DE8 bx lr
85 00a4 1EFF2FE1 .LFE3:
87 .align 2
88 .global SPI0_recv
90 SPI0_recv:
91 .LFB4:
92 .loc 1 31 0
29:spi0.c **** to go in bootup() of Main.c
30:spi0.c **** {
31:spi0.c ****
93 supports interworking.
94 @ args = 0, pretend = 0, frame = 0
95 @ frame_needed = 1, uses_anonymous_args = 0
96 mov ip, sp
97 00a8 0DC0A0E1 .LCFI7:
98 stmfd sp!, {fp, ip, lr, pc}
99 00ac 00D82DE9 .LCFI8:
100 sub fp, ip, #4
101 00b0 04B04CE2 .LCFI9:
102 .loc 1 32 0
32:spi0.c **** in bootup() of Main.c
103 255
104 00b4 FF00A0E3 bl SPI0_send_recv
105 00b8 FEFFFFEB mov r3, r0
106 00bc 0030A0E1 .loc 1 33 0
33:spi0.c **** to go in bootup() of Main.c
107 r0, r3
108 00c0 0300A0E1 sub sp, fp, #12
109 00c4 0CD04BE2 ldmfd sp, {fp, sp, lr}
110 00c8 00689DE8 bx lr
111 00cc 1EFF2FE1 .LFE4:
113 .align 2
114 .global SPI0_send_recv
116 SPI0_send_recv:
117 .LFB5:
118 .loc 1 36 0
34:spi0.c **** to go in bootup() of Main.c
35:spi0.c **** {
36:spi0.c ****
119 supports interworking.
120 @ args = 0, pretend = 0, frame = 8
121 @ frame_needed = 1, uses_anonymous_args = 0
122 mov ip, sp
123 00d0 0DC0A0E1 .LCFI10:
124 stmfd sp!, {fp, ip, lr, pc}
125 00d4 00D82DE9 .LCFI11:
126 sub fp, ip, #4
127 00d8 04B04CE2 .LCFI12:
128 sub sp, sp, #8
129 00dc 08D04DE2 .LCFI13:
130 mov r3, r0
131 00e0 0030A0E1 strb r3, [fp, #-20]
132 00e4 14304BE5 .loc 1 39 0
37:spi0.c **** in bootup() of Main.c
38:spi0.c **** {
39:spi0.c ****
133 870904
134 00e8 8E32A0E3 add r3, r3, #131072
135 00ec 023883E2 ldrb r2, [fp, #-20] @ zero_extendqisi2
136 00f0 14205BE5 strh r2, [r3, #0] @ movhi
137 00f4 B020C3E1 .L8:
138 .loc 1 40 0
40:spi0.c **** in bootup() of Main.c
139 3, #-536870908
140 00f8 4E32A0E3 add r3, r3, #131072
141 00fc 023883E2 ldrb r3, [r3, #0]
142 0100 0030D3E5 and r3, r3, #255
143 0104 FF3003E2 mov r3, r3, asl #24
144 0108 033CA0E1 mov r3, r3, asr #24
145 010c 433CA0E1 cmp r3, #0
146 0110 000053E3 bge .L8
147 0114 F7FFFFAA .loc 1 41 0
41:spi0.c **** to go in bootup() of Main.c
148 #-536870904
149 0118 8E32A0E3 add r3, r3, #131072
150 011c 023883E2 ldrh r3, [r3, #0] @ movhi
151 0120 B030D3E1 mov r3, r3, asl #16
152 0124 0338A0E1 mov r3, r3, lsr #16
153 0128 2338A0E1 and r3, r3, #255
154 012c FF3003E2 str r3, [fp, #-16]
155 0130 10300BE5 .loc 1 42 0
42:spi0.c **** to go in bootup() of Main.c
156 [fp, #-16]
157 0134 10301BE5 and r3, r3, #255
158 0138 FF3003E2 .loc 1 43 0
43:spi0.c **** to go in bootup() of Main.c
159 v r0, r3
160 013c 0300A0E1 sub sp, fp, #12
161 0140 0CD04BE2 ldmfd sp, {fp, sp, lr}
162 0144 00689DE8 bx lr
163 0148 1EFF2FE1 .LFE5:
165 .section .debug_frame,"",%progbits
282 .section .debug_loc,"",%progbits
DEFINED SYMBOLS
*ABS*:00000000 spi0.c
e:\Temp/ccg3aaaa.s:13 .text:00000000 SPI0_Init
e:\Temp/ccg3aaaa.s:20 .text:00000000 $a
e:\Temp/ccg3aaaa.s:62 .text:00000078 SPI0_send
e:\Temp/ccg3aaaa.s:117 .text:000000d0 SPI0_send_recv
e:\Temp/ccg3aaaa.s:91 .text:000000a8 SPI0_recv
NO UNDEFINED SYMBOLS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -