📄 os_flag.ls1
字号:
A51 MACRO ASSEMBLER OS_FLAG 08/08/2005 11:36:41 PAGE 1
MACRO ASSEMBLER A51 V7.10
OBJECT MODULE PLACED IN OS_FLAG.OBJ
ASSEMBLER INVOKED BY: C:\Keil\C51\BIN\A51.EXE OS_FLAG.src PR(.\OS_FLAG.ls1) EP DEBUG
LOC OBJ LINE SOURCE
1 ; .\OS_FLAG.SRC generated from: OS_FLAG.C
2 ; COMPILER INVOKED BY:
3 ; C:\Keil\C51\BIN\C51.EXE OS_FLAG.C LARGE BROWSE ORDER NOAREGS DEBUG OBJECTEXTEND SR
C(.\OS_FLAG.SRC)
4
5 $nomod51
6
7 NAME OS_FLAG
8
0080 9 P0 DATA 080H
0090 10 P1 DATA 090H
00A0 11 P2 DATA 0A0H
00B0 12 P3 DATA 0B0H
00D0 13 PSW DATA 0D0H
00E0 14 ACC DATA 0E0H
00F0 15 B DATA 0F0H
0081 16 SP DATA 081H
0082 17 DPL DATA 082H
0083 18 DPH DATA 083H
0087 19 PCON DATA 087H
0088 20 TCON DATA 088H
0089 21 TMOD DATA 089H
008A 22 TL0 DATA 08AH
008B 23 TL1 DATA 08BH
008C 24 TH0 DATA 08CH
008D 25 TH1 DATA 08DH
00A8 26 IE DATA 0A8H
00B8 27 IP DATA 0B8H
0098 28 SCON DATA 098H
0099 29 SBUF DATA 099H
00D7 30 CY BIT 0D0H.7
00D6 31 AC BIT 0D0H.6
00D5 32 F0 BIT 0D0H.5
00D4 33 RS1 BIT 0D0H.4
00D3 34 RS0 BIT 0D0H.3
00D2 35 OV BIT 0D0H.2
00D0 36 P BIT 0D0H.0
008F 37 TF1 BIT 088H.7
008E 38 TR1 BIT 088H.6
008D 39 TF0 BIT 088H.5
008C 40 TR0 BIT 088H.4
008B 41 IE1 BIT 088H.3
008A 42 IT1 BIT 088H.2
0089 43 IE0 BIT 088H.1
0088 44 IT0 BIT 088H.0
00AF 45 EA BIT 0A8H.7
00AC 46 ES BIT 0A8H.4
00AB 47 ET1 BIT 0A8H.3
00AA 48 EX1 BIT 0A8H.2
00A9 49 ET0 BIT 0A8H.1
00A8 50 EX0 BIT 0A8H.0
00BC 51 PS BIT 0B8H.4
00BB 52 PT1 BIT 0B8H.3
00BA 53 PX1 BIT 0B8H.2
00B9 54 PT0 BIT 0B8H.1
00B8 55 PX0 BIT 0B8H.0
00B7 56 RD BIT 0B0H.7
00B6 57 WR BIT 0B0H.6
A51 MACRO ASSEMBLER OS_FLAG 08/08/2005 11:36:41 PAGE 2
00B5 58 T1 BIT 0B0H.5
00B4 59 T0 BIT 0B0H.4
00B3 60 INT1 BIT 0B0H.3
00B2 61 INT0 BIT 0B0H.2
00B1 62 TXD BIT 0B0H.1
00B0 63 RXD BIT 0B0H.0
009F 64 SM0 BIT 098H.7
009E 65 SM1 BIT 098H.6
009D 66 SM2 BIT 098H.5
009C 67 REN BIT 098H.4
009B 68 TB8 BIT 098H.3
009A 69 RB8 BIT 098H.2
0099 70 TI BIT 098H.1
0098 71 RI BIT 098H.0
72 ; /*
73 ; *****************************************************************************************
****************
74 ; * uC/OS-II
75 ; * The Real-Time Kernel
76 ; * EVENT FLAG MANAGEMENT
77 ; *
78 ; * (c) Copyright 2001-2002, Jean J. Labrosse, Weston, FL
79 ; * All Rights Reserved
80 ; *
81 ; * File : OS_FLAG.C
82 ; * By : Jean J. Labrosse
83 ; *****************************************************************************************
****************
84 ; */
85 ;
86 ; #ifndef OS_MASTER_FILE
87 ; #include "INCLUDES.H"
88 ; #endif
89 ;
90 ; #if (OS_VERSION >= 251) && (OS_FLAG_EN > 0) && (OS_MAX_FLAGS > 0)
91 ; /*
92 ; *****************************************************************************************
****************
93 ; * LOCAL PROTOTYPES
94 ; *****************************************************************************************
****************
95 ; */
96 ;
97 ; static void OS_FlagBlock(OS_FLAG_GRP *pgrp, OS_FLAG_NODE *pnode, OS_FLAGS flags, INT
8U wait_type, INT16U timeout);
98 ; static BOOLEAN OS_FlagTaskRdy(OS_FLAG_NODE *pnode, OS_FLAGS flags_rdy);
99 ;
100 ; /*$PAGE*/
101 ; /*
102 ; *****************************************************************************************
****************
103 ; * CHECK THE STATUS OF FLAGS IN AN EVENT FLAG GROUP
104 ; *
105 ; * Description: This function is called to check the status of a combination of bits to be
set or cleared
106 ; * in an event flag group. Your application can check for ANY bit to be set/
cleared or ALL
107 ; * bits to be set/cleared.
108 ; *
109 ; * This call does not block if the desired flags are not present.
110 ; *
111 ; * Arguments : pgrp is a pointer to the desired event flag group.
112 ; *
113 ; * flags Is a bit pattern indicating which bit(s) (i.e. flags) you wi
sh to check.
114 ; * The bits you want are specified by setting the corresponding
A51 MACRO ASSEMBLER OS_FLAG 08/08/2005 11:36:41 PAGE 3
bits in
115 ; * 'flags'. e.g. if your application wants to wait for bits 0
and 1 then
116 ; * 'flags' would contain 0x03.
117 ; *
118 ; * wait_type specifies whether you want ALL bits to be set/cleared or ANY
of the bits
119 ; * to be set/cleared.
120 ; * You can specify the following argument:
121 ; *
122 ; * OS_FLAG_WAIT_CLR_ALL You will check ALL bits in 'flags' to
be clear (0)
123 ; * OS_FLAG_WAIT_CLR_ANY You will check ANY bit in 'flags' to
be clear (0)
124 ; * OS_FLAG_WAIT_SET_ALL You will check ALL bits in 'flags' to
be set (1)
125 ; * OS_FLAG_WAIT_SET_ANY You will check ANY bit in 'flags' to
be set (1)
126 ; *
127 ; * NOTE: Add OS_FLAG_CONSUME if you want the event flag to be '
consumed' by
128 ; * the call. Example, to wait for any flag in a group AN
D then clear
129 ; * the flags that are present, set 'wait_type' to:
130 ; *
131 ; * OS_FLAG_WAIT_SET_ANY + OS_FLAG_CONSUME
132 ; *
133 ; * err is a pointer to an error code and can be:
134 ; * OS_NO_ERR No error
135 ; * OS_ERR_EVENT_TYPE You are not pointing to an event flag
group
136 ; * OS_FLAG_ERR_WAIT_TYPE You didn't specify a proper 'wait_typ
e' argument.
137 ; * OS_FLAG_INVALID_PGRP You passed a NULL pointer instead of
the event flag
138 ; * group handle.
139 ; * OS_FLAG_ERR_NOT_RDY The desired flags you are waiting for
are not
140 ; * available.
141 ; *
142 ; * Returns : The state of the flags in the event flag group.
143 ; *
144 ; * Called from: Task or ISR
145 ; *****************************************************************************************
****************
146 ; */
147 ;
148 ; #if OS_FLAG_ACCEPT_EN > 0
149 ; OS_FLAGS OSFlagAccept (OS_FLAG_GRP *pgrp, OS_FLAGS flags, INT8U wait_type, INT8U *err)
150 ; {
151 ;
152 ; OS_FLAGS flags_cur;
153 ; OS_FLAGS flags_rdy;
154 ; BOOLEAN consume;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -