source: rtems/c/src/ada-tests/tmtests/tm23/tmtest.adb @ 35e4691

4.104.114.84.95
Last change on this file since 35e4691 was 35e4691, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:50:41

2003-09-04 Joel Sherrill <joel@…>

  • mptests/mp01/config.h, mptests/mp01/mp01.adb, mptests/mp01/mptest.adb, mptests/mp01/mptest.ads, mptests/mp02/mptest.adb, mptests/mp02/mptest.ads, mptests/mp03/mptest.adb, mptests/mp03/mptest.ads, mptests/mp04/mptest.adb, mptests/mp04/mptest.ads, mptests/mp05/mptest.adb, mptests/mp05/mptest.ads, mptests/mp06/mptest.adb, mptests/mp06/mptest.ads, mptests/mp07/mptest.adb, mptests/mp07/mptest.ads, mptests/mp08/mptest.adb, mptests/mp08/mptest.ads, mptests/mp09/mptest.adb, mptests/mp09/mptest.ads, mptests/mp10/mptest.adb, mptests/mp10/mptest.ads, mptests/mp11/mptest.adb, mptests/mp11/mptest.ads, mptests/mp12/mptest.adb, mptests/mp12/mptest.ads, mptests/mp13/mptest.adb, mptests/mp13/mptest.ads, mptests/mp14/mptest.adb, mptests/mp14/mptest.ads, samples/base_mp/config.h, samples/base_mp/mptest.adb, samples/base_mp/mptest.ads, samples/base_sp/base_sp.adb, samples/base_sp/config.h, samples/base_sp/sptest.adb, samples/base_sp/sptest.ads, samples/hello/config.h, samples/hello/hello.adb, samples/hello/sptest.adb, samples/hello/sptest.ads, samples/ticker/config.h, samples/ticker/sptest.adb, samples/ticker/sptest.ads, samples/ticker/ticker.adb, sptests/sp01/config.h, sptests/sp01/sp01.adb, sptests/sp01/sptest.adb, sptests/sp01/sptest.ads, sptests/sp02/config.h, sptests/sp02/sp02.adb, sptests/sp02/sptest.adb, sptests/sp02/sptest.ads, sptests/sp03/config.h, sptests/sp03/sp03.adb, sptests/sp03/sptest.adb, sptests/sp03/sptest.ads, sptests/sp04/config.h, sptests/sp04/sp04.adb, sptests/sp04/sptest.adb, sptests/sp04/sptest.ads, sptests/sp05/config.h, sptests/sp05/sp05.adb, sptests/sp05/sptest.adb, sptests/sp05/sptest.ads, sptests/sp06/config.h, sptests/sp06/sp06.adb, sptests/sp06/sptest.adb, sptests/sp06/sptest.ads, sptests/sp07/config.h, sptests/sp07/sp07.adb, sptests/sp07/sptest.adb, sptests/sp07/sptest.ads, sptests/sp08/config.h, sptests/sp08/sp08.adb, sptests/sp08/sptest.adb, sptests/sp08/sptest.ads, sptests/sp09/config.h, sptests/sp09/sp09.adb, sptests/sp09/sptest.adb, sptests/sp09/sptest.ads, sptests/sp11/config.h, sptests/sp11/sp11.adb, sptests/sp11/sptest.adb, sptests/sp11/sptest.ads, sptests/sp12/config.h, sptests/sp12/sp12.adb, sptests/sp12/sptest.adb, sptests/sp12/sptest.ads, sptests/sp13/config.h, sptests/sp13/sp13.adb, sptests/sp13/sptest.adb, sptests/sp13/sptest.ads, sptests/sp14/config.h, sptests/sp14/sp14.adb, sptests/sp14/sptest.adb, sptests/sp14/sptest.ads, sptests/sp15/config.h, sptests/sp15/sp15.adb, sptests/sp15/sptest.adb, sptests/sp15/sptest.ads, sptests/sp16/config.h, sptests/sp16/sp16.adb, sptests/sp16/sptest.adb, sptests/sp16/sptest.ads, sptests/sp17/config.h, sptests/sp17/sp17.adb, sptests/sp17/sptest.adb, sptests/sp17/sptest.ads, sptests/sp19/config.h, sptests/sp19/sp19.adb, sptests/sp19/sptest.ads, sptests/sp20/config.h, sptests/sp20/sp20.adb, sptests/sp20/sptest.adb, sptests/sp20/sptest.ads, sptests/sp21/config.h, sptests/sp21/sp21.adb, sptests/sp21/sptest.adb, sptests/sp21/sptest.ads, sptests/sp22/config.h, sptests/sp22/sp22.adb, sptests/sp22/sptest.adb, sptests/sp22/sptest.ads, sptests/sp23/config.h, sptests/sp23/sp23.adb, sptests/sp23/sptest.adb, sptests/sp23/sptest.ads, sptests/sp24/config.h, sptests/sp24/sp24.adb, sptests/sp24/sptest.adb, sptests/sp24/sptest.ads, sptests/sp25/config.h, sptests/sp25/sp25.adb, sptests/sp25/sptest.adb, sptests/sp25/sptest.ads, sptests/spsize/spsize.adb, sptests/spsize/sptest.adb, sptests/spsize/sptest.ads, support/address_io.adb, support/address_io.ads, support/float_io.ads, support/fp.inc, support/integer.inc, support/rtems_calling_overhead.ads, support/status_io.ads, support/test_support.adb, support/test_support.ads, support/time_test_support.adb, support/time_test_support.ads, support/timer_driver.adb, support/timer_driver.ads, support/unsigned32_io.ads, tmtests/tm01/config.h, tmtests/tm01/tm01.adb, tmtests/tm01/tmtest.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/config.h, tmtests/tm02/tm02.adb, tmtests/tm02/tmtest.adb, tmtests/tm02/tmtest.ads, tmtests/tm03/config.h, tmtests/tm03/tm03.adb, tmtests/tm03/tmtest.adb, tmtests/tm03/tmtest.ads, tmtests/tm04/config.h, tmtests/tm04/tm04.adb, tmtests/tm04/tmtest.adb, tmtests/tm04/tmtest.ads, tmtests/tm05/config.h, tmtests/tm05/tm05.adb, tmtests/tm05/tmtest.adb, tmtests/tm05/tmtest.ads, tmtests/tm06/config.h, tmtests/tm06/tm06.adb, tmtests/tm06/tmtest.adb, tmtests/tm06/tmtest.ads, tmtests/tm07/config.h, tmtests/tm07/tm07.adb, tmtests/tm07/tmtest.adb, tmtests/tm07/tmtest.ads, tmtests/tm08/config.h, tmtests/tm08/tm08.adb, tmtests/tm08/tmtest.adb, tmtests/tm08/tmtest.ads, tmtests/tm09/config.h, tmtests/tm09/tm09.adb, tmtests/tm09/tmtest.adb, tmtests/tm09/tmtest.ads, tmtests/tm10/config.h, tmtests/tm10/tm10.adb, tmtests/tm10/tmtest.adb, tmtests/tm10/tmtest.ads, tmtests/tm11/config.h, tmtests/tm11/tm11.adb, tmtests/tm11/tmtest.adb, tmtests/tm11/tmtest.ads, tmtests/tm12/config.h, tmtests/tm12/tm12.adb, tmtests/tm12/tmtest.adb, tmtests/tm12/tmtest.ads, tmtests/tm13/config.h, tmtests/tm13/tm13.adb, tmtests/tm13/tmtest.adb, tmtests/tm13/tmtest.ads, tmtests/tm14/config.h, tmtests/tm14/tm14.adb, tmtests/tm14/tmtest.adb, tmtests/tm14/tmtest.ads, tmtests/tm15/config.h, tmtests/tm15/tm15.adb, tmtests/tm15/tmtest.adb, tmtests/tm15/tmtest.ads, tmtests/tm16/config.h, tmtests/tm16/tm16.adb, tmtests/tm16/tmtest.adb, tmtests/tm16/tmtest.ads, tmtests/tm17/config.h, tmtests/tm17/tm17.adb, tmtests/tm17/tmtest.adb, tmtests/tm17/tmtest.ads, tmtests/tm18/config.h, tmtests/tm18/tm18.adb, tmtests/tm18/tmtest.adb, tmtests/tm18/tmtest.ads, tmtests/tm19/config.h, tmtests/tm19/tm19.adb, tmtests/tm19/tmtest.adb, tmtests/tm19/tmtest.ads, tmtests/tm20/config.h, tmtests/tm20/tm20.adb, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/config.h, tmtests/tm21/tm21.adb, tmtests/tm21/tmtest.adb, tmtests/tm21/tmtest.ads, tmtests/tm22/config.h, tmtests/tm22/tm22.adb, tmtests/tm22/tmtest.adb, tmtests/tm22/tmtest.ads, tmtests/tm23/config.h, tmtests/tm23/tm23.adb, tmtests/tm23/tmtest.adb, tmtests/tm23/tmtest.ads, tmtests/tm24/config.h, tmtests/tm24/tm24.adb, tmtests/tm24/tmtest.adb, tmtests/tm24/tmtest.ads, tmtests/tm25/config.h, tmtests/tm25/tm25.adb, tmtests/tm25/tmtest.adb, tmtests/tm25/tmtest.ads, tmtests/tm28/config.h, tmtests/tm28/tm28.adb, tmtests/tm28/tmtest.adb, tmtests/tm28/tmtest.ads, tmtests/tm29/config.h, tmtests/tm29/tm29.adb, tmtests/tm29/tmtest.adb, tmtests/tm29/tmtest.ads, tmtests/tmck/config.h, tmtests/tmck/tmck.adb, tmtests/tmck/tmtest.adb, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/config.h, tmtests/tmoverhd/dummy_rtems.adb, tmtests/tmoverhd/dummy_rtems.ads, tmtests/tmoverhd/tmoverhd.adb, tmtests/tmoverhd/tmtest.adb, tmtests/tmoverhd/tmtest.ads: URL for license changed.
  • Property mode set to 100644
