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

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

Initial revision

  • Property mode set to 100644
File size: 3.8 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, 1990, 1991, 1992, 1993, 1994.
14--  On-Line Applications Research Corporation (OAR).
15--  All rights assigned to U.S. Government, 1994.
16--
17--  This material may be reproduced by or for the U.S. Government pursuant
18--  to the copyright license under the clause at DFARS 252.227-7013.  This
19--  notice must appear in all copies of this file and its derivatives.
20--
21--  tmtest.ads,v 1.3 1995/07/12 19:43:23 joel Exp
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
111--
112--  This is the Initialization Tasks Table for this test.
113--
114
115   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
116   (1=>
117     (
118       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
119       2048,                                          -- stack size
120       1,                                             -- priority
121       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
122       TMTEST.INIT'ACCESS,                            -- entry point
123       RTEMS.NO_PREEMPT,                              -- initial mode
124       0                                              -- argument list
125     )
126   );
127
128--
129--  This is the Configuration Table for this test.
130--
131
132   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
133      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
134      256 * 1024,                -- executive RAM size
135      111,                       -- maximum # tasks
136      110,                       -- maximum # timers
137      101,                       -- maximum # semaphores
138      0,                         -- maximum # message queues
139      0,                         -- maximum # messages
140      0,                         -- maximum # partitions
141      0,                         -- maximum # regions
142      0,                         -- maximum # dp memory areas
143      0,                         -- maximum # periods
144      0,                         -- maximum # user extensions
145      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
146      0                          -- # ticks in a timeslice
147  );
148
149end TMTEST;
Note: See TracBrowser for help on using the repository browser.