task.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *  $Id: resource.h 156 2008-06-28 10:05:26Z merdmann $
00003  *
00004  *  Mon Nov 26 06:50:00 2007
00005  *  Copyright  2007 Michael Erdmann
00006  *  Email:Michael.Erdmann@snafu.de
00007  ****************************************************************************/
00008 
00009 /*
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024 
00029 #ifndef _TASK_H
00030 #define _TASK_H
00031 
00032 #include "typedefs.h"
00033 #include "proc.h"
00034 
00039 #define DeclareTask(s)
00040 
00053 StatusType ActivateTask ( TaskType id );
00054 
00059 StatusType TerminateTask ( void );
00060 
00067 StatusType ChainTask ( TaskType id );
00068 
00074 //StatusType Schedule ( void );
00075 
00079 StatusType GetTaskID ( TaskRefType task );
00080 
00084 StatusType GetTaskState( TaskType id, TaskStateRefType state );
00085 
00087 #define TASK(x) void x(TASK_ARGUMENT arg)
00088 
00089 
00090 #endif
00091 

Generated on Mon Sep 29 19:56:47 2008 for mKernel by  doxygen 1.4.6