diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-17 19:36:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-17 19:36:43 +0000 |
commit | 4b374f36e7172d59d6d8c252973c1ef65637ecbb (patch) | |
tree | d6be1084c310d24004e9b056eebdac6c286a4f25 /testsuites/tmtests/tm11 | |
parent | added tty driver to simhppa (diff) | |
download | rtems-4b374f36e7172d59d6d8c252973c1ef65637ecbb.tar.bz2 |
maximum number of messages removed and include statement cleanup
Diffstat (limited to 'testsuites/tmtests/tm11')
-rw-r--r-- | testsuites/tmtests/tm11/system.h | 12 | ||||
-rw-r--r-- | testsuites/tmtests/tm11/task1.c | 13 |
2 files changed, 15 insertions, 10 deletions
diff --git a/testsuites/tmtests/tm11/system.h b/testsuites/tmtests/tm11/system.h index 9133506e7f..49eeeefc67 100644 --- a/testsuites/tmtests/tm11/system.h +++ b/testsuites/tmtests/tm11/system.h @@ -10,14 +10,12 @@ * to the copyright license under the clause at DFARS 252.227-7013. This * notice must appear in all copies of this file and its derivatives. * - * $Id$ + * system.h,v 1.2 1995/05/31 17:15:48 joel Exp */ -#include <rtems.h> +#include <coverhd.h> +#include <tmacros.h> -#include "coverhd.h" -#include "tmacros.h" - -#include "timesys.h" -#include "timegvar.h" +#include <timesys.h> +#include <timegvar.h> diff --git a/testsuites/tmtests/tm11/task1.c b/testsuites/tmtests/tm11/task1.c index 9bf45442dc..f7d518613f 100644 --- a/testsuites/tmtests/tm11/task1.c +++ b/testsuites/tmtests/tm11/task1.c @@ -8,7 +8,7 @@ * to the copyright license under the clause at DFARS 252.227-7013. This * notice must appear in all copies of this file and its derivatives. * - * $Id$ + * task1.c,v 1.2 1995/05/31 17:15:50 joel Exp */ #include "system.h" @@ -78,6 +78,7 @@ rtems_task test_init( status = rtems_message_queue_create( rtems_build_name( 'M', 'Q', '1', ' ' ), OPERATION_COUNT, + 16, RTEMS_DEFAULT_ATTRIBUTES, &Queue_id ); @@ -106,30 +107,36 @@ rtems_task test_init( } Timer_initialize(); - (void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer ); + (void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer, 16 ); } rtems_task Middle_tasks( rtems_task_argument argument ) { + rtems_unsigned32 size; + (void) rtems_message_queue_receive( Queue_id, (long (*)[4]) Buffer, + &size, RTEMS_DEFAULT_OPTIONS, RTEMS_NO_TIMEOUT ); - (void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer ); + (void) rtems_message_queue_send( Queue_id, (long (*)[4]) Buffer, size ); } rtems_task High_task( rtems_task_argument argument ) { + rtems_unsigned32 size; + (void) rtems_message_queue_receive( Queue_id, (long (*)[4]) Buffer, + &size, RTEMS_DEFAULT_OPTIONS, RTEMS_NO_TIMEOUT ); |