source: rtems/c/src/ada-tests/tmtests/tm15/tmtest.ads @ b4be04e

4.104.114.84.95
Last change on this file since b4be04e was b4be04e, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 3, 1997 at 8:24:11 PM

Removed Configuration Table information.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 15 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 TIME_TEST_SUPPORT;
25with TIMER_DRIVER;
26with RTEMS;
27
28package TMTEST is
29
30--
31--  This array contains the IDs of all RTEMS tasks created by this test.
32--
33
34   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 
35      TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID;
36
37--
38--   This variable is set to TRUE if the timer has been initialized
39--   and is currently timing an operation.
40--
41
42   TIME_SET  : RTEMS.BOOLEAN;
43
44--
45--  The following variable is set to the execution time returned
46--  by the timer.
47--
48
49   END_TIME  : RTEMS.UNSIGNED32;
50
51--
52--  INIT
53--
54--  DESCRIPTION:
55--
56--  This RTEMS task initializes the application.
57--
58
59   procedure INIT (
60      ARGUMENT : in     RTEMS.TASK_ARGUMENT
61   );
62
63--
64--  TEST_INIT
65--
66--  DESCRIPTION:
67--
68--  This subprogram performs test initialization.  Once initialization
69--  has been completed, the following operations are timed and reported:
70--
71--    + event_receive of currently PENDING_EVENTS
72--    + event_receive NO_WAIT case
73--
74
75   procedure TEST_INIT;
76
77--
78--  LOW_TASK
79--
80--  DESCRIPTION:
81--
82--  This RTEMS task stops the timer and reports the execution time
83--  of a blocking EVENT_RECEIVE.  After this the following
84--  operations are timed and the execution time is reported:
85-- 
86--    + EVENT_SEND which does not ready a task
87--    + EVENT_RECEIVE with the event condition available
88--    + EVENT_SEND which readies a task
89--
90
91   procedure LOW_TASK (
92      ARGUMENT : in     RTEMS.TASK_ARGUMENT
93   );
94
95--
96--  HIGH_TASKS
97--
98--  DESCRIPTION:
99--
100--  These RTEMS tasks executive a blocking EVENT_RECEIVE after
101--  initialization is complete.  The first of these tasks to
102--  execute starts the timer.
103--
104
105   procedure HIGH_TASKS (
106      ARGUMENT : in     RTEMS.TASK_ARGUMENT
107   );
108
109end TMTEST;
Note: See TracBrowser for help on using the repository browser.