source: rtems/c/src/ada-tests/tmtests/tm05/tmtest.ads @ d43dd82

4.104.114.95
Last change on this file since d43dd82 was d43dd82, checked in by Joel Sherrill <joel.sherrill@…>, on 03/11/08 at 20:12:52

2008-03-11 Joel Sherrill <joel.sherrill@…>

  • mptests/mp01/mptest.ads, mptests/mp02/mptest.ads, mptests/mp03/mptest.ads, mptests/mp04/mptest.ads, mptests/mp05/mptest.ads, mptests/mp06/mptest.ads, mptests/mp07/mptest.ads, mptests/mp08/mptest.ads, mptests/mp09/mptest.ads, mptests/mp10/mptest.ads, mptests/mp11/mptest.ads, mptests/mp12/mptest.ads, mptests/mp13/mptest.ads, mptests/mp14/mptest.ads, samples/base_mp/mptest.ads, samples/base_sp/sptest.ads, samples/hello/sptest.ads, samples/nsecs/sptest.ads, samples/ticker/sptest.ads, sptests/sp01/sptest.ads, sptests/sp02/sptest.ads, sptests/sp03/sptest.ads, sptests/sp04/sptest.ads, sptests/sp05/sptest.ads, sptests/sp06/sptest.ads, sptests/sp07/sptest.ads, sptests/sp08/sptest.ads, sptests/sp09/sptest.ads, sptests/sp11/sptest.ads, sptests/sp12/sptest.ads, sptests/sp13/sptest.ads, sptests/sp14/sptest.ads, sptests/sp15/sptest.ads, sptests/sp16/sptest.ads, sptests/sp17/sptest.ads, sptests/sp19/sptest.ads, sptests/sp20/sptest.ads, sptests/sp22/sptest.ads, sptests/sp23/sptest.ads, sptests/sp24/sptest.ads, sptests/sp25/sptest.ads, sptests/spname01/spname01.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/tmtest.ads, tmtests/tm03/tmtest.ads, tmtests/tm04/tmtest.ads, tmtests/tm05/tmtest.ads, tmtests/tm06/tmtest.ads, tmtests/tm07/tmtest.ads, tmtests/tm08/tmtest.ads, tmtests/tm09/tmtest.ads, tmtests/tm10/tmtest.ads, tmtests/tm11/tmtest.ads, tmtests/tm12/tmtest.ads, tmtests/tm13/tmtest.ads, tmtests/tm14/tmtest.ads, tmtests/tm15/tmtest.ads, tmtests/tm16/tmtest.ads, tmtests/tm17/tmtest.ads, tmtests/tm18/tmtest.ads, tmtests/tm19/tmtest.ads, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/tmtest.ads, tmtests/tm22/tmtest.ads, tmtests/tm23/tmtest.ads, tmtests/tm24/tmtest.ads, tmtests/tm25/tmtest.ads, tmtests/tm28/tmtest.ads, tmtests/tm29/tmtest.ads, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/tmtest.ads: Added pragma Convention C as required by gcc > 4.3.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 5 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--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.com/license/LICENSE.
19--
20--  $Id$
21--
22
23with TIME_TEST_SUPPORT;
24with TIMER_DRIVER;
25with RTEMS;
26
27package TMTEST is
28
29--
30--  This array contains the IDs of all RTEMS tasks created by this test.
31--
32
33   TASK_ID : array ( RTEMS.UNSIGNED32
34      range 0 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID;
35
36   TASK_INDEX : RTEMS.UNSIGNED32;
37
38--
39--  The following variable is set to the execution time returned
40--  by the timer.
41--
42
43   END_TIME  : RTEMS.UNSIGNED32;
44
45--
46--  INIT
47--
48--  DESCRIPTION:
49--
50--  This RTEMS task initializes the application.
51--
52
53   procedure INIT (
54      ARGUMENT : in     RTEMS.TASK_ARGUMENT
55   );
56   pragma Convention (C, INIT);
57
58--
59--  TEST_INIT
60--
61--  DESCRIPTION:
62--
63--  This subprogram performs test initialization.
64--
65
66   procedure TEST_INIT;
67
68--
69--  HIGH_TASK
70--
71--  DESCRIPTION:
72--
73--  This RTEMS task is the highest priority task in the system. 
74--  It starts the timer and performs a TASK_SUSPEND on SELF.
75--  When this task executes again, it stops the timer and
76--  reports the execution time for a preemptive TASK_RESUME.
77--
78
79   procedure HIGH_TASK (
80      ARGUMENT : in     RTEMS.TASK_ARGUMENT
81   );
82   pragma Convention (C, HIGH_TASK);
83
84--
85--  MIDDLE_TASKS
86--
87--  DESCRIPTION:
88--
89--  These RTEMS tasks perform a TASK_SUSPEND on SELF.  When each
90--  task executes again, it performs preemptive TASK_RESUME on
91--  a higher priority task.
92--
93
94   procedure MIDDLE_TASKS (
95      ARGUMENT : in     RTEMS.TASK_ARGUMENT
96   );
97   pragma Convention (C, MIDDLE_TASKS);
98
99--
100--  LOW_TASK
101--
102--  DESCRIPTION:
103--
104--  This RTEMS task is the lowest priority task in the system. 
105--  When this task executes, it stops the timer and reports the
106--  execution time for a blocking TASK_SUSPEND.  After this,
107--  it starts the timer and performs a TASK_RESUME on a
108--  higher priority task.
109--
110
111   procedure LOW_TASK (
112      ARGUMENT : in     RTEMS.TASK_ARGUMENT
113   );
114   pragma Convention (C, LOW_TASK);
115
116end TMTEST;
Note: See TracBrowser for help on using the repository browser.