summaryrefslogtreecommitdiffstats
path: root/c/src/tests/tmtests/tm22
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/tmtests/tm22')
-rw-r--r--c/src/tests/tmtests/tm22/Makefile.am7
-rw-r--r--c/src/tests/tmtests/tm22/system.h6
-rw-r--r--c/src/tests/tmtests/tm22/task1.c16
3 files changed, 15 insertions, 14 deletions
diff --git a/c/src/tests/tmtests/tm22/Makefile.am b/c/src/tests/tmtests/tm22/Makefile.am
index b7118f5aed..935b4a7d88 100644
--- a/c/src/tests/tmtests/tm22/Makefile.am
+++ b/c/src/tests/tmtests/tm22/Makefile.am
@@ -1,8 +1,9 @@
-##
+##
## $Id$
-##
+##
AUTOMAKE_OPTIONS = foreign 1.4
+
TEST = tm22
MANAGERS = io message
@@ -11,7 +12,7 @@ C_FILES = task1.c
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
H_FILES = system.h
-noinst_HEADERS =$(H_FILES)
+noinst_HEADERS = $(H_FILES)
DOCTYPES = doc
DOCS = $(DOCTYPES:%=$(TEST).%)
diff --git a/c/src/tests/tmtests/tm22/system.h b/c/src/tests/tmtests/tm22/system.h
index 01af43fe96..ebdf6d4e80 100644
--- a/c/src/tests/tmtests/tm22/system.h
+++ b/c/src/tests/tmtests/tm22/system.h
@@ -26,10 +26,8 @@ rtems_task Init(
/* configuration information */
-#define CONFIGURE_TMTEST
-
-#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_TEST_NEEDS_TIMER_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 103
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
diff --git a/c/src/tests/tmtests/tm22/task1.c b/c/src/tests/tmtests/tm22/task1.c
index f5d577d2bf..3abb4cd22d 100644
--- a/c/src/tests/tmtests/tm22/task1.c
+++ b/c/src/tests/tmtests/tm22/task1.c
@@ -29,6 +29,8 @@ rtems_task Preempt_task(
rtems_task_argument argument
);
+#define MESSAGE_SIZE (sizeof(long) * 4)
+
rtems_task Init(
rtems_task_argument argument
)
@@ -43,7 +45,7 @@ rtems_task Init(
status = rtems_message_queue_create(
rtems_build_name( 'M', 'Q', '1', ' '),
100,
- 16,
+ MESSAGE_SIZE,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -89,8 +91,8 @@ rtems_task High_task(
Timer_initialize();
(void) rtems_message_queue_broadcast(
Queue_id,
- (long (*)[4]) Buffer,
- 16,
+ Buffer,
+ MESSAGE_SIZE,
&count
);
end_time = Read_timer();
@@ -143,8 +145,8 @@ rtems_task Low_task(
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_message_queue_broadcast(
Queue_id,
- (long (*)[4]) Buffer,
- 16,
+ Buffer,
+ MESSAGE_SIZE,
&count
);
end_time = Read_timer();
@@ -190,8 +192,8 @@ rtems_task Preempt_task(
Timer_initialize();
(void) rtems_message_queue_broadcast(
Queue_id,
- (long (*)[4]) Buffer,
- 16,
+ Buffer,
+ MESSAGE_SIZE,
&count
);