source: rtems/c/src/ada-tests/tmtests/tm28/tmtest.ads @ bf9ae83

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

modified copyright notice to be the same as RTEMS 4.0.0.

changed the CVS ID string to be a "development" version.

  • 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 28 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 SYSTEM;
25with TIME_TEST_SUPPORT;
26with TIMER_DRIVER;
27with RTEMS;
28with System.Storage_Elements;
29
30package TMTEST is
31
32--
33--  This array contains the IDs of all RTEMS tasks created by this test.
34--
35
36   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
37
38--
39--  This array contains the IDs of all RTEMS ports created by this test.
40--
41
42   PORT_ID   : array ( RTEMS.UNSIGNED32
43      range 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID;
44
45--
46--  The following area defines a memory area to be used as the
47--  internal address space of the port.
48--
49
50   INTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
51      System.Storage_Elements.To_Address(16#00001000#);
52
53   INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
54      of RTEMS.UNSIGNED8;
55   for INTERNAL_PORT_AREA use at INTERNAL_PORT_AREA_ADDRESS;
56
57--
58--  The following area defines a memory area to be used as the
59--  external address space of the port.
60--
61
62   EXTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
63      System.Storage_Elements.To_Address(16#00002000#);
64
65   EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
66      of RTEMS.UNSIGNED8;
67   for EXTERNAL_PORT_AREA use at EXTERNAL_PORT_AREA_ADDRESS;
68
69--
70--  The following variable is set to the execution time returned
71--  by the timer.
72--
73
74   END_TIME  : RTEMS.UNSIGNED32;
75
76--
77--  INIT
78--
79--  DESCRIPTION:
80--
81--  This RTEMS task initializes the application.
82--
83
84   procedure INIT (
85      ARGUMENT : in     RTEMS.TASK_ARGUMENT
86   );
87
88--
89--  TEST_TASK
90--
91--  DESCRIPTION:
92--
93--  This RTEMS task is responsible for measuring and reporting the
94--  following directive execution times:
95--
96--    + PORT_CREATE
97--    + PORT_EXTERNAL_TO_INTERNAL
98--    + PORT_INTERNAL_TO_EXTERNAL
99--    + PORT_DELETE
100--
101
102   procedure TEST_TASK (
103      ARGUMENT : in     RTEMS.TASK_ARGUMENT
104   );
105
106--
107--  This is the Initialization Tasks Table for this test.
108--
109
110   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
111   (1=>
112     (
113       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
114       2048,                                          -- stack size
115       1,                                             -- priority
116       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
117       TMTEST.INIT'ACCESS,                            -- entry point
118       RTEMS.NO_PREEMPT,                              -- initial mode
119       0                                              -- argument list
120     )
121   );
122
123--
124--  This is the Configuration Table for this test.
125--
126
127   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
128      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
129      256 * 1024,                -- executive RAM size
130      2,                         -- maximum # tasks
131      0,                         -- maximum # timers
132      0,                         -- maximum # semaphores
133      0,                         -- maximum # message queues
134      0,                         -- maximum # messages
135      0,                         -- maximum # partitions
136      0,                         -- maximum # regions
137      100,                       -- maximum # dp memory areas
138      0,                         -- maximum # periods
139      0,                         -- maximum # user extensions
140      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
141      0                          -- # ticks in a timeslice
142  );
143
144end TMTEST;
Note: See TracBrowser for help on using the repository browser.