include.h & os_cfg.h.rtf
来自「us/osII最新解读」· RTF 代码 · 共 53 行
RTF
53 行
OS_CFG.H
#define OS_MAX_EVENTS 20 /* Max. number of event control blocks in your application ... */
/* ... MUST be >= 2 */
#define OS_MAX_MEM_PART 10 /* Max. number of memory partitions ... */
/* ... MUST be >= 2 */
#define OS_MAX_QS 5 /* Max. number of queue control blocks in your application ... */
/* ... MUST be >= 2 */
#define OS_MAX_TASKS 32 /* Max. number of tasks in your application ... */
/* ... MUST be >= 2 */
#define OS_LOWEST_PRIO 63 /* Defines the lowest priority that can be assigned ... */
/* ... MUST NEVER be higher than 63! */
#define OS_TASK_IDLE_STK_SIZE 512 /* Idle task stack size (# of 16-bit wide entries) */
#define OS_TASK_STAT_EN 1 /* Enable (1) or Disable(0) the statistics task */
#define OS_TASK_STAT_STK_SIZE 512 /* Statistics task stack size (# of 16-bit wide entries) */
#define OS_CPU_HOOKS_EN 0 /* uC/OS-II hooks are NOT found in the processor port files */
#define OS_MBOX_EN 1 /* Include code for MAILBOXES */
#define OS_MEM_EN 0 /* Include code for MEMORY MANAGER (fixed sized memory blocks) */
#define OS_Q_EN 1 /* Include code for QUEUES */
#define OS_SEM_EN 0 /* Include code for SEMAPHORES */
#define OS_TASK_CHANGE_PRIO_EN 0 /* Include code for OSTaskChangePrio() */
#define OS_TASK_CREATE_EN 0 /* Include code for OSTaskCreate() */
#define OS_TASK_CREATE_EXT_EN 1 /* Include code for OSTaskCreateExt() */
#define OS_TASK_DEL_EN 0 /* Include code for OSTaskDel() */
#define OS_TASK_SUSPEND_EN 0 /* Include code for OSTaskSuspend() and OSTaskResume() */
#define OS_TICKS_PER_SEC 200 /* Set the number of ticks in one second */
INCLUDES.H
#include <stdio.h> <string.h> <ctype.h> <stdlib.h> <conio.h> <dos.h> <setjmp.h>
#include "\software\ucos-ii\ix86l\os_cpu.h"
#include "os_cfg.h"
#include "\software\blocks\pc\source\pc.h"
#include "\software\ucos-ii\source\ucos_ii.h"
#ifdef EX3_GLOBALS
#define EX3_EXT
#else
#define EX3_EXT extern
#endif
typedef struct {
char TaskName[30];
INT16U TaskCtr;
INT16U TaskExecTime;
INT32U TaskTotExecTime;
} TASK_USER_DATA;
EX3_EXT TASK_USER_DATA TaskUserData[10];
void DispTaskStat(INT8U id);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?