-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardware.lst
118 lines (117 loc) · 5.26 KB
/
hardware.lst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
1 .file "hardware.c"
9 .Ltext0:
10 .align 2
11 .global LED
13 LED:
14 .LFB2:
15 .file 1 "hardware.c"
1:hardware.c **** /*
2:hardware.c ****
3:hardware.c **** Copyright (c) 2011, Ascending Technologies GmbH
4:hardware.c **** All rights reserved.
5:hardware.c ****
6:hardware.c **** Redistribution and use in source and binary forms, with or without
7:hardware.c **** modification, are permitted provided that the following conditions are met:
8:hardware.c ****
9:hardware.c **** * Redistributions of source code must retain the above copyright notice,
10:hardware.c **** this list of conditions and the following disclaimer.
11:hardware.c **** * Redistributions in binary form must reproduce the above copyright
12:hardware.c **** notice, this list of conditions and the following disclaimer in the
13:hardware.c **** documentation and/or other materials provided with the distribution.
14:hardware.c ****
15:hardware.c **** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16:hardware.c **** EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17:hardware.c **** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18:hardware.c **** DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19:hardware.c **** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20:hardware.c **** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21:hardware.c **** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22:hardware.c **** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23:hardware.c **** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24:hardware.c **** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25:hardware.c **** DAMAGE.
26:hardware.c ****
27:hardware.c **** */
28:hardware.c ****
29:hardware.c **** #include "LPC214x.h"
30:hardware.c **** #include "main.h"
31:hardware.c **** #include "system.h"
32:hardware.c **** #include "uart.h"
33:hardware.c **** #include "hardware.h"
34:hardware.c **** #include "irq.h"
35:hardware.c ****
36:hardware.c ****
37:hardware.c **** void LED(unsigned char nr, unsigned char onoff) //set or reset LED 0..3
38:hardware.c **** {
16 Function supports interworking.
17 @ args = 0, pretend = 0, frame = 8
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 sub sp, sp, #8
26 000c 08D04DE2 .LCFI3:
27 mov r3, r0
28 0010 0030A0E1 mov r2, r1
29 0014 0120A0E1 strb r3, [fp, #-16]
30 0018 10304BE5 mov r3, r2
31 001c 0230A0E1 strb r3, [fp, #-20]
32 0020 14304BE5 .loc 1 39 0
39:hardware.c **** if (nr>=2)
33 16] @ zero_extendqisi2
34 0024 10305BE5 cmp r3, #1
35 0028 010053E3 bhi .L6
36 002c 1300008A .loc 1 41 0
40:hardware.c **** return;
41:hardware.c **** if(onoff == OFF)
37 b r3, [fp, #-20] @ zero_extendqisi2
38 0030 14305BE5 cmp r3, #0
39 0034 000053E3 bne .L4
40 0038 0800001A .loc 1 43 0
42:hardware.c **** {
43:hardware.c **** IOSET1 = (1<<(24+nr));
41 r2, #-536870912
42 003c 0E22A0E3 add r2, r2, #163840
43 0040 0A2982E2 add r2, r2, #20
44 0044 142082E2 ldrb r3, [fp, #-16] @ zero_extendqisi2
45 0048 10305BE5 add r1, r3, #24
46 004c 181083E2 mov r3, #1
47 0050 0130A0E3 mov r3, r3, asl r1
48 0054 1331A0E1 str r3, [r2, #0]
49 0058 003082E5 b .L6
50 005c 070000EA .L4:
51 .loc 1 47 0
44:hardware.c **** }
45:hardware.c **** else
46:hardware.c **** {
47:hardware.c **** IOCLR1 = (1<<(24+nr));
52 536870912
53 0060 0E22A0E3 add r2, r2, #163840
54 0064 0A2982E2 add r2, r2, #28
55 0068 1C2082E2 ldrb r3, [fp, #-16] @ zero_extendqisi2
56 006c 10305BE5 add r1, r3, #24
57 0070 181083E2 mov r3, #1
58 0074 0130A0E3 mov r3, r3, asl r1
59 0078 1331A0E1 str r3, [r2, #0]
60 007c 003082E5 .L6:
61 .loc 1 49 0
48:hardware.c **** }
49:hardware.c **** }
62 p, #12
63 0080 0CD04BE2 ldmfd sp, {fp, sp, lr}
64 0084 00689DE8 bx lr
65 0088 1EFF2FE1 .LFE2:
67 .comm GPS_timeout,4,4
68 .comm SYSTEM_initialized,1,1
69 .section .debug_frame,"",%progbits
112 .section .debug_loc,"",%progbits
DEFINED SYMBOLS
*ABS*:00000000 hardware.c
C:\Users\lfrha\AppData\Local\Temp/ccUhvaaa.s:13 .text:00000000 LED
C:\Users\lfrha\AppData\Local\Temp/ccUhvaaa.s:20 .text:00000000 $a
*COM*:00000004 GPS_timeout
*COM*:00000001 SYSTEM_initialized
NO UNDEFINED SYMBOLS