validation: Add INVALID_ID to tx-support.h

This commit is contained in:
Sebastian Huber
2021-05-12 07:11:48 +02:00
parent bc29c7c313
commit 410317ae3a
3 changed files with 7 additions and 4 deletions

View File

@@ -206,8 +206,6 @@ static const char * const * const RtemsBarrierReqCreate_PreDesc[] = {
#define NAME rtems_build_name( 'T', 'E', 'S', 'T' )
#define INVALID_ID 0xffffffff
typedef RtemsBarrierReqCreate_Context Context;
static void Worker( rtems_task_argument arg )

View File

@@ -55,6 +55,8 @@
#include <rtems.h>
#include <string.h>
#include "tx-support.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 INVALID_ID 0xffffffff
#define MAX_MESSAGE_QUEUES 4
#define MAX_PENDING_MESSAGES 1

View File

@@ -60,6 +60,11 @@ typedef enum {
PRIO_ULTRA_LOW
} Priority;
/**
* @brief This constants represents an invalid RTEMS object identifier.
*/
#define INVALID_ID 0xfffffffd
#define CreateTask( name, priority ) \
DoCreateTask( \
rtems_build_name( name[ 0 ], name[ 1 ], name[ 2 ], name[ 3 ] ), \