source: rtems/c/src/ada-tests/tmtests/tm13/tmtest.ads @ 688ecaa0

4.104.114.84.95
Last change on this file since 688ecaa0 was e17ffea, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 3, 1997 at 10:06:49 PM

Changed to variable length messages.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 13 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.  As each application
73--  task is created and started, it will preempt this task and
74--  perform a blocking MESSAGE_QUEUE_RECEIVE.  Once all of the
75--  initialization is completed, the timer is started and the first
76--  preemptive MESSAGE_QUEUE_URGENT is executed.
77--
78
79   procedure TEST_INIT (
80      ARGUMENT : in     RTEMS.TASK_ARGUMENT
81   );
82
83--
84--  HIGH_TASK
85--
86--  DESCRIPTION:
87--
88--  This RTEMS task is the highest priority task in the system. 
89--  It performs a blocking blocking MESSAGE_QUEUE_RECEIVE.  It is
90--  the last test task created and started.  Thus it is the last
91--  task to be enqueued waiting for a message and the last task
92--  to receive the message.  Once it receives the message, it
93--  stops the timer and reports the execution time for a
94--  preemptive MESSAGE_QUEUE_URGENT.
95--
96
97   procedure HIGH_TASK (
98      ARGUMENT : in     RTEMS.TASK_ARGUMENT
99   );
100
101--
102--  MIDDLE_TASKS
103--
104--  DESCRIPTION:
105--
106--  As each of these RTEMS tasks is created and started, it preempts
107--  the initialization task and perform a blocking MESSAGE_QUEUE_RECEIVE.
108--
109
110   procedure MIDDLE_TASKS (
111      ARGUMENT : in     RTEMS.TASK_ARGUMENT
112   );
113
114end TMTEST;
Note: See TracBrowser for help on using the repository browser.