source: rtems/c/src/ada-tests/tmtests/tm06/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 Jun 2, 1997 at 8:19:03 PM

Initial revision

  • Property mode set to 100644
File size: 3.6 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 6 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:20 joel Exp
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--
38--  This variable is used to determine which restart of TASK_1 will start
39--  timer and which will stop the timer and report the execution time.
40--
41
42   TASK_RESTARTED : 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.
69--
70
71   procedure TEST_INIT;
72
73--
74--  TASK_1
75--
76--  DESCRIPTION:
77--
78--  This RTEMS task is responsible for measuring and reporting the
79--  following directive execution times:
80--
81--    + TASK_RESTART of SELF
82--    + TASK_SUSPEND of another task with no context switch
83--    + TASK_RESUME with no preemption
84--    + TASK_DELETE of another task
85--
86
87   procedure TASK_1 (
88      ARGUMENT : in     RTEMS.TASK_ARGUMENT
89   );
90
91--
92--  NULL_TASK
93--
94--  DESCRIPTION:
95--
96--  This RTEMS task has no operations.  It is used to have
97--  tasks to perform directives upon.
98--
99
100   procedure NULL_TASK (
101      ARGUMENT : in     RTEMS.TASK_ARGUMENT
102   );
103
104--
105--  This is the Initialization Tasks Table for this test.
106--
107
108   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := 
109   (1=>
110     (
111       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
112       2048,                                          -- stack size
113       1,                                             -- priority
114       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
115       TMTEST.INIT'ACCESS,                            -- entry point
116       RTEMS.NO_PREEMPT,                              -- initial mode
117       0                                              -- argument list
118     )
119   );
120
121--
122--  This is the Configuration Table for this test.
123--
124
125   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
126      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
127      256 * 1024,                -- executive RAM size
128      111,                       -- maximum # tasks
129      110,                       -- maximum # timers
130      101,                       -- maximum # semaphores
131      0,                         -- maximum # message queues
132      0,                         -- maximum # messages
133      0,                         -- maximum # partitions
134      0,                         -- maximum # regions
135      0,                         -- maximum # dp memory areas
136      0,                         -- maximum # periods
137      0,                         -- maximum # user extensions
138      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
139      0                          -- # ticks in a timeslice
140  );
141
142end TMTEST;
Note: See TracBrowser for help on using the repository browser.