portevent.txt
5.13 KB
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
119
120
121
122
123
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o.\flash\obj\portevent.o --asm_dir=.\Flash\List\ --list_dir=.\Flash\List\ --depend=.\flash\obj\portevent.d --cpu=Cortex-M4.fp --apcs=interwork -O1 --diag_suppress=9931,870 -I..\..\Libraries\CMSIS\Include -I..\..\Libraries\CMSIS\Device\ST\STM32F4xx\Include -I..\..\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\uCOS-III\uC-CPU -I..\..\uCOS-III\uC-LIB -I..\..\uCOS-III\uCOS-III\Ports -I..\..\uCOS-III\uCOS-III\Source -I..\..\uCOS-III\uC-CPU\ARM-Cortex-M4\RealView -I..\..\uCOS-III\uC-LIB\Ports\ARM-Cortex-M4\RealView -I..\..\uCOS-III\uCOS-III\Ports\ARM-Cortex-M4\Generic\RealView -I..\..\User -I..\..\User\bsp -I..\..\User\bsp\inc -I..\..\User\libapp -I..\..\RL-ARM\Config -I..\..\RL-ARM\Driver -I..\..\RL-ARM\RL-RTX\inc -I..\..\User\bsp\BSP -I..\..\RL-ARM\RL-CAN -I..\..\Libraries\DSP_LIB\Include -I..\..\MODBUS\modbus\rtu -I..\..\MODBUS\BARE\port -I..\..\MODBUS\modbus\include -I..\..\User\bsp\BSP -I..\..\PLC -I..\..\Avoid -I..\..\User\parameter -I..\..\User\LaserMotionCtr -I..\..\User\W5100S -I..\..\User\bsp -I..\..\User\CHASSIS -I..\..\User\CONTROLFUNCTION -I..\..\User\DATAUPDATE -I..\..\User\HARAWARE -I..\..\User\MOTORDRIVER -I..\..\User\NAVAGATION -I..\..\User\PLATFORM -I..\..\User\SENSOR -I.\RTE\_Flash -IC:\Users\YDJ\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\YDJ\AppData\Local\Arm\Packs\Keil\STM32F4xx_DFP\2.13.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -D__UVISION_VERSION=527 -D_RTE_ -DSTM32F407xx -DUSE_STDPERIPH_DRIVER -DSTM32F40_41xxx -D__RTX -D__FPU_USED=1 --omf_browse=.\flash\obj\portevent.crf ..\..\MODBUS\BARE\port\portevent.c]
THUMB
AREA ||i.xMBPortEventGet||, CODE, READONLY, ALIGN=2
xMBPortEventGet PROC
;;;46 BOOL
;;;47 xMBPortEventGet( eMBEventType * eEvent )
000000 4602 MOV r2,r0
;;;48 {
;;;49 BOOL xEventHappened = FALSE;
000002 2000 MOVS r0,#0
;;;50
;;;51 if( xEventInQueue )
000004 4904 LDR r1,|L1.24|
000006 684b LDR r3,[r1,#4] ; xEventInQueue
000008 2b00 CMP r3,#0
00000a d004 BEQ |L1.22|
;;;52 {
;;;53 *eEvent = eQueuedEvent;
00000c 7808 LDRB r0,[r1,#0] ; eQueuedEvent
00000e 7010 STRB r0,[r2,#0]
;;;54 xEventInQueue = FALSE;
000010 2000 MOVS r0,#0
000012 6048 STR r0,[r1,#4] ; xEventInQueue
;;;55 xEventHappened = TRUE;
000014 2001 MOVS r0,#1
|L1.22|
;;;56 }
;;;57 return xEventHappened;
;;;58 }
000016 4770 BX lr
ENDP
|L1.24|
DCD ||.data||
AREA ||i.xMBPortEventInit||, CODE, READONLY, ALIGN=2
xMBPortEventInit PROC
;;;31 BOOL
;;;32 xMBPortEventInit( void )
000000 4902 LDR r1,|L2.12|
;;;33 {
;;;34 xEventInQueue = FALSE;
000002 2000 MOVS r0,#0
000004 6048 STR r0,[r1,#4] ; xEventInQueue
;;;35 return TRUE;
000006 2001 MOVS r0,#1
;;;36 }
000008 4770 BX lr
;;;37
ENDP
00000a 0000 DCW 0x0000
|L2.12|
DCD ||.data||
AREA ||i.xMBPortEventPost||, CODE, READONLY, ALIGN=2
xMBPortEventPost PROC
;;;38 BOOL
;;;39 xMBPortEventPost( eMBEventType eEvent )
000000 4902 LDR r1,|L3.12|
;;;40 {
;;;41 xEventInQueue = TRUE;
000002 2201 MOVS r2,#1
000004 604a STR r2,[r1,#4] ; xEventInQueue
;;;42 eQueuedEvent = eEvent;
000006 7008 STRB r0,[r1,#0]
;;;43 return TRUE;
000008 2001 MOVS r0,#1
;;;44 }
00000a 4770 BX lr
;;;45
ENDP
|L3.12|
DCD ||.data||
AREA ||.data||, DATA, ALIGN=2
eQueuedEvent
000000 00000000 DCB 0x00,0x00,0x00,0x00
xEventInQueue
DCD 0x00000000
;*** Start embedded assembler ***
#line 1 "..\\..\\MODBUS\\BARE\\port\\portevent.c"
AREA ||.rev16_text||, CODE
THUMB
EXPORT |__asm___11_portevent_c_82565698____REV16|
#line 129 "..\\..\\Libraries\\CMSIS\\Include\\core_cmInstr.h"
|__asm___11_portevent_c_82565698____REV16| PROC
#line 130
rev16 r0, r0
bx lr
ENDP
AREA ||.revsh_text||, CODE
THUMB
EXPORT |__asm___11_portevent_c_82565698____REVSH|
#line 144
|__asm___11_portevent_c_82565698____REVSH| PROC
#line 145
revsh r0, r0
bx lr
ENDP
AREA ||.rrx_text||, CODE
THUMB
EXPORT |__asm___11_portevent_c_82565698____RRX|
#line 300
|__asm___11_portevent_c_82565698____RRX| PROC
#line 301
rrx r0, r0
bx lr
ENDP
;*** End embedded assembler ***