source: rtems/c/src/ada-tests/sptests/sp25/sptest.ads @ 77ff3d10

4.104.114.84.95
Last change on this file since 77ff3d10 was 77ff3d10, checked in by Joel Sherrill <joel.sherrill@…>, on 06/02/97 at 22:14:51

removed configuration table definition in Ada

  • Property mode set to 100644
File size: 2.2 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 25 of the RTEMS
7--  Single Processor 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 CLOCK_DRIVER;
25with RTEMS;
26
27package SPTEST is
28
29--
30--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
31--  by this test.
32--
33
34   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
35   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
36
37--
38--  These arrays contain the IDs and NAMEs of all RTEMS regions created
39--  by this test.
40--
41
42   REGION_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
43   REGION_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
44
45--
46--  The following constant defines the priority of most of the
47--  RTEMS tasks in this test.  This allows one of the tasks to
48--  easily set itself to a higher priority than the rest.
49--
50
51   BASE_PRIORITY : constant RTEMS.TASK_PRIORITY := 140;
52
53--
54--  These arrays define the memory areas used for the regions in
55--  this test.
56--
57
58   AREA_1 : array ( RTEMS.UNSIGNED32 range 0 .. 64000 ) of RTEMS.UNSIGNED8;
59   for AREA_1'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
60
61--
62--  INIT
63--
64--  DESCRIPTION:
65--
66--  This RTEMS task initializes the application.
67--
68
69   procedure INIT (
70      ARGUMENT : in     RTEMS.TASK_ARGUMENT
71   );
72
73--
74--  PUT_ADDRESS_FROM_AREA_1
75--
76--  DESCRIPTION:
77--
78--  This subprogram prints the offset of the address TO_BE_PRINTED
79--  from the first byte of AREA_1.
80--
81--  NOTE:
82--
83--  This subprogram is used because the actual address of AREA_1
84--  varies based upon the size of the executable, the target board,
85--  and the target processor.
86--
87
88   procedure PUT_ADDRESS_FROM_AREA_1 (
89      TO_BE_PRINTED : in     RTEMS.ADDRESS
90   );
91
92--
93--  TASK_1
94--
95--  DESCRIPTION:
96--
97--  This RTEMS task tests the Region Manager.
98--
99
100   procedure TASK_1 (
101      ARGUMENT : in     RTEMS.TASK_ARGUMENT
102   );
103
104end SPTEST;
Note: See TracBrowser for help on using the repository browser.