File size: 10.0 KB
Line 
1--
2--  TMTEST / BODY
3--
4--  DESCRIPTION:
5--
6--  This package is the implementation of Test 23 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 INTERFACES; use INTERFACES;
24with RTEMS;
25with RTEMS_CALLING_OVERHEAD;
26with TEST_SUPPORT;
27with TEXT_IO;
28with TIME_TEST_SUPPORT;
29with UNSIGNED32_IO;
30
31package body TMTEST is
32
33--PAGE
34--
35--  INIT
36--
37
38   procedure INIT (
39      ARGUMENT : in     RTEMS.TASK_ARGUMENT
40   ) is
41      OVERHEAD      : RTEMS.UNSIGNED32;
42      TASK_PRIORITY : RTEMS.TASK_PRIORITY;
43      INDEX         : RTEMS.UNSIGNED32;
44      ID            : RTEMS.ID;
45      TASK_ENTRY    : RTEMS.TASK_ENTRY;
46      STATUS        : RTEMS.STATUS_CODES;
47   begin
48
49      TEXT_IO.NEW_LINE( 2 );
50      TEXT_IO.PUT_LINE( "*** TIME TEST 23 ***" );
51
52      TIMER_DRIVER.INITIALIZE;
53         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
54         loop
55            TIMER_DRIVER.EMPTY_FUNCTION;
56         end loop;
57      OVERHEAD := TIMER_DRIVER.READ_TIMER;
58
59      TASK_PRIORITY := 5;
60
61      for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
62      loop
63
64         RTEMS.TASK_CREATE(
65            RTEMS.BUILD_NAME( 'T', 'I', 'M', 'E' ),
66            TASK_PRIORITY,
67            1024,
68            RTEMS.DEFAULT_MODES,
69            RTEMS.DEFAULT_ATTRIBUTES,
70            ID,
71            STATUS
72         );
73         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE LOOP" );
74
75         if INDEX = 1 then
76            TASK_ENTRY := TMTEST.HIGH_TASK'ACCESS;
77         elsif INDEX = TIME_TEST_SUPPORT.OPERATION_COUNT then
78            TASK_ENTRY := TMTEST.LOW_TASK'ACCESS;
79         else
80            TASK_ENTRY := TMTEST.MIDDLE_TASKS'ACCESS;
81         end if;
82
83         RTEMS.TASK_START( ID, TASK_ENTRY, 0, STATUS );
84         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START LOOP" );
85
86         TASK_PRIORITY := TASK_PRIORITY + 1;
87
88      end loop;
89
90      RTEMS.TASK_DELETE( RTEMS.SELF, STATUS );
91      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_DELETE OF SELF" );
92
93   end INIT;
94
95--PAGE
96--
97--  NULL_DELAY
98--
99
100   procedure NULL_DELAY (
101      IGNORED_ID      : in     RTEMS.ID;
102      IGNORED_ADDRESS : in     RTEMS.ADDRESS
103   ) is
104   begin
105
106      NULL;
107
108   end NULL_DELAY;
109
110--PAGE
111--
112--  HIGH_TASK
113--
114
115   procedure HIGH_TASK (
116      ARGUMENT : in     RTEMS.TASK_ARGUMENT
117   ) is
118      INDEX    : RTEMS.TASK_PRIORITY;
119      OVERHEAD : RTEMS.UNSIGNED32;
120      STATUS   : RTEMS.STATUS_CODES;
121   begin
122
123      TIMER_DRIVER.INITIALIZE;
124         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
125         loop
126            TIMER_DRIVER.EMPTY_FUNCTION;
127         end loop;
128      OVERHEAD := TIMER_DRIVER.READ_TIMER;
129
130      TIMER_DRIVER.INITIALIZE;
131         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
132         loop
133            RTEMS.TIMER_CREATE(
134               INDEX,
135               TMTEST.TIMER_ID( INDEX ),
136               STATUS
137            );
138         end loop;
139      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
140
141      TIME_TEST_SUPPORT.PUT_TIME(
142         "TIMER_CREATE",
143         TMTEST.END_TIME,
144         TIME_TEST_SUPPORT.OPERATION_COUNT,
145         0,
146         RTEMS_CALLING_OVERHEAD.TIMER_CREATE
147      );
148
149      TIMER_DRIVER.INITIALIZE;
150         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
151         loop
152            RTEMS.TIMER_FIRE_AFTER(
153               TMTEST.TIMER_ID( INDEX ),
154               500,
155               TMTEST.NULL_DELAY'ACCESS,
156               RTEMS.NULL_ADDRESS,
157               STATUS
158            );
159         end loop;
160      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
161
162      TIME_TEST_SUPPORT.PUT_TIME(
163         "TIMER_FIRE_AFTER (inactive)",
164         TMTEST.END_TIME,
165         TIME_TEST_SUPPORT.OPERATION_COUNT,
166         0,
167         RTEMS_CALLING_OVERHEAD.TIMER_FIRE_AFTER
168      );
169
170      TIMER_DRIVER.INITIALIZE;
171         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
172         loop
173            RTEMS.TIMER_FIRE_AFTER(
174               TMTEST.TIMER_ID( INDEX ),
175               500,
176               TMTEST.NULL_DELAY'ACCESS,
177               RTEMS.NULL_ADDRESS,
178               STATUS
179            );
180         end loop;
181      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
182
183      TIME_TEST_SUPPORT.PUT_TIME(
184         "TIMER_FIRE_AFTER (active)",
185         TMTEST.END_TIME,
186         TIME_TEST_SUPPORT.OPERATION_COUNT,
187         0,
188         RTEMS_CALLING_OVERHEAD.TIMER_FIRE_AFTER
189      );
190
191      TIMER_DRIVER.INITIALIZE;
192         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
193         loop
194            RTEMS.TIMER_CANCEL( TMTEST.TIMER_ID( INDEX ), STATUS );
195         end loop;
196      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
197
198      TIME_TEST_SUPPORT.PUT_TIME(
199         "TIMER_CANCEL (active)",
200         TMTEST.END_TIME,
201         TIME_TEST_SUPPORT.OPERATION_COUNT,
202         0,
203         RTEMS_CALLING_OVERHEAD.TIMER_CANCEL
204      );
205
206      TIMER_DRIVER.INITIALIZE;
207         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
208         loop
209            RTEMS.TIMER_CANCEL( TMTEST.TIMER_ID( INDEX ), STATUS );
210         end loop;
211      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
212
213      TIME_TEST_SUPPORT.PUT_TIME(
214         "TIMER_CANCEL (inactive)",
215         TMTEST.END_TIME,
216         TIME_TEST_SUPPORT.OPERATION_COUNT,
217         0,
218         RTEMS_CALLING_OVERHEAD.TIMER_CANCEL
219      );
220
221      TIMER_DRIVER.INITIALIZE;
222         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
223         loop
224            RTEMS.TIMER_RESET( TMTEST.TIMER_ID( INDEX ), STATUS );
225         end loop;
226      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
227
228      TIME_TEST_SUPPORT.PUT_TIME(
229         "TIMER_RESET (inactive)",
230         TMTEST.END_TIME,
231         TIME_TEST_SUPPORT.OPERATION_COUNT,
232         0,
233         RTEMS_CALLING_OVERHEAD.TIMER_RESET
234      );
235
236      TIMER_DRIVER.INITIALIZE;
237         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
238         loop
239            RTEMS.TIMER_RESET( TMTEST.TIMER_ID( INDEX ), STATUS );
240         end loop;
241      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
242
243      TIME_TEST_SUPPORT.PUT_TIME(
244         "TIMER_RESET (active)",
245         TMTEST.END_TIME,
246         TIME_TEST_SUPPORT.OPERATION_COUNT,
247         0,
248         RTEMS_CALLING_OVERHEAD.TIMER_RESET
249      );
250
251      for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
252      loop
253         RTEMS.TIMER_CANCEL( TMTEST.TIMER_ID( INDEX ), STATUS );
254      end loop;
255
256      TMTEST.TIME_OF_DAY := ( 1988, 12, 31, 9, 0, 0, 0 );
257
258      RTEMS.CLOCK_SET( TMTEST.TIME_OF_DAY, STATUS );
259      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_SET" );
260
261      TMTEST.TIME_OF_DAY.YEAR := 1989;
262
263      TIMER_DRIVER.INITIALIZE;
264         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
265         loop
266            RTEMS.TIMER_FIRE_WHEN(
267               TMTEST.TIMER_ID( INDEX ),
268               TMTEST.TIME_OF_DAY,
269               TMTEST.NULL_DELAY'ACCESS,
270               RTEMS.NULL_ADDRESS,
271               STATUS
272            );
273         end loop;
274      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
275
276      TIME_TEST_SUPPORT.PUT_TIME(
277         "TIMER_FIRE_WHEN (inactive)",
278         TMTEST.END_TIME,
279         TIME_TEST_SUPPORT.OPERATION_COUNT,
280         0,
281         RTEMS_CALLING_OVERHEAD.TIMER_FIRE_WHEN
282      );
283
284      TIMER_DRIVER.INITIALIZE;
285         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
286         loop
287            RTEMS.TIMER_FIRE_WHEN(
288               TMTEST.TIMER_ID( INDEX ),
289               TMTEST.TIME_OF_DAY,
290               TMTEST.NULL_DELAY'ACCESS,
291               RTEMS.NULL_ADDRESS,
292               STATUS
293            );
294         end loop;
295      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
296
297      TIME_TEST_SUPPORT.PUT_TIME(
298         "TIMER_FIRE_WHEN (active)",
299         TMTEST.END_TIME,
300         TIME_TEST_SUPPORT.OPERATION_COUNT,
301         0,
302         RTEMS_CALLING_OVERHEAD.TIMER_FIRE_WHEN
303      );
304
305      TIMER_DRIVER.INITIALIZE;
306         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
307         loop
308            RTEMS.TIMER_DELETE( TMTEST.TIMER_ID( INDEX ), STATUS );
309         end loop;
310      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
311
312      TIME_TEST_SUPPORT.PUT_TIME(
313         "TIMER_DELETE (active)",
314         TMTEST.END_TIME,
315         TIME_TEST_SUPPORT.OPERATION_COUNT,
316         0,
317         RTEMS_CALLING_OVERHEAD.TIMER_DELETE
318      );
319
320      for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
321      loop
322         RTEMS.TIMER_CREATE( INDEX, TMTEST.TIMER_ID( INDEX ), STATUS );
323         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_CREATE" );
324
325         RTEMS.TIMER_FIRE_AFTER(
326            TMTEST.TIMER_ID( INDEX ),
327            500,
328            TMTEST.NULL_DELAY'ACCESS,
329            RTEMS.NULL_ADDRESS,
330            STATUS
331         );
332         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_FIRE_AFTER" );
333
334         RTEMS.TIMER_CANCEL( TMTEST.TIMER_ID( INDEX ), STATUS );
335         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_CANCEL" );
336
337      end loop;
338
339      TIMER_DRIVER.INITIALIZE;
340         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
341         loop
342            RTEMS.TIMER_DELETE( TMTEST.TIMER_ID( INDEX ), STATUS );
343         end loop;
344      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
345
346      TIME_TEST_SUPPORT.PUT_TIME(
347         "TIMER_DELETE (inactive)",
348         TMTEST.END_TIME,
349         TIME_TEST_SUPPORT.OPERATION_COUNT,
350         0,
351         RTEMS_CALLING_OVERHEAD.TIMER_DELETE
352      );
353
354      TIMER_DRIVER.INITIALIZE;
355         RTEMS.TASK_WAKE_WHEN( TMTEST.TIME_OF_DAY, STATUS );
356
357   end HIGH_TASK;
358
359--PAGE
360--
361--  MIDDLE_TASKS
362--
363
364   procedure MIDDLE_TASKS (
365      ARGUMENT : in     RTEMS.TASK_ARGUMENT
366   ) is
367      STATUS : RTEMS.STATUS_CODES;
368   begin
369
370      RTEMS.TASK_WAKE_WHEN( TMTEST.TIME_OF_DAY, STATUS );
371
372   end MIDDLE_TASKS;
373
374--PAGE
375--
376--  LOW_TASK
377--
378
379   procedure LOW_TASK (
380      ARGUMENT : in     RTEMS.TASK_ARGUMENT
381   ) is
382   begin
383
384      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
385
386      TIME_TEST_SUPPORT.PUT_TIME(
387         "TASK_WAKE_WHEN",
388         TMTEST.END_TIME,
389         TIME_TEST_SUPPORT.OPERATION_COUNT,
390         0,
391         RTEMS_CALLING_OVERHEAD.TASK_WAKE_WHEN
392      );
393
394      RTEMS.SHUTDOWN_EXECUTIVE( 0 );
395
396   end LOW_TASK;
397
398end TMTEST;
Note: See TracBrowser for help on using the repository browser.