📄 sk_defs.h
字号:
/************************************************************************/
/* */
/* Copyright 1990 by Accelerated Technology */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are */
/* governed by the license agreement. The buyer or recipient of this */
/* package, implicitly accepts the terms of the license. */
/* */
/************************************************************************/
/************************************************************************/
/* */
/* FILE DESCRIPTION */
/* */
/* This file contains the description of the system Task Control */
/* Block (TCB). Additional information may be required for certain */
/* target processor applications. */
/* */
/* ROUTINES */
/* */
/* None */
/* */
/* NOTES */
/* */
/* None */
/* */
/************************************************************************/
/* Define the value to check for stack memory overwrite problems. If
this value is not in front of the stack, a subsequently created
task's stack has overrun it. */
#define SK_STACK_PROTECT 0x1234
/* The structure "SK_TASK_CONTROL_BLOCK_STRUCT" defines the block of
information necessary to support the execution of a task. In the
file "SKP.C" an array of these structures is allocated relative
to the number of tasks specified in the file "IN_DATA.C." */
struct SK_TASK_CONTROL_BLOCK_STRUCT
{
unsigned int sk_task_id; /* Task identification */
unsigned int sk_priority; /* Task priority */
unsigned int sk_suspend; /* Task suspension type */
unsigned int sk_scheduled; /* Task scheduled count */
unsigned int sk_nu_1; /* Notused */
unsigned int sk_nu_2; /* */
signed int sk_no_preempt; /* No preemption count */
signed int sk_time_slice; /* Time slice */
/* Basic setup parameters, including the original start of execution
address. */
void (*sk_task_addr) (); /* Original task address */
unsigned int sk_stack_size; /* Task stack size in
unsigned words */
unsigned int sk_stack_base; /* Base address of stack */
unsigned int *sk_stack_fence;/* Fence to detect stack
memory overwrite */
unsigned int sk_stack_ptr; /* Pointer into task stack */
/* The following portion of this structure allows the TCB to be
chained to the ready list. */
struct SK_TASK_CONTROL_BLOCK_STRUCT *sk_ready_prev,
*sk_ready_next;
};
/* Note that if changes are made to items above the next and previous TCB
pointers, watch out for side-effects in SKD.? */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -