source: rtems/c/src/ada-tests/tmtests/tm07/tmtest.ads @ fff840e

4.104.114.84.95
Last change on this file since fff840e 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.1 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 7 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 TIME_TEST_SUPPORT;
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--  The first time it executes it suspends itself.  When restarted
75--  it stops the timer and reports the time for a TASK_RESTART
76--  of a suspended task which results in a preemption.
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 suspend themselves the first time they execute.
89--  When restarted they perform a TASK_RESTART of a suspended
90--  higher priority task which results in a preemption.
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 it executes it starts the timer and restarts a higher
104--  priority task which immediately preempts this task.
105--
106
107   procedure LOW_TASK (
108      ARGUMENT : in     RTEMS.TASK_ARGUMENT
109   );
110
111end TMTEST;
Note: See TracBrowser for help on using the repository browser.