source: rtems/c/src/ada-tests/tmtests/tm02/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: 1.7 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 2 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--  The following is the ID of the semaphore used for timing operations.
28--
29
30   SEMAPHORE_ID : RTEMS.ID;
31
32--
33--  The following variable is set to the execution time returned
34--  by the timer.
35--
36
37   END_TIME  : RTEMS.UNSIGNED32;
38
39--
40--  INIT
41--
42--  DESCRIPTION:
43--
44--  This RTEMS task initializes the application.
45--
46
47   procedure INIT (
48      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
49   );
50   pragma Convention (C, INIT);
51
52--
53--  TEST_INIT
54--
55--  DESCRIPTION:
56--
57--  This subprogram performs test initialization.
58--
59
60   procedure TEST_INIT;
61
62--
63--  HIGH_TASK
64--
65--  DESCRIPTION:
66--
67--  This RTEMS task starts the timer and performs a blocking
68--  SEMAPHORE_OBTAIN.
69--
70
71   procedure HIGH_TASK (
72      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
73   );
74   pragma Convention (C, HIGH_TASK);
75
76--
77--  MIDDLE_TASKS
78--
79--  DESCRIPTION:
80--
81--  These RTEMS task start the timer and performs a blocking
82--  SEMAPHORE_OBTAIN.
83--
84
85   procedure MIDDLE_TASKS (
86      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
87   );
88   pragma Convention (C, MIDDLE_TASKS);
89
90--
91--  LOW_TASK
92--
93--  DESCRIPTION:
94--
95--  This RTEMS task stops the timer and reports the execution time for
96--  a blocking SEMAPHORE_OBTAIN.
97--
98
99   procedure LOW_TASK (
100      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
101   );
102   pragma Convention (C, LOW_TASK);
103
104end TMTEST;
Note: See TracBrowser for help on using the repository browser.