source: rtems/c/src/ada-tests/sptests/sp16/sptest.ads @ 4fcb3fc3

4.104.114.95
Last change on this file since 4fcb3fc3 was 4fcb3fc3, checked in by Glenn Humphrey <glenn.humphrey@…>, on 10/18/07 at 20:58:51

2007-10-18 Glenn Humphrey <glenn.humphrey@…>

  • sptests/sp16/sptest.ads, sptests/sp20/sptest.adb, sptests/sp20/sptest.ads: Forgot to update the copyright.
  • Property mode set to 100644
File size: 4.0 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 16 of the RTEMS
7--  Single Processor Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-2007.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.com/license/LICENSE.
19--
20--  $Id$
21--
22
23with RTEMS;
24
25package SPTEST is
26
27--
28--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
29--  by this test.
30--
31
32   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 5 ) of RTEMS.ID;
33   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 5 ) of RTEMS.NAME;
34
35--
36--  These arrays contain the IDs and NAMEs of all RTEMS regions created
37--  by this test.
38--
39
40   REGION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
41   REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
42
43--
44--  The following constant defines the priority of most of the
45--  RTEMS tasks in this test.  This allows one of the tasks to
46--  easily set itself to a higher priority than the rest.
47--
48
49   BASE_PRIORITY : constant RTEMS.TASK_PRIORITY := 140;
50
51--
52--  These arrays define the memory areas used for the regions in
53--  this test.
54--
55
56   AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8;
57   for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
58
59   AREA_2 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8;
60   for AREA_2'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
61
62   AREA_3 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8;
63   for AREA_3'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
64
65   AREA_4 : array ( RTEMS.UNSIGNED32 range 0 .. 8191 ) of RTEMS.UNSIGNED8;
66   for AREA_4'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
67
68--
69--  INIT
70--
71--  DESCRIPTION:
72--
73--  This RTEMS task initializes the application.
74--
75
76   procedure INIT (
77      ARGUMENT : in     RTEMS.TASK_ARGUMENT
78   );
79
80--
81--  PUT_ADDRESS_FROM_AREA_1
82--
83--  DESCRIPTION:
84--
85--  This subprogram prints the offset of the address TO_BE_PRINTED
86--  from the first byte of AREA_1.
87--
88--  NOTE:
89--
90--  This subprogram is used because the actual address of AREA_1
91--  varies based upon the size of the executable, the target board,
92--  and the target processor.
93--
94
95   procedure PUT_ADDRESS_FROM_AREA_1 (
96      TO_BE_PRINTED : in     RTEMS.ADDRESS
97   );
98
99--
100--  PUT_ADDRESS_FROM_AREA_2
101--
102--  DESCRIPTION:
103--
104--  This subprogram prints the offset of the address TO_BE_PRINTED
105--  from the first byte of AREA_2.
106--
107--  NOTE:
108--
109--  This subprogram is used because the actual address of AREA_2
110--  varies based upon the size of the executable, the target board,
111--  and the target processor.
112--
113
114   procedure PUT_ADDRESS_FROM_AREA_2 (
115      TO_BE_PRINTED : in     RTEMS.ADDRESS
116   );
117
118--
119--  PUT_ADDRESS_FROM_AREA_3
120--
121--  DESCRIPTION:
122--
123--  This subprogram prints the offset of the address TO_BE_PRINTED
124--  from the first byte of AREA_3.
125--
126--  NOTE:
127--
128--  This subprogram is used because the actual address of AREA_3
129--  varies based upon the size of the executable, the target board,
130--  and the target processor.
131--
132
133   procedure PUT_ADDRESS_FROM_AREA_3 (
134      TO_BE_PRINTED : in     RTEMS.ADDRESS
135   );
136
137--
138--  TASK_1
139--
140--  DESCRIPTION:
141--
142--  This RTEMS task tests the Region Manager.
143--
144
145   procedure TASK_1 (
146      ARGUMENT : in     RTEMS.TASK_ARGUMENT
147   );
148
149--
150--  TASK_2
151--
152--  DESCRIPTION:
153--
154--  This RTEMS task tests the Region Manager.
155--
156
157   procedure TASK_2 (
158      ARGUMENT : in     RTEMS.TASK_ARGUMENT
159   );
160
161--
162--  TASK_3
163--
164--  DESCRIPTION:
165--
166--  This RTEMS task tests the Region Manager.
167--
168
169   procedure TASK_3 (
170      ARGUMENT : in     RTEMS.TASK_ARGUMENT
171   );
172
173--
174--  TASK_4
175--
176--  DESCRIPTION:
177--
178--  This RTEMS task tests the Region Manager.
179--
180
181   procedure TASK_4 (
182      ARGUMENT : in     RTEMS.TASK_ARGUMENT
183   );
184
185--
186--  TASK_5
187--
188--  DESCRIPTION:
189--
190--  This RTEMS task tests the Region Manager.
191--
192
193   procedure TASK_5 (
194      ARGUMENT : in     RTEMS.TASK_ARGUMENT
195   );
196
197end SPTEST;
Note: See TracBrowser for help on using the repository browser.