source: rtems/c/src/ada-tests/tmtests/tmoverhd/tmtest.ads @ 7c498800

4.104.114.84.95
Last change on this file since 7c498800 was e17ffea, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 22:06:49

Changed to variable length messages.

  • Property mode set to 100644
File size: 3.2 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Calling Overhead Test 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--  Buffer Record similar to that used by RTEMS 3.2.1.  Using this
33--  avoids changes to the test.
34--
35
36   type BUFFER is
37      record
38         FIELD1 : RTEMS.UNSIGNED32;   -- TEMPORARY UNTIL VARIABLE LENGTH
39         FIELD2 : RTEMS.UNSIGNED32;
40         FIELD3 : RTEMS.UNSIGNED32;
41         FIELD4 : RTEMS.UNSIGNED32;
42      end record;
43
44--
45--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
46--  by this test.
47--
48
49   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
50   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
51
52--
53--  The following variable is set to the execution time returned
54--  by the timer.
55--
56
57   END_TIME  : RTEMS.UNSIGNED32;
58
59--
60--  The following area defines a memory area to be used as the
61--  internal address space of the port.
62--
63
64   INTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
65      System.Storage_Elements.To_Address(16#00001000#);
66
67   INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
68      of RTEMS.UNSIGNED8;
69   for INTERNAL_PORT_AREA use at INTERNAL_PORT_AREA_ADDRESS;
70
71--
72--  The following area defines a memory area to be used as the
73--  external address space of the port.
74--
75
76   EXTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
77      System.Storage_Elements.To_Address(16#00002000#);
78
79   EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
80      of RTEMS.UNSIGNED8;
81   for EXTERNAL_PORT_AREA use at EXTERNAL_PORT_AREA_ADDRESS;
82
83
84--
85--  The following area defines a memory area to be used as the
86--  memory space for a partition and later for a region.
87--
88
89   MEMORY_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) of RTEMS.UNSIGNED8;
90   for MEMORY_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
91
92--
93--  INIT
94--
95--  DESCRIPTION:
96--
97--  This RTEMS task initializes the application.
98--
99
100   procedure INIT (
101      ARGUMENT : in     RTEMS.TASK_ARGUMENT
102   );
103
104--
105--  TIMER_HANDLER
106--
107--  DESCRIPTION:
108--
109--  This subprogram is a timer service routine.
110--
111
112   procedure TIMER_HANDLER (
113      IGNORED_ID      : in     RTEMS.ID; 
114      IGNORED_ADDRESS : in     RTEMS.ADDRESS
115   );
116
117--
118--  ISR_HANDLER
119--
120--  DESCRIPTION:
121--
122--  This subprogram is an interrupt service routine.
123--
124
125   procedure ISR_HANDLER (
126      VECTOR : in     RTEMS.VECTOR_NUMBER
127   );
128
129--
130--  ASR_HANDLER
131--
132--  DESCRIPTION:
133--
134--  This subprogram is an asynchronous signal routine.
135--
136
137   procedure ASR_HANDLER (
138      SIGNALS : in     RTEMS.SIGNAL_SET
139   );
140
141--
142--  TASK_1
143--
144--  DESCRIPTION:
145--
146--  This RTEMS task is responsible for measuring and
147--  reporting the calling overhead for all RTEMS
148--  directives.
149--
150
151   procedure TASK_1 (
152      ARGUMENT : in     RTEMS.TASK_ARGUMENT
153   );
154
155end TMTEST;
Note: See TracBrowser for help on using the repository browser.