source: rtems/c/src/ada-tests/sptests/sp11/sptest.ads @ f619250

4.115
Last change on this file since f619250 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 4.0 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 11 of the RTEMS
7--  Single Processor 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.com/license/LICENSE.
19--
20
21with RTEMS;
22with RTEMS.TASKS;
23
24package SPTEST is
25
26--
27--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
28--  by this test.
29--
30
31   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
32   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
33
34--
35--  These arrays contain the IDs and NAMEs of all RTEMS timers created
36--  by this test.
37--
38
39   TIMER_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 6 ) of RTEMS.ID;
40   TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 6 ) of RTEMS.NAME;
41
42--
43--  TA1_SEND_18_TO_SELF_5_SECONDS
44--
45--  DESCRIPTION:
46--
47--  This subprogram is scheduled to be fired by a timer after 5 seconds
48--  and to send EVENT_18 to TASK_1.
49--
50
51   procedure TA1_SEND_18_TO_SELF_5_SECONDS (
52      IGNORED_ID      : in     RTEMS.ID; 
53      IGNORED_ADDRESS : in     RTEMS.ADDRESS
54   );
55   pragma Convention (C, TA1_SEND_18_TO_SELF_5_SECONDS);
56
57--
58--  TA1_SEND_8_TO_SELF_60_SECONDS
59--
60--  DESCRIPTION:
61--
62--  This subprogram is scheduled to be fired by a timer after 60 seconds
63--  and to send EVENT_8 to TASK_1.
64--
65
66   procedure TA1_SEND_8_TO_SELF_60_SECONDS (
67      IGNORED_ID      : in     RTEMS.ID; 
68      IGNORED_ADDRESS : in     RTEMS.ADDRESS
69   );
70   pragma Convention (C, TA1_SEND_8_TO_SELF_60_SECONDS);
71
72--
73--  TA1_SEND_9_TO_SELF_5_SECONDS
74--
75--  DESCRIPTION:
76--
77--  This subprogram is scheduled to be fired by a timer after 60 seconds
78--  and to send EVENT_9 to TASK_1.
79--
80
81   procedure TA1_SEND_9_TO_SELF_60_SECONDS (
82      IGNORED_ID      : in     RTEMS.ID; 
83      IGNORED_ADDRESS : in     RTEMS.ADDRESS
84   );
85   pragma Convention (C, TA1_SEND_9_TO_SELF_60_SECONDS);
86
87--
88--  TA1_SEND_10_TO_SELF
89--
90--  DESCRIPTION:
91--
92--  This subprogram is scheduled to be fired by a timer after 60 seconds
93--  and to send EVENT_10 to TASK_1.
94--
95
96   procedure TA1_SEND_10_TO_SELF (
97      IGNORED_ID      : in     RTEMS.ID; 
98      IGNORED_ADDRESS : in     RTEMS.ADDRESS
99   );
100   pragma Convention (C, TA1_SEND_10_TO_SELF);
101
102--
103--  TA1_SEND_1_TO_SELF_EVERY_SECOND
104--
105--  DESCRIPTION:
106--
107--  This subprogram is scheduled to be fired by a timer every second
108--  and to send EVENT_1 to TASK_1 until the timer is cancelled.
109--
110
111   procedure TA1_SEND_1_TO_SELF_EVERY_SECOND (
112      IGNORED_ID      : in     RTEMS.ID; 
113      IGNORED_ADDRESS : in     RTEMS.ADDRESS
114   );
115   pragma Convention (C, TA1_SEND_1_TO_SELF_EVERY_SECOND);
116
117--
118--  TA1_SEND_11_TO_SELF
119--
120--  DESCRIPTION:
121--
122--  This subprogram is scheduled to be fired by a timer at a
123--  specific time of day and to send EVENT_11 to TASK_1.
124--
125
126   procedure TA1_SEND_11_TO_SELF (
127      IGNORED_ID      : in     RTEMS.ID; 
128      IGNORED_ADDRESS : in     RTEMS.ADDRESS
129   );
130   pragma Convention (C, TA1_SEND_11_TO_SELF);
131
132--
133--  TA2_SEND_10_TO_SELF
134--
135--  DESCRIPTION:
136--
137--  This subprogram is scheduled to be fired by a timer after 5 seconds
138--  and to send EVENT_10 to TASK_2.
139--
140
141   procedure TA2_SEND_10_TO_SELF (
142      IGNORED_ID      : in     RTEMS.ID; 
143      IGNORED_ADDRESS : in     RTEMS.ADDRESS
144   );
145   pragma Convention (C, TA2_SEND_10_TO_SELF);
146
147--
148--  INIT
149--
150--  DESCRIPTION:
151--
152--  This RTEMS task initializes the application.
153--
154
155   procedure INIT (
156      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
157   );
158   pragma Convention (C, INIT);
159
160--
161--  TASK_1
162--
163--  DESCRIPTION:
164--
165--  This RTEMS task tests the Event and Timer Managers.
166--
167
168   procedure TASK_1 (
169      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
170   );
171   pragma Convention (C, TASK_1);
172
173--
174--  TASK_2
175--
176--  DESCRIPTION:
177--
178--  This RTEMS task tests the Event and Timer Managers.
179--
180
181   procedure TASK_2 (
182      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
183   );
184   pragma Convention (C, TASK_2);
185
186end SPTEST;
Note: See TracBrowser for help on using the repository browser.