source: rtems/c/src/ada-tests/tmtests/tm05/tmtest.ads @ 1338cdb

4.104.114.84.95
Last change on this file since 1338cdb 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.2 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 5 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 TIME_TEST_SUPPORT;
25with TIMER_DRIVER;
26with RTEMS;
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   TASK_INDEX : RTEMS.UNSIGNED32;
38
39--
40--  The following variable is set to the execution time returned
41--  by the timer.
42--
43
44   END_TIME  : RTEMS.UNSIGNED32;
45
46--
47--  INIT
48--
49--  DESCRIPTION:
50--
51--  This RTEMS task initializes the application.
52--
53
54   procedure INIT (
55      ARGUMENT : in     RTEMS.TASK_ARGUMENT
56   );
57
58--
59--  TEST_INIT
60--
61--  DESCRIPTION:
62--
63--  This subprogram performs test initialization.
64--
65
66   procedure TEST_INIT;
67
68--
69--  HIGH_TASK
70--
71--  DESCRIPTION:
72--
73--  This RTEMS task is the highest priority task in the system. 
74--  It starts the timer and performs a TASK_SUSPEND on SELF.
75--  When this task executes again, it stops the timer and
76--  reports the execution time for a preemptive TASK_RESUME.
77--
78
79   procedure HIGH_TASK (
80      ARGUMENT : in     RTEMS.TASK_ARGUMENT
81   );
82
83--
84--  MIDDLE_TASKS
85--
86--  DESCRIPTION:
87--
88--  These RTEMS tasks perform a TASK_SUSPEND on SELF.  When each
89--  task executes again, it performs preemptive TASK_RESUME on
90--  a higher priority task.
91--
92
93   procedure MIDDLE_TASKS (
94      ARGUMENT : in     RTEMS.TASK_ARGUMENT
95   );
96
97--
98--  LOW_TASK
99--
100--  DESCRIPTION:
101--
102--  This RTEMS task is the lowest priority task in the system. 
103--  When this task executes, it stops the timer and reports the
104--  execution time for a blocking TASK_SUSPEND.  After this,
105--  it starts the timer and performs a TASK_RESUME on a
106--  higher priority task.
107--
108
109   procedure LOW_TASK (
110      ARGUMENT : in     RTEMS.TASK_ARGUMENT
111   );
112
113end TMTEST;
Note: See TracBrowser for help on using the repository browser.