source: rtems/testsuites/ada/tmtests/tmoverhd/tmtest.ads @ ee537ea

5
Last change on this file since ee537ea was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 12, 2017 at 8:00:10 AM

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: 3.3 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-2009.
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;
23with SYSTEM;
24with System.Storage_Elements;
25
26package TMTEST 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.UNSIGNED32;   -- TEMPORARY UNTIL VARIABLE LENGTH
36         FIELD2 : RTEMS.UNSIGNED32;
37         FIELD3 : RTEMS.UNSIGNED32;
38         FIELD4 : RTEMS.UNSIGNED32;
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--  The following variable is set to the execution time returned
51--  by the timer.
52--
53
54   END_TIME  : RTEMS.UNSIGNED32;
55
56--
57--  The following area defines a memory area to be used as the
58--  internal address space of the port.
59--
60
61   INTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
62      System.Storage_Elements.To_Address(16#00001000#);
63
64   INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
65      of RTEMS.UNSIGNED8;
66   for INTERNAL_PORT_AREA'Address use INTERNAL_PORT_AREA_ADDRESS;
67
68--
69--  The following area defines a memory area to be used as the
70--  external address space of the port.
71--
72
73   EXTERNAL_PORT_AREA_ADDRESS : constant System.Address :=
74      System.Storage_Elements.To_Address(16#00002000#);
75
76   EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 )
77      of RTEMS.UNSIGNED8;
78   for EXTERNAL_PORT_AREA'Address use EXTERNAL_PORT_AREA_ADDRESS;
79
80
81--
82--  The following area defines a memory area to be used as the
83--  memory space for a partition and later for a region.
84--
85
86   MEMORY_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) of RTEMS.UNSIGNED8;
87   for MEMORY_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT;
88
89--
90--  INIT
91--
92--  DESCRIPTION:
93--
94--  This RTEMS task initializes the application.
95--
96
97   procedure INIT (
98      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
99   );
100   pragma Convention (C, INIT);
101
102--
103--  TIMER_HANDLER
104--
105--  DESCRIPTION:
106--
107--  This subprogram is a timer service routine.
108--
109
110   procedure TIMER_HANDLER (
111      IGNORED_ID      : in     RTEMS.ID; 
112      IGNORED_ADDRESS : in     RTEMS.ADDRESS 
113   );
114   pragma Convention (C, TIMER_HANDLER);
115
116--
117--  ISR_HANDLER
118--
119--  DESCRIPTION:
120--
121--  This subprogram is an interrupt service routine.
122--
123
124--   procedure ISR_HANDLER (
125--      VECTOR : in     RTEMS.VECTOR_NUMBER
126--   );
127
128--
129--  ASR_HANDLER
130--
131--  DESCRIPTION:
132--
133--  This subprogram is an asynchronous signal routine.
134--
135
136   procedure ASR_HANDLER (
137      SIGNALS : in     RTEMS.SIGNAL_SET
138   );
139   pragma Convention (C, ASR_HANDLER);
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.TASKS.ARGUMENT
153   );
154   pragma Convention (C, TASK_1);
155
156end TMTEST;
Note: See TracBrowser for help on using the repository browser.