📄 ds_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 Development System */
/* Structures. */
/* */
/* ROUTINES */
/* */
/* None */
/* */
/* NOTES */
/* */
/* None */
/* */
/************************************************************************/
/* The define "DS_MAX_HISTORY_ENTRIES" defines the total number of entries
in the history log. */
#define DS_MAX_HISTORY_ENTRIES 50
/* The defines "DS_TIMER_STARTED" and "DS_TIMER_NOT_STARTED" indicate the
current status of the timer. */
#define DS_TIMER_STARTED 0
#define DS_TIMER_NOT_STARTED 1
/* The structure "DS_TIMER_INFO_STRUCT" defines the information
necessary to manage a system timer. */
struct DS_TIMER_INFO_STRUCT
{
unsigned int ds_max_time; /* Maximum delta time */
unsigned int ds_min_time; /* Minimum delta time */
unsigned int ds_timer_stat; /* Status of the timer */
unsigned int ds_timer_start;/* Start time of timer */
unsigned int ds_accum_time; /* Accumulated delta times */
unsigned int ds_accum_count;/* Accumulated counter */
};
/* The structure "DS_TASK_TIMERS_STRUCT" defines the task's timers. In
the file "DS.C" an array of these structures is defined- one for
each task. */
struct DS_TASK_TIMERS_STRUCT
{
struct DS_TIMER_INFO_STRUCT ds_execution_timer;
struct DS_TIMER_INFO_STRUCT ds_suspended_timer;
struct DS_TIMER_INFO_STRUCT ds_readywait_timer;
struct DS_TIMER_INFO_STRUCT ds_user_timer_1;
struct DS_TIMER_INFO_STRUCT ds_user_timer_2;
struct DS_TIMER_INFO_STRUCT ds_user_timer_3;
};
/* The structure "DS_HISTORY_ENTRY_STRUCT" defines an entry in the
system history log. In the file "DS.C" an array of these structures
is defined. */
struct DS_HISTORY_ENTRY_STRUCT
{
signed int ds_event_id; /* Event ID */
unsigned int ds_param_1; /* First parameter */
unsigned int ds_param_2; /* Second parameter */
unsigned int ds_time; /* Time of event */
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -