forked from Imagelibrary/rtems
validation: Add INVALID_ID to tx-support.h
This commit is contained in:
@@ -206,8 +206,6 @@ static const char * const * const RtemsBarrierReqCreate_PreDesc[] = {
|
|||||||
|
|
||||||
#define NAME rtems_build_name( 'T', 'E', 'S', 'T' )
|
#define NAME rtems_build_name( 'T', 'E', 'S', 'T' )
|
||||||
|
|
||||||
#define INVALID_ID 0xffffffff
|
|
||||||
|
|
||||||
typedef RtemsBarrierReqCreate_Context Context;
|
typedef RtemsBarrierReqCreate_Context Context;
|
||||||
|
|
||||||
static void Worker( rtems_task_argument arg )
|
static void Worker( rtems_task_argument arg )
|
||||||
|
|||||||
@@ -55,6 +55,8 @@
|
|||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "tx-support.h"
|
||||||
|
|
||||||
#include <rtems/test.h>
|
#include <rtems/test.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -234,8 +236,6 @@ static const char * const * const RtemsMessageReqConstructErrors_PreDesc[] = {
|
|||||||
|
|
||||||
#define NAME rtems_build_name( 'T', 'E', 'S', 'T' )
|
#define NAME rtems_build_name( 'T', 'E', 'S', 'T' )
|
||||||
|
|
||||||
#define INVALID_ID 0xffffffff
|
|
||||||
|
|
||||||
#define MAX_MESSAGE_QUEUES 4
|
#define MAX_MESSAGE_QUEUES 4
|
||||||
|
|
||||||
#define MAX_PENDING_MESSAGES 1
|
#define MAX_PENDING_MESSAGES 1
|
||||||
|
|||||||
@@ -60,6 +60,11 @@ typedef enum {
|
|||||||
PRIO_ULTRA_LOW
|
PRIO_ULTRA_LOW
|
||||||
} Priority;
|
} Priority;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This constants represents an invalid RTEMS object identifier.
|
||||||
|
*/
|
||||||
|
#define INVALID_ID 0xfffffffd
|
||||||
|
|
||||||
#define CreateTask( name, priority ) \
|
#define CreateTask( name, priority ) \
|
||||||
DoCreateTask( \
|
DoCreateTask( \
|
||||||
rtems_build_name( name[ 0 ], name[ 1 ], name[ 2 ], name[ 3 ] ), \
|
rtems_build_name( name[ 0 ], name[ 1 ], name[ 2 ], name[ 3 ] ), \
|
||||||
|
|||||||
Reference in New Issue
Block a user