summaryrefslogtreecommitdiffstats
path: root/testsuites/validation/tc-score-smp-thread.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-03-17 15:52:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-03-17 15:55:39 +0100
commit74a6b33f3b48f8f2bd1b8e9a5026803965123eea (patch)
treee2314fcd7756aeac5cae081b852456faa21e6a16 /testsuites/validation/tc-score-smp-thread.c
parentdoxygen: Add group for FreeBSD kernel header files (diff)
downloadrtems-74a6b33f3b48f8f2bd1b8e9a5026803965123eea.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--testsuites/validation/tc-score-smp-thread.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/testsuites/validation/tc-score-smp-thread.c b/testsuites/validation/tc-score-smp-thread.c
index 7208514b32..70ef9af766 100644
--- a/testsuites/validation/tc-score-smp-thread.c
+++ b/testsuites/validation/tc-score-smp-thread.c
@@ -159,17 +159,21 @@ typedef struct {
static ScoreThreadValSmp_Context
ScoreThreadValSmp_Instance;
-typedef ScoreThreadValSmp_Context Context;
+#define EVENT_OBTAIN RTEMS_EVENT_0
+
+#define EVENT_RELEASE RTEMS_EVENT_1
+
+#define EVENT_COUNT_EARLY RTEMS_EVENT_2
+
+#define EVENT_BUSY RTEMS_EVENT_3
-typedef enum {
- EVENT_OBTAIN = RTEMS_EVENT_0,
- EVENT_RELEASE = RTEMS_EVENT_1,
- EVENT_COUNT_EARLY = RTEMS_EVENT_2,
- EVENT_BUSY = RTEMS_EVENT_3,
- EVENT_COUNT = RTEMS_EVENT_4,
- EVENT_LET_WORKER_C_COUNT = RTEMS_EVENT_5,
- EVENT_SET_TASK_SWITCH_EXTENSION = RTEMS_EVENT_6
-} Event;
+#define EVENT_COUNT RTEMS_EVENT_4
+
+#define EVENT_LET_WORKER_C_COUNT RTEMS_EVENT_5
+
+#define EVENT_SET_TASK_SWITCH_EXTENSION RTEMS_EVENT_6
+
+typedef ScoreThreadValSmp_Context Context;
static void TaskSwitchExtension( rtems_tcb *executing, rtems_tcb *heir )
{