even_man.h
来自「PICOS18 V2.10 基于PIC18的实时操作系统」· C头文件 代码 · 共 81 行
H
81 行
/**********************************************************************/
/* */
/* File name: even_man.h */
/* */
/* Since: 2004-Sept-20 */
/* */
/* Version: PICos18 v2.10 */
/* Copyright (C) 2003, 2004, 2005 Pragmatec. */
/* */
/* Author: Designed by Pragmatec S.A.R.L. www.pragmatec.net */
/* MONTAGNE Xavier [XM] xavier.montagne@pragmatec.net */
/* */
/* Purpose: The event manager is in charge of setting and clearing */
/* the events waited by the tasks. */
/* 2 areas are used to manage the arrival of events and */
/* the fact that some tasks are waiting for these events. */
/* - EVENT ram area : for events set by tasks or alarms */
/* - WAIT ram area : for events waited by tasks */
/* The job of the event manager is to take care of task */
/* activation in case of any similarity inbetween events */
/* set and events waited. */
/* */
/* Distribution: This file is part of PICos18. */
/* PICos18 is free software; you can redistribute it */
/* and/or modify it under the terms of the GNU General */
/* Public License as published by the Free Software */
/* Foundation; either version 2, or (at your option) */
/* any later version. */
/* */
/* PICos18 is distributed in the hope that it will be */
/* useful, but WITHOUT ANY WARRANTY; without even the */
/* implied warranty of MERCHANTABILITY or FITNESS FOR A */
/* PARTICULAR PURPOSE. See the GNU General Public */
/* License for more details. */
/* */
/* You should have received a copy of the GNU General */
/* Public License along with gpsim; see the file */
/* COPYING.txt. If not, write to the Free Software */
/* Foundation, 59 Temple Place - Suite 330, */
/* Boston, MA 02111-1307, USA. */
/* */
/* > A special exception to the GPL can be applied should */
/* you wish to distribute a combined work that includes */
/* PICos18, without being obliged to provide the source */
/* code for any proprietary components. */
/* */
/* History: */
/* 2002/09/09 [XM] Create this file. */
/* 2003/01/26 [XM] Replace fixed SECTIONS by relocatable SECTIONS. */
/* */
/**********************************************************************/
#ifndef _EVEN_MAN_h_
#define _EVEN_MAN_h_
/***********************************************************************
* ------------------------ Type definition ----------------------------
**********************************************************************/
typedef unsigned char EventMaskType;
typedef unsigned char *EventMaskRefType;
/***********************************************************************
* ---------------------------- Defines --------------------------------
**********************************************************************/
/***********************************************************************
* ----------------------- From even_man.c file ------------------------
**********************************************************************/
StatusType SetEvent(TaskType TaskID, EventMaskType Mask);
StatusType ClearEvent(EventMaskType Mask);
StatusType GetEvent(TaskType TaskID, EventMaskRefType Mask);
StatusType WaitEvent(EventMaskType Mask);
#endif /* _EVEN_MAN_h_ */
/* End of File : even_man.h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?