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

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

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

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