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

4.104.114.84.95
Last change on this file since 6d4e604b was 6d4e604b, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 2, 1997 at 8:19:03 PM

Initial revision

  • 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 Test 9 of the RTEMS
7--  Timing Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
14--  On-Line Applications Research Corporation (OAR).
15--  All rights assigned to U.S. Government, 1994.
16--
17--  This material may be reproduced by or for the U.S. Government pursuant
18--  to the copyright license under the clause at DFARS 252.227-7013.  This
19--  notice must appear in all copies of this file and its derivatives.
20--
21--  tmtest.ads,v 1.3 1995/07/12 19:43:29 joel Exp
22--
23
24with TIMER_DRIVER;
25with RTEMS;
26
27package TMTEST is
28
29--
30--  The following is the ID of the message queue used for timing operations.
31--
32
33   QUEUE_ID  : RTEMS.ID;
34
35--
36--  The following variable is set to the execution time returned
37--  by the timer.
38--
39
40   END_TIME  : RTEMS.UNSIGNED32;
41
42--
43--  INIT
44--
45--  DESCRIPTION:
46--
47--  This RTEMS task initializes the application.
48--
49
50   procedure INIT (
51      ARGUMENT : in     RTEMS.TASK_ARGUMENT
52   );
53
54--
55--  TEST_TASK
56--
57--  DESCRIPTION:
58--
59--  This RTEMS task is responsible for measuring and reporting the
60--  following directive execution times:
61--
62--    + MESSAGE_QUEUE_CREATE
63--    + MESSAGE_QUEUE_DELETE
64--
65
66   procedure TEST_TASK (
67      ARGUMENT : in     RTEMS.TASK_ARGUMENT
68   );
69
70--
71--  QUEUE_TEST
72--
73--  DESCRIPTION:
74--
75--  This subprogram is responsible for measuring and reporting the
76--  following directive execution times:
77--
78--    + MESSAGE_QUEUE_SEND with no tasks waiting
79--    + MESSAGE_QUEUE_URGENT with no tasks waiting
80--    + MESSAGE_QUEUE_RECEIVE with messages available
81--    + MESSAGE_QUEUE_FLUSH with an empty message queue
82--    + MESSAGE_QUEUE_FLUSH with messages flushed
83--
84
85   procedure QUEUE_TEST;
86
87--
88--  This is the Initialization Tasks Table for this test.
89--
90
91   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := 
92   (1=>
93     (
94       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
95       2048,                                          -- stack size
96       1,                                             -- priority
97       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
98       TMTEST.INIT'ACCESS,                            -- entry point
99       RTEMS.NO_PREEMPT,                              -- initial mode
100       0                                              -- argument list
101     )
102   );
103
104--
105--  This is the Configuration Table for this test.
106--
107
108   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
109      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
110      256 * 1024,                -- executive RAM size
111      2,                         -- maximum # tasks
112      0,                         -- maximum # timers
113      0,                         -- maximum # semaphores
114      1,                         -- maximum # message queues
115      110,                       -- maximum # messages
116      0,                         -- maximum # partitions
117      0,                         -- maximum # regions
118      0,                         -- maximum # dp memory areas
119      0,                         -- maximum # periods
120      0,                         -- maximum # user extensions
121      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
122      0                          -- # ticks in a timeslice
123  );
124
125end TMTEST;
Note: See TracBrowser for help on using the repository browser.