Added new defines OBJECTS_ID_NONE

and RTEMS_ID_NONE.  No object can have this ID.
This commit is contained in:
Thomas Doerfler
2008-05-27 10:31:22 +00:00
parent 1e642c6c1d
commit 0868844e5e
2 changed files with 8 additions and 0 deletions

View File

@@ -50,8 +50,11 @@ typedef double_precision rtems_double; /* double precision float */
typedef boolean rtems_boolean; typedef boolean rtems_boolean;
typedef uint32_t rtems_name; typedef uint32_t rtems_name;
typedef Objects_Id rtems_id; typedef Objects_Id rtems_id;
#define RTEMS_ID_NONE OBJECTS_ID_NONE
typedef Context_Control rtems_context; typedef Context_Control rtems_context;
typedef Context_Control_fp rtems_context_fp; typedef Context_Control_fp rtems_context_fp;
typedef CPU_Interrupt_frame rtems_interrupt_frame; typedef CPU_Interrupt_frame rtems_interrupt_frame;

View File

@@ -387,6 +387,11 @@ SCORE_EXTERN uint16_t _Objects_Maximum_nodes;
SCORE_EXTERN Objects_Information SCORE_EXTERN Objects_Information
**_Objects_Information_table[OBJECTS_APIS_LAST + 1]; **_Objects_Information_table[OBJECTS_APIS_LAST + 1];
/**
* No object can have this ID.
*/
#define OBJECTS_ID_NONE 0
/** /**
* The following defines the constant which may be used * The following defines the constant which may be used
* with _Objects_Get to manipulate the calling task. * with _Objects_Get to manipulate the calling task.