source: rtems/testsuites/ada/sptests/sp16/sptest.ads @ f6c9334d

5
Last change on this file since f6c9334d was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on 10/12/17 at 08:00:10

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

  • Property mode set to 100644
File size: 4.2 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-2011.
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.org/license/LICENSE.
19--
20
21with RTEMS;
22with RTEMS.TASKS;
23
24package SPTEST is
25
26--
27--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
28--  by this test.
29--
30
31   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 5 ) of RTEMS.ID;
32   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 5 ) of RTEMS.NAME;
33
34--
35--  These arrays contain the IDs and NAMEs of all RTEMS regions created
36--  by this test.
37--
38
39   REGION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.ID;
40   REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 4 ) of RTEMS.NAME;
41
42--
43--  The following constant defines the priority of most of the
44--  RTEMS tasks in this test.  This allows one of the tasks to
45--  easily set itself to a higher priority than the rest.
46--
47
48   BASE_PRIORITY : constant RTEMS.TASKS.PRIORITY := 140;
49
50--
51--  These arrays define the memory areas used for the regions in
52--  this test.
53--
54
55   AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8;
56   for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
57
58   AREA_2 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8;
59   for AREA_2'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
60
61   AREA_3 : array ( RTEMS.UNSIGNED32 range 0 .. 4095 ) of RTEMS.UNSIGNED8;
62   for AREA_3'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
63
64   AREA_4 : array ( RTEMS.UNSIGNED32 range 0 .. 8191 ) of RTEMS.UNSIGNED8;
65   for AREA_4'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
66
67--
68--  INIT
69--
70--  DESCRIPTION:
71--
72--  This RTEMS task initializes the application.
73--
74
75   procedure INIT (
76      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
77   );
78   pragma Convention (C, INIT);
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.TASKS.ARGUMENT
147   );
148   pragma Convention (C, TASK_1);
149
150--
151--  TASK_2
152--
153--  DESCRIPTION:
154--
155--  This RTEMS task tests the Region Manager.
156--
157
158   procedure TASK_2 (
159      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
160   );
161   pragma Convention (C, TASK_2);
162
163--
164--  TASK_3
165--
166--  DESCRIPTION:
167--
168--  This RTEMS task tests the Region Manager.
169--
170
171   procedure TASK_3 (
172      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
173   );
174   pragma Convention (C, TASK_3);
175
176--
177--  TASK_4
178--
179--  DESCRIPTION:
180--
181--  This RTEMS task tests the Region Manager.
182--
183
184   procedure TASK_4 (
185      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
186   );
187   pragma Convention (C, TASK_4);
188
189--
190--  TASK_5
191--
192--  DESCRIPTION:
193--
194--  This RTEMS task tests the Region Manager.
195--
196
197   procedure TASK_5 (
198      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
199   );
200   pragma Convention (C, TASK_5);
201
202end SPTEST;
Note: See TracBrowser for help on using the repository browser.