source: rtems/c/src/ada-tests/tmtests/tm03/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: 1.8 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 3 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.  After completion
58--  of test initialization, the timer is started and a preemptive
59--  SEMAPHORE_RELEASE is performed.
60--
61
62   procedure TEST_INIT (
63      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
64   );
65   pragma Convention (C, TEST_INIT);
66
67--
68--  MIDDLE_TASKS
69--
70--  DESCRIPTION:
71--
72--  This RTEMS task performs a blocking SEMAPHORE_OBTAIN.  Once
73--  is obtains the semaphore unit and executes again, it performs
74--  a preemptive SEMAPHORE_RELEASE.
75--
76
77   procedure MIDDLE_TASKS (
78      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
79   );
80   pragma Convention (C, MIDDLE_TASKS);
81
82--
83--  HIGH_TASK
84--
85--  DESCRIPTION:
86--
87--  This RTEMS task stops the timer and reports the execution
88--  timer for a preemptive SEMAPHORE_RELEASE.
89--
90
91   procedure HIGH_TASK (
92      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
93   );
94   pragma Convention (C, HIGH_TASK);
95
96end TMTEST;
Note: See TracBrowser for help on using the repository browser.