source: rtems/c/src/ada-tests/tmtests/tm10/tmtest.ads @ e17ffea

4.104.114.84.95
Last change on this file since e17ffea was e17ffea, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 22:06:49

Changed to variable length messages.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 10 of the RTEMS
7--  Timing Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-1997.
14--  On-Line Applications Research Corporation (OAR).
15--  Copyright assigned to U.S. Government, 1994.
16--
17--  The license and distribution terms for this file may in
18--  the file LICENSE in this distribution or at
19--  http://www.OARcorp.com/rtems/license.html.
20--
21--  $Id$
22--
23
24with TIMER_DRIVER;
25with RTEMS;
26
27package TMTEST is
28
29--
30--  Buffer Record similar to that used by RTEMS 3.2.1.  Using this
31--  avoids changes to the test.
32--
33
34   type BUFFER is
35      record
36         FIELD1 : RTEMS.UNSIGNED32;   -- TEMPORARY UNTIL VARIABLE LENGTH
37         FIELD2 : RTEMS.UNSIGNED32;
38         FIELD3 : RTEMS.UNSIGNED32;
39         FIELD4 : RTEMS.UNSIGNED32;
40      end record;
41
42--
43--  The following is the ID of the message queue used for timing operations.
44--
45
46   QUEUE_ID  : RTEMS.ID;
47
48--
49--  The following variable is set to the execution time returned
50--  by the timer.
51--
52
53   END_TIME  : RTEMS.UNSIGNED32;
54
55--
56--  INIT
57--
58--  DESCRIPTION:
59--
60--  This RTEMS task initializes the application.
61--
62
63   procedure INIT (
64      ARGUMENT : in     RTEMS.TASK_ARGUMENT
65   );
66
67--
68--  TEST_INIT
69--
70--  DESCRIPTION:
71--
72--  This subprogram performs test initialization.  After initialization
73--  has been completed, the NO_WAIT case for MESSAGE_QUEUE_RECEIVE
74--  is timed and reported.
75--
76
77   procedure TEST_INIT;
78
79--
80--  HIGH_TASK
81--
82--  DESCRIPTION:
83--
84--  This RTEMS task is the highest priority task in the system. 
85--  It starts the timer and performs a blocking MESSAGE_QUEUE_RECEIVE.
86--
87
88   procedure HIGH_TASK (
89      ARGUMENT : in     RTEMS.TASK_ARGUMENT
90   );
91
92--
93--  MIDDLE_TASKS
94--
95--  DESCRIPTION:
96--
97--  These RTEMS tasks perform a blocking MESSAGE_QUEUE_RECEIVE.
98--
99
100   procedure MIDDLE_TASKS (
101      ARGUMENT : in     RTEMS.TASK_ARGUMENT
102   );
103
104--
105--  LOW_TASK
106--
107--  DESCRIPTION:
108--
109--  This RTEMS task stops the timer and reports the execution time
110--  of a blocking MESSAGE_QUEUE_RECEIVE.
111--
112
113   procedure LOW_TASK (
114      ARGUMENT : in     RTEMS.TASK_ARGUMENT
115   );
116
117end TMTEST;
Note: See TracBrowser for help on using the repository browser.