📄 main.lst
字号:
35 =2 #define OS_FLAG_ACCEPT_EN 0 /* Include code for OSFlagAccept()
- */
36 =2 #define OS_FLAG_DEL_EN 0 /* Include code for OSFlagDel()
- */
37 =2 #define OS_FLAG_QUERY_EN 0 /* Include code for OSFlagQuery()
- */
38 =2
39 =2 /* -------------------- MESSAGE MAILBOXES ---------------
------- */
40 =2 #define OS_MBOX_EN 0 /* Enable (1) or Disable (0) code generation for MAILBOXE
-S */
41 =2 #define OS_MBOX_ACCEPT_EN 0 /* Include code for OSMboxAccept()
- */
42 =2 #define OS_MBOX_DEL_EN 0 /* Include code for OSMboxDel()
- */
43 =2 #define OS_MBOX_POST_EN 0 /* Include code for OSMboxPost()
- */
44 =2 #define OS_MBOX_POST_OPT_EN 0 /* Include code for OSMboxPostOpt()
- */
45 =2 #define OS_MBOX_QUERY_EN 0 /* Include code for OSMboxQuery()
- */
46 =2
47 =2 /* ---------------- MUTUAL EXCLUSION SEMAPHORES ---------
------- */
48 =2 #define OS_MUTEX_EN 0 /* Enable (1) or Disable (0) code generation for MUTEX
- */
49 =2 #define OS_MUTEX_ACCEPT_EN 0 /* Include code for OSMutexAccept()
- */
50 =2 #define OS_MUTEX_DEL_EN 0 /* Include code for OSMutexDel()
- */
51 =2 #define OS_MUTEX_QUERY_EN 0 /* Include code for OSMutexQuery()
- */
52 =2
53 =2 /* ---------------------- MESSAGE QUEUES ----------------
------- */
54 =2 #define OS_MAX_QS 0 /* Max. number of queue control blocks in your applicatio
C51 COMPILER V7.50 MAIN 12/23/2004 09:42:16 PAGE 9
-n */
55 =2 #define OS_Q_EN 0 /* Enable (1) or Disable (0) code generation for QUEUES
- */
56 =2 #define OS_Q_ACCEPT_EN 0 /* Include code for OSQAccept()
- */
57 =2 #define OS_Q_DEL_EN 0 /* Include code for OSQDel()
- */
58 =2 #define OS_Q_FLUSH_EN 0 /* Include code for OSQFlush()
- */
59 =2 #define OS_Q_POST_EN 0 /* Include code for OSQPost()
- */
60 =2 #define OS_Q_POST_FRONT_EN 0 /* Include code for OSQPostFront()
- */
61 =2 #define OS_Q_POST_OPT_EN 0 /* Include code for OSQPostOpt()
- */
62 =2 #define OS_Q_QUERY_EN 0 /* Include code for OSQQuery()
- */
63 =2
64 =2 /* ------------------------ SEMAPHORES ------------------
------- */
65 =2 #define OS_SEM_EN 0 /* Enable (1) or Disable (0) code generation for SEMAPHOR
-ES */
66 =2 #define OS_SEM_ACCEPT_EN 0 /* Include code for OSSemAccept()
- */
67 =2 #define OS_SEM_DEL_EN 0 /* Include code for OSSemDel()
- */
68 =2 #define OS_SEM_QUERY_EN 0 /* Include code for OSSemQuery()
- */
69 =2
70 =2
71 =2
72 =2 /* --------------------- TASK MANAGEMENT ----------------
------- */
73 =2 #define OS_TASK_NAME_SIZE 0 /* Determine the size of a task name
- */
74 =2 #define OS_TASK_PROFILE_EN 0 /* Include variables in OS_TCB for profiling
- */
75 =2 #define OS_TASK_CHANGE_PRIO_EN 0 /* Include code for OSTaskChangePrio()
- */
76 =2 #define OS_TASK_CREATE_EN 1 /* Include code for OSTaskCreate()
- */
77 =2 #define OS_TASK_CREATE_EXT_EN 0 /* Include code for OSTaskCreateExt()
- */
78 =2 #define OS_TASK_STK_CHK_EN 0 /* Include code for OSTaskStkChk()
- */
79 =2 #define OS_TASK_STAT_EN 0 /* Enable (1) or Disable(0) the statistics task
- */
80 =2 #define OS_TASK_STAT_STK_CHK_EN 0 /* Check task stacks from statistic task
- */
81 =2 #define OS_TASK_DEL_EN 0 /* Include code for OSTaskDel()
- */
82 =2 #define OS_TASK_DEL_REQ_EN 0 /* Include code for OSTaskDelReq()
- */
83 =2 #define OS_TASK_QUERY_EN 0 /* Include code for OSTaskQuery()
- */
84 =2 #define OS_TASK_SUSPEND_EN 0 /* Include code for OSTaskSuspend() and OSTaskResume(
-) */
85 =2
86 =2
87 =2 /* ---------------------- MISCELLANEOUS -----------------
------- */
88 =2 #define OS_SCHED_LOCK_EN 0 /* Include code for OSSchedLock() and OSSchedUnlock()
C51 COMPILER V7.50 MAIN 12/23/2004 09:42:16 PAGE 10
- */
89 =2 #define OS_VERSION_EN 0 /* Include code for OSVersion()
- */
90 =2
91 =2
92 =2 /* --------------------- TIME MANAGEMENT ----------------
------- */
93 =2 #define OS_TIME_DLY_EN 1 /* Include code for OSTimeDly()
- */
94 =2 #define OS_TIME_DLY_HMSM_EN 0 /* Include code for OSTimeDlyHMSM()
- */
95 =2 #define OS_TIME_DLY_RESUME_EN 0 /* Include code for OSTimeDlyResume()
- */
96 =2 #define OS_TIME_GET_SET_EN 0 /* Include code for OSTimeGet() and OSTimeSet()
- */
97 =2
98 =2
99 =2 /* ------------------------ OS HOOK ---------------------
------- */
100 =2 #define OS_TASK_SW_HOOK_EN 1 /* Include code for OSTaskSwHook() Must modify os_cpu
-_a.asm */
101 =2 #define OS_CPU_HOOKS_EN 0 /* uC/OS-II hooks are found in the processor port files
- */
102 =2 #define OS_INIT_HOOK_BEGIN_EN 0 /* Include code for OSInitHookBegin()
- */
103 =2 #define OS_INIT_HOOK_END_EN 0 /* Include code for OSInitHookEnd()
- */
104 =2 #define OS_TASK_CREATE_HOOK_EN 0 /* Include code for OSTaskCreateHook()
- */
105 =2 #define OS_TASK_DEL_HOOK_EN 0 /* Include code for OSTaskDelHook()
- */
106 =2 #define OS_TASK_IDEL_HOOK_EN 0 /* Include code for OSTaskIdleHook()
- */
107 =2 #define OS_TASK_STAT_HOOK_EN 0 /* Include code for OSTaskStatHook()
- */
108 =2 #define OS_TCB_INIT_HOOK_EN 0 /* Include code for OSTCBInitHook()
- */
109 =2 #define OS_TIME_TICK_HOOK_EN 0 /* Include code for OSTimeTickHook()
- */
110 =2
111 =2
112 =2 /* --------------------- MEMORY MANAGEMENT --------------
------- */
113 =2 #define OS_MAX_MEM_PART 0 /* Max. number of memory partitions
- */
114 =2 #define OS_MEM_EN 0 /* Enable (1) or Disable (0) code generation for MEMORY M
-ANAGER */
115 =2 #define OS_MEM_QUERY_EN 0 /* Include code for OSMemQuery()
- */
116 =2 #define OS_MEM_NAME_SIZE 0 /* Determine the size of a memory partition name
- */
117 =2
118 =2
119 =2 /* -------------------------- OS DEBUG ------------------
------- */
120 =2 #define OS_ARG_CHK_EN 0 /* Enable (1) or Disable (0) argument checking
- */
121 =2 #define OS_DEBUG_EN 0 /* Enable(1) debug variables
- */
122 =2 #define OS_TICK_STEP_EN 0 /* Enable tick stepping feature for uC/OS-View
- */
123 =2
C51 COMPILER V7.50 MAIN 12/23/2004 09:42:16 PAGE 11
124 =2
125 =2
126 =2 #define OS_TASK_IDLE_STK_SIZE TaskStkSize /* Idle task stack size (# of OS_STK wide entries)
- */
127 =2 #define OS_TASK_STAT_STK_SIZE TaskStkSize /* Statistics task stack size (# of OS_STK wide entries)
- */
128 =2
129 =2
130 =2 /*
131 =2 *********************************************************************************************************
132 =2 * Intel 80x51 Large Model
133 =2 *
134 =2 * Method #1: Disable/Enable interrupts using simple instructions. After critical section, interrupts
135 =2 * will be enabled even if they were disabled before entering the critical section.
136 =2 *
137 =2 * Method #2: Disable/Enable interrupts by preserving the state of interrupts. In other words, if
138 =2 * interrupts were disabled before entering the critical section, they will be disabled when
139 =2 * leaving the critical section.
140 =2 *
141 =2 * Method #3: Disable/Enable interrupts by preserving the state of interrupts. Generally speaking you
142 =2 * would store the state of the interrupt disable flag in the local variable 'cpu_sr' and then
143 =2 * disable interrupts. 'cpu_sr' is allocated in all of uC/OS-II's functions that need to
144 =2 * disable interrupts. You would restore the interrupt disable state by copying back 'cpu_sr'
145 =2 * into the CPU's status register.
146 =2 *********************************************************************************************************
147 =2 */
148 =2 #define OS_CRITICAL_METHOD 3
149 =2
150 =2 #endif //#ifndef OS_CFG_H
24 =1 #include "..\ucos261\mcs51\os_cpu.h"
1 =2 /*
2 =2 *********************************************************************************************************
3 =2 * uC/OS-II
4 =2 * 实时内核
5 =2 *
6 =2 * (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
7 =2 * 版权所有
8 =2 *
9 =2 * MCU-51 专用代码
10 =2 * KEIL C51大模式编译
11 =2 *
12 =2 * 文件名 : OS_CPU.H
13 =2 * 作者 : Jean J. Labrosse
14 =2 * 改编 : 杨屹 gdtyy@ri.gdt.com.cn 巨龙公司系统集成开发部
15 =2 *********************************************************************************************************
16 =2 */
17 =2 #ifndef OS_CPU_H
18 =2 #define OS_CPU_H
19 =2
20 =2 #ifdef OS_CPU_GLOBALS
=2 #define OS_CPU_EXT
=2 #else
23 =2 #define OS_CPU_EXT extern
24 =2 #endif
25 =2
26 =2 /*
27 =2 *********************************************************************************************************
28 =2 * 数据类型
29 =2 * (编译器相关)
30 =2 *********************************************************************************************************
31 =2 */
32 =2
C51 COMPILER V7.50 MAIN 12/23/2004 09:42:16 PAGE 12
33 =2 //详见C51.PDF第176页
34 =2 typedef unsigned char BOOLEAN; //注意:不要使用bit定义,因为在结构体里无法使用
35 =2 typedef unsigned char INT8U; //无符号8位数
36 =2 typedef signed char INT8S; //有符号8位数
37 =2 typedef unsigned int INT16U; //无符号16位数
38 =2 typedef signed int INT16S; //有符号16位数
39 =2 typedef unsigned long INT32U; //无符号32位数
40 =2 typedef signed long INT32S; //有符号32位数
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -