source: rtems/c/src/ada-tests/tmtests/tm16/tmtest.ads @ b4be04e

4.104.114.84.95
Last change on this file since b4be04e was b4be04e, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 20:24:11

Removed Configuration Table information.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 16 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 RTEMS;
25with TIME_TEST_SUPPORT;
26with TIMER_DRIVER;
27
28package TMTEST is
29
30--
31--  This array contains the IDs of all RTEMS tasks created by this test.
32--
33
34   TASK_ID   : array ( RTEMS.UNSIGNED32
35      range 0 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID;
36
37--
38--  This variable is used to index through the TASK_ID array
39--  so that events can be send to the next task.
40--
41
42   TASK_COUNT : RTEMS.UNSIGNED32;
43
44--
45--  The following variable is set to the execution time returned
46--  by the timer.
47--
48
49   END_TIME  : RTEMS.UNSIGNED32;
50
51--
52--  INIT
53--
54--  DESCRIPTION:
55--
56--  This RTEMS task initializes the application. 
57--
58
59   procedure INIT (
60      ARGUMENT : in     RTEMS.TASK_ARGUMENT
61   );
62
63--
64--  TEST_INIT
65--
66--  DESCRIPTION:
67--
68--  This subprogram performs test initialization.  Once initialization
69--  has been completed, this task sets the TASK_COUNT to 0 and
70--  starts the timer before performing a preemptive EVENT_SEND.
71--
72
73   procedure TEST_INIT (
74      ARGUMENT : in     RTEMS.TASK_ARGUMENT
75   );
76
77--
78--  HIGH_TASK
79--
80--  DESCRIPTION:
81--
82--  This RTEMS task is highest priority task in the system.
83--  Its first action is to perform a blocking EVENT_RECEIVE.
84--  It is the last task to have its event set sent to it.  Thus it
85--  is the last task to be awakened by a preemptive EVENT_SEND.
86--  After it preempts the last MIDDLE_TASKS, it stops the timer
87--  and reports the execution time of preemptive EVENT_SEND.
88--
89
90   procedure HIGH_TASK (
91      ARGUMENT : in     RTEMS.TASK_ARGUMENT
92   );
93
94--
95--  MIDDLE_TASKS
96--
97--  DESCRIPTION:
98--
99--  These RTEMS tasks perform a blocking EVENT_RECEIVE.  When
100--  readied, each task will increment the TASK_COUNT and
101--  perform a preemptive EVENT_SEND.  TASK_COUNT is used to
102--  index the TASK_ID array in such a way that incrementing
103--  TASK_COUNT makes it index the ID of the next task to
104--  send events to.
105--
106
107   procedure MIDDLE_TASKS (
108      ARGUMENT : in     RTEMS.TASK_ARGUMENT
109   );
110
111end TMTEST;
Note: See TracBrowser for help on using the repository browser.