⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 em_defs.h

📁 NecluesRTX RTOS的源码
💻 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 Event Management          */
/*  Structures and the Event Suspension Structures.                     */
/*                                                                      */
/*  ROUTINES                                                            */
/*                                                                      */
/*      None                                                            */
/*                                                                      */
/*  NOTES                                                               */
/*                                                                      */
/*      None                                                            */
/*                                                                      */
/************************************************************************/



/* The structure "EM_SUSPENSION_STRUCT" defines the information necessary 
   to suspend a task on one event group.  This structure is allocated off 
   of the calling application stack.  */

struct EM_SUSPENSION_STRUCT 
{
    signed int               em_task_id;    /* Task suspended           */
    signed int        em_event_group_id;    /* ID of event group        */
    signed int               em_operation;  /* Selects flag relationship*/
    unsigned int             em_flags;      /* Desired event flags      */
    unsigned int            *em_flags_value;/* Current flags value ptr  */
    signed int              *em_return_addr;/* Address to return value  */
    struct EM_SUSPENSION_STRUCT
                            *em_next_susp,  /* Next suspension ptr      */
                            *em_prev_susp;  /* Previous suspension ptr  */
};


/* The structure "EM_EVENT_CONTROL_STRUCT" defines the information 
   necessary to manage an event group.  In the file "EM.C" an array of these 
   structures is allocated relative to the number of event groups defined
   in "IN_DATA.C."  */

struct EM_EVENT_CONTROL_STRUCT 
{
    unsigned int           em_event_flags;  /* Event flags of the group */
    struct EM_SUSPENSION_STRUCT
                            *em_wait_head,  /* Event wait head          */
                            *em_wait_tail;  /* Event wait tail          */
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -