source: rtems/c/src/ada-tests/sptests/sp13/sptest.ads @ 48bfd992

4.104.114.84.95
Last change on this file since 48bfd992 was a7156d1, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 16:00:00

Modifed to make the test run to completion. Primarily provided
the Buffer type and support routines although some work was
required to account for the directives which required message
size information.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 13 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 RTEMS;
25
26package SPTEST is
27
28--
29--  Buffer Record similar to that used by RTEMS 3.2.1.  Using this
30--  avoids changes to the test.
31--
32
33   type BUFFER is
34      record
35         FIELD1 : RTEMS.NAME;   -- TEMPORARY UNTIL VARIABLE LENGTH
36         FIELD2 : RTEMS.NAME;
37         FIELD3 : RTEMS.NAME;
38         FIELD4 : RTEMS.NAME;
39      end record;
40
41--
42--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
43--  by this test.
44--
45
46   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
47   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
48
49--
50--  These arrays contain the IDs and NAMEs of all RTEMS message
51--  queues created by this test.
52--
53
54   QUEUE_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
55   QUEUE_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
56
57--
58--  INIT
59--
60--  DESCRIPTION:
61--
62--  This RTEMS task initializes the application.
63--
64
65   procedure INIT (
66      ARGUMENT : in     RTEMS.TASK_ARGUMENT
67   );
68
69--
70--  FILL_BUFFER
71--
72--  DESCRIPTION:
73--
74--  This subprogram takes the SOURCE input string and places
75--  up to the first sixteen characters of that string into
76--  the message BUFFER.
77--
78
79   procedure FILL_BUFFER (
80      SOURCE : in     STRING;
81      BUFFER :    out SPTEST.BUFFER
82   );
83
84--
85--  PUT_BUFFER
86--
87--  DESCRIPTION:
88--
89--  This subprogram prints the specified message BUFFER.
90--
91
92   procedure PUT_BUFFER (
93      BUFFER : in     SPTEST.BUFFER
94   );
95
96--
97--  TASK_1
98--
99--  DESCRIPTION:
100--
101--  This RTEMS task tests the Message Queue Manager.
102--
103
104   procedure TASK_1 (
105      ARGUMENT : in     RTEMS.TASK_ARGUMENT
106   );
107
108--
109--  TASK_2
110--
111--  DESCRIPTION:
112--
113--  This RTEMS task tests the Message Queue Manager.
114--
115
116   procedure TASK_2 (
117      ARGUMENT : in     RTEMS.TASK_ARGUMENT
118   );
119
120--
121--  TASK_3
122--
123--  DESCRIPTION:
124--
125--  This RTEMS task tests the Message Queue Manager.
126--
127
128   procedure TASK_3 (
129      ARGUMENT : in     RTEMS.TASK_ARGUMENT
130   );
131
132end SPTEST;
Note: See TracBrowser for help on using the repository browser.