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

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: 4.2 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 21 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 RTEMS;
25with SYSTEM;
26with TIMER_DRIVER;
27with System.Storage_Elements;
28
29package TMTEST is
30
31--
32--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
33--  by this test.
34--
35
36   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
37   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
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--  The following area defines a memory area to be used as the
48--  internal address space of the port.
49--
50
51   INTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
52      System.Storage_Elements.To_Address(16#00001000#);
53
54   INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
55      of RTEMS.UNSIGNED8;
56   for INTERNAL_PORT_AREA use at INTERNAL_PORT_AREA_ADDRESS;
57
58--
59--  The following area defines a memory area to be used as the
60--  external address space of the port.
61--
62
63   EXTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
64      System.Storage_Elements.To_Address(16#00002000#);
65
66   EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
67      of RTEMS.UNSIGNED8;
68   for EXTERNAL_PORT_AREA use at EXTERNAL_PORT_AREA_ADDRESS;
69
70--
71--  The following area defines a memory area to be used as the
72--  memory space for a partition.
73--
74
75   PARTITION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 )
76      of RTEMS.UNSIGNED8;
77   for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
78
79--
80--  These following are the ID and NAME of the RTEMS region created
81--  by this test.
82--
83
84   REGION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 )
85      of RTEMS.UNSIGNED8;
86   for REGION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
87
88--
89--  INIT
90--
91--  DESCRIPTION:
92--
93--  This RTEMS task initializes the application.
94--
95
96   procedure INIT (
97      ARGUMENT : in     RTEMS.TASK_ARGUMENT
98   );
99
100--
101--  TASK_1
102--
103--  DESCRIPTION:
104--
105--  This RTEMS task is responsible for measuring and reporting the
106--  following directive execution times:
107--
108--    + TASK_IDENT
109--    + MESSAGE_QUEUE_IDENT
110--    + SEMAPHORE_IDENT
111--    + PARTITION_IDENT
112--    + REGION_IDENT
113--    + PORT_IDENT
114--    + TIMER_IDENT
115--    + RATE_MONOTONIC_IDENT
116--
117
118   procedure TASK_1 (
119      ARGUMENT : in     RTEMS.TASK_ARGUMENT
120   );
121
122--
123--  This is the Initialization Tasks Table for this test.
124--
125
126   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := 
127   (1=>
128     (
129       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
130       2048,                                          -- stack size
131       1,                                             -- priority
132       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
133       TMTEST.INIT'ACCESS,                            -- entry point
134       RTEMS.NO_PREEMPT,                              -- initial mode
135       0                                              -- argument list
136     )
137   );
138
139--
140--  This is the Configuration Table for this test.
141--
142
143   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
144      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
145      256 * 1024,                -- executive RAM size
146      102,                       -- maximum # tasks
147      100,                       -- maximum # timers
148      100,                       -- maximum # semaphores
149      100,                       -- maximum # message queues
150      5,                         -- maximum # messages
151      100,                       -- maximum # partitions
152      100,                       -- maximum # regions
153      100,                       -- maximum # dp memory areas
154      100,                       -- maximum # periods
155      0,                         -- maximum # user extensions
156      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
157      0                          -- # ticks in a timeslice
158  );
159
160end TMTEST;
Note: See TracBrowser for help on using the repository browser.