source: rtems/c/src/ada-tests/tmtests/tm09/tmtest.ads @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 9 of the RTEMS
7--  Timing 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 TMTEST is
25
26--
27--  Buffer Record similar to that used by RTEMS 3.2.1.  Using this
28--  avoids changes to the test.
29--
30
31   type BUFFER is
32      record
33         FIELD1 : RTEMS.UNSIGNED32;   -- TEMPORARY UNTIL VARIABLE LENGTH
34         FIELD2 : RTEMS.UNSIGNED32;
35         FIELD3 : RTEMS.UNSIGNED32;
36         FIELD4 : RTEMS.UNSIGNED32;
37      end record;
38
39--
40--  The following is the ID of the message queue used for timing operations.
41--
42
43   QUEUE_ID  : RTEMS.ID;
44
45--
46--  The following variable is set to the execution time returned
47--  by the timer.
48--
49
50   END_TIME  : RTEMS.UNSIGNED32;
51
52--
53--  INIT
54--
55--  DESCRIPTION:
56--
57--  This RTEMS task initializes the application.
58--
59
60   procedure INIT (
61      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
62   );
63   pragma Convention (C, INIT);
64
65--
66--  TEST_TASK
67--
68--  DESCRIPTION:
69--
70--  This RTEMS task is responsible for measuring and reporting the
71--  following directive execution times:
72--
73--    + MESSAGE_QUEUE_CREATE
74--    + MESSAGE_QUEUE_DELETE
75--
76
77   procedure TEST_TASK (
78      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
79   );
80   pragma Convention (C, TEST_TASK);
81
82--
83--  QUEUE_TEST
84--
85--  DESCRIPTION:
86--
87--  This subprogram is responsible for measuring and reporting the
88--  following directive execution times:
89--
90--    + MESSAGE_QUEUE_SEND with no tasks waiting
91--    + MESSAGE_QUEUE_URGENT with no tasks waiting
92--    + MESSAGE_QUEUE_RECEIVE with messages available
93--    + MESSAGE_QUEUE_FLUSH with an empty message queue
94--    + MESSAGE_QUEUE_FLUSH with messages flushed
95--
96
97   procedure QUEUE_TEST;
98
99end TMTEST;
Note: See TracBrowser for help on using the repository browser.