taskdsp.h
来自「一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上」· C头文件 代码 · 共 45 行
H
45 行
#ifndef TSKDSP_H
#define TSKDSP_H
#include <asixdef.h>
#include <sys\sysusr.h>
/* Define Task Description Control Block */
typedef struct _taskdescription
{
// struct _taskdescription *next;
// struct _taskdescription *prev;
CHAR *name; /* task name */
BYTE mode;
BYTE group; /* the group task belongs to */
const CHAR *icon; /* task's icon */
WORD stksize; /* stack size */
WORD newscreen; /* whether this task need a new screen */
//DWORD screensize; /* high word : width; low word : height */
WORD scr_w; /* the new screen width; */
WORD scr_h; /* the new screen hight; */
VOID (*entry)(); /* task's entry point */
SHORT pri; /* task's priority */
}TASKDESCRIPTION;
typedef struct _tskdesplst
{
struct _tskdesplst *next;
struct _tskdesplst *prev;
TASKDESCRIPTION *desp;
DWORD taskid;
DWORD *stack; /* pointer to the stack of this task */
}TASKDESCRIPTIONLIST;
/* PUBLIC FUNTION */
PUBLIC void SysTableInit(void);
EXTERN TASKDESCRIPTIONLIST *TaskDescription;
//__declspec( dllimport ) const TASKDESCRIPTION TaskTemplate[];
EXTERN TASKDESCRIPTION TaskTemplate[];
#endif /* TSKDSP_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?