source: rtems/c/src/ada-tests/tmtests/tm07/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.2 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 7 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
32      range 0 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID;
33
34   TASK_INDEX : RTEMS.UNSIGNED32;
35
36--
37--  The following variable is set to the execution time returned
38--  by the timer.
39--
40
41   END_TIME  : RTEMS.UNSIGNED32;
42
43--
44--  INIT
45--
46--  DESCRIPTION:
47--
48--  This RTEMS task initializes the application.
49--
50
51   procedure INIT (
52      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
53   );
54   pragma Convention (C, INIT);
55
56--
57--  TEST_INIT
58--
59--  DESCRIPTION:
60--
61--  This subprogram performs test initialization.
62--
63
64   procedure TEST_INIT;
65
66--
67--  HIGH_TASK
68--
69--  DESCRIPTION:
70--
71--  This RTEMS task is the highest priority task in the system. 
72--  The first time it executes it suspends itself.  When restarted
73--  it stops the timer and reports the time for a TASK_RESTART
74--  of a suspended task which results in a preemption.
75--
76
77   procedure HIGH_TASK (
78      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
79   );
80   pragma Convention (C, HIGH_TASK);
81
82--
83--  MIDDLE_TASKS
84--
85--  DESCRIPTION:
86--
87--  These RTEMS tasks suspend themselves the first time they execute.
88--  When restarted they perform a TASK_RESTART of a suspended
89--  higher priority task which results in a preemption.
90--
91
92   procedure MIDDLE_TASKS (
93      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
94   );
95   pragma Convention (C, MIDDLE_TASKS);
96
97--
98--  LOW_TASK
99--
100--  DESCRIPTION:
101--
102--  This RTEMS task is the lowest priority task in the system. 
103--  When it executes it starts the timer and restarts a higher
104--  priority task which immediately preempts this task.
105--
106
107   procedure LOW_TASK (
108      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
109   );
110   pragma Convention (C, LOW_TASK);
111
112end TMTEST;
Note: See TracBrowser for help on using the repository browser.