[rtems commit] tmtests/tm21: Fix configuration

Sebastian Huber sebh at rtems.org
Mon Apr 7 14:42:12 UTC 2014


Module:    rtems
Branch:    master
Commit:    316ba974bad19a401e29ef1706f1484d2c38cdfe
Changeset: http://git.rtems.org/rtems/commit/?id=316ba974bad19a401e29ef1706f1484d2c38cdfe

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr  7 15:36:55 2014 +0200

tmtests/tm21: Fix configuration

---

 testsuites/tmtests/tm21/system.h |    4 ++++
 testsuites/tmtests/tm21/task1.c  |    2 --
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/testsuites/tmtests/tm21/system.h b/testsuites/tmtests/tm21/system.h
index fc77574..3c7a305 100644
--- a/testsuites/tmtests/tm21/system.h
+++ b/testsuites/tmtests/tm21/system.h
@@ -24,6 +24,8 @@ rtems_task Init(
 
 /* configuration information */
 
+#define MESSAGE_SIZE (sizeof(long) * 4)
+
 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
 
@@ -31,6 +33,8 @@ rtems_task Init(
 #define CONFIGURE_MAXIMUM_TIMERS             OPERATION_COUNT
 #define CONFIGURE_MAXIMUM_SEMAPHORES         OPERATION_COUNT
 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES     OPERATION_COUNT
+#define CONFIGURE_MESSAGE_BUFFER_MEMORY \
+  CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(OPERATION_COUNT, MESSAGE_SIZE)
 #define CONFIGURE_MAXIMUM_PARTITIONS         OPERATION_COUNT
 #define CONFIGURE_MAXIMUM_REGIONS            OPERATION_COUNT
 #define CONFIGURE_MAXIMUM_PORTS              OPERATION_COUNT
diff --git a/testsuites/tmtests/tm21/task1.c b/testsuites/tmtests/tm21/task1.c
index 69c6a96..d7d6163 100644
--- a/testsuites/tmtests/tm21/task1.c
+++ b/testsuites/tmtests/tm21/task1.c
@@ -51,8 +51,6 @@ rtems_task Init(
   directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
 }
 
-#define MESSAGE_SIZE (sizeof(long) * 4)
-
 rtems_task Task_1(
   rtems_task_argument argument
 )




More information about the vc mailing list