validation: Replace enum Event with defines

There is a Doxygen limitation that all compound names (enum, struct,
class, union, group) within a project must be unique.

Update #3716.
This commit is contained in:
Sebastian Huber
2023-03-17 15:52:33 +01:00
parent 3353d3f3ad
commit 74a6b33f3b
9 changed files with 90 additions and 68 deletions

View File

@@ -112,15 +112,17 @@ typedef struct {
static RtemsSemValPerf_Context
RtemsSemValPerf_Instance;
typedef RtemsSemValPerf_Context Context;
#define EVENT_END RTEMS_EVENT_0
typedef enum {
EVENT_END = RTEMS_EVENT_0,
EVENT_OBTAIN = RTEMS_EVENT_1,
EVENT_OBTAIN_END = RTEMS_EVENT_2,
EVENT_RELEASE = RTEMS_EVENT_3,
EVENT_RELEASE_END = RTEMS_EVENT_4
} Event;
#define EVENT_OBTAIN RTEMS_EVENT_1
#define EVENT_OBTAIN_END RTEMS_EVENT_2
#define EVENT_RELEASE RTEMS_EVENT_3
#define EVENT_RELEASE_END RTEMS_EVENT_4
typedef RtemsSemValPerf_Context Context;
static void Send( const Context *ctx, rtems_event_set events )
{