From 352c9b2035e32e56f10f261d94955d97f4ab0f1c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 9 Nov 1999 22:07:23 +0000 Subject: This patch adds the basic framework for the ITRON 3.0 API implementation for RTEMS. --- cpukit/itron/include/rtems/itron/task.h | 88 +++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 cpukit/itron/include/rtems/itron/task.h (limited to 'cpukit/itron/include/rtems/itron/task.h') diff --git a/cpukit/itron/include/rtems/itron/task.h b/cpukit/itron/include/rtems/itron/task.h new file mode 100644 index 0000000000..fffcc16d82 --- /dev/null +++ b/cpukit/itron/include/rtems/itron/task.h @@ -0,0 +1,88 @@ +/* + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#ifndef __RTEMS_ITRON_TASK_h_ +#define __RTEMS_ITRON_TASK_h_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include + +/* + * This macro evaluates to TRUE if there should be a "context error." + * This is defined as a blocking directive being issed from + * task-independent portions or a task in dispatch disabled state. + * + * NOTE: Dispatching is disabled in interrupts so this should cover + * both cases. + */ + +#define _ITRON_Is_in_non_task_state() \ + (_Thread_Dispatch_disable_level != 0) + +/* + * This is the API specific information required by each thread for + * the ITRON API to function correctly. + */ + + +typedef struct { + unsigned32 unused; /* no use for the API extension */ + /* structure for ITRON identified yet */ +} ITRON_API_Control; + +/* + * The following defines the information control block used to + * manage this class of objects. + */ + +ITRON_EXTERN Objects_Information _ITRON_Task_Information; + +/* + * These are used to manage the user initialization tasks. + */ + +ITRON_EXTERN itron_initialization_tasks_table + *_ITRON_Task_User_initialization_tasks; +ITRON_EXTERN unsigned32 _ITRON_Task_Number_of_initialization_tasks; + + +/* + * _ITRON_Task_Manager_initialization + * + * This routine initializes the ITRON Task Manager. + */ + +void _ITRON_Task_Manager_initialization( + unsigned32 maximum_tasks, + unsigned32 number_of_initialization_tasks, + itron_initialization_tasks_table *user_tasks +); + +/* + * + * _ITRON_Delete_task + */ + +ER _ITRON_Delete_task( + Thread_Control *the_thread +); + +#include + +#ifdef __cplusplus +} +#endif + +#endif +/* end of include file */ + -- cgit v1.2.3