mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user