source: rtems/c/src/ada-tests/tmtests/tm16/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.5 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 16 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 RTEMS;
24with TIME_TEST_SUPPORT;
25with TIMER_DRIVER;
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--
37--  This variable is used to index through the TASK_ID array
38--  so that events can be send to the next task.
39--
40
41   TASK_COUNT : RTEMS.UNSIGNED32;
42
43--
44--  The following variable is set to the execution time returned
45--  by the timer.
46--
47
48   END_TIME  : RTEMS.UNSIGNED32;
49
50--
51--  INIT
52--
53--  DESCRIPTION:
54--
55--  This RTEMS task initializes the application. 
56--
57
58   procedure INIT (
59      ARGUMENT : in     RTEMS.TASK_ARGUMENT
60   );
61   pragma Convention (C, INIT);
62
63--
64--  TEST_INIT
65--
66--  DESCRIPTION:
67--
68--  This subprogram performs test initialization.  Once initialization
69--  has been completed, this task sets the TASK_COUNT to 0 and
70--  starts the timer before performing a preemptive EVENT_SEND.
71--
72
73   procedure TEST_INIT (
74      ARGUMENT : in     RTEMS.TASK_ARGUMENT
75   );
76   pragma Convention (C, TEST_INIT);
77
78--
79--  HIGH_TASK
80--
81--  DESCRIPTION:
82--
83--  This RTEMS task is highest priority task in the system.
84--  Its first action is to perform a blocking EVENT_RECEIVE.
85--  It is the last task to have its event set sent to it.  Thus it
86--  is the last task to be awakened by a preemptive EVENT_SEND.
87--  After it preempts the last MIDDLE_TASKS, it stops the timer
88--  and reports the execution time of preemptive EVENT_SEND.
89--
90
91   procedure HIGH_TASK (
92      ARGUMENT : in     RTEMS.TASK_ARGUMENT
93   );
94   pragma Convention (C, HIGH_TASK);
95
96--
97--  MIDDLE_TASKS
98--
99--  DESCRIPTION:
100--
101--  These RTEMS tasks perform a blocking EVENT_RECEIVE.  When
102--  readied, each task will increment the TASK_COUNT and
103--  perform a preemptive EVENT_SEND.  TASK_COUNT is used to
104--  index the TASK_ID array in such a way that incrementing
105--  TASK_COUNT makes it index the ID of the next task to
106--  send events to.
107--
108
109   procedure MIDDLE_TASKS (
110      ARGUMENT : in     RTEMS.TASK_ARGUMENT
111   );
112   pragma Convention (C, MIDDLE_TASKS);
113
114end TMTEST;
Note: See TracBrowser for help on using the repository browser.