1 | -- |
---|
2 | -- SPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 22 of the RTEMS |
---|
7 | -- Single Processor Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989-1997. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- Copyright assigned to U.S. Government, 1994. |
---|
16 | -- |
---|
17 | -- The license and distribution terms for this file may in |
---|
18 | -- the file LICENSE in this distribution or at |
---|
19 | -- http://www.OARcorp.com/rtems/license.html. |
---|
20 | -- |
---|
21 | -- $Id$ |
---|
22 | -- |
---|
23 | |
---|
24 | with RTEMS; |
---|
25 | |
---|
26 | package SPTEST is |
---|
27 | |
---|
28 | -- |
---|
29 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
30 | -- by this test. |
---|
31 | -- |
---|
32 | |
---|
33 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID; |
---|
34 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME; |
---|
35 | |
---|
36 | -- |
---|
37 | -- These arrays contain the IDs and NAMEs of all RTEMS timers created |
---|
38 | -- by this test. |
---|
39 | -- |
---|
40 | |
---|
41 | TIMER_ID : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.ID; |
---|
42 | TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 1 ) of RTEMS.NAME; |
---|
43 | |
---|
44 | -- |
---|
45 | -- INIT |
---|
46 | -- |
---|
47 | -- DESCRIPTION: |
---|
48 | -- |
---|
49 | -- This RTEMS task initializes the application. |
---|
50 | -- |
---|
51 | |
---|
52 | procedure INIT ( |
---|
53 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
54 | ); |
---|
55 | |
---|
56 | -- |
---|
57 | -- DELAYED_RESUME |
---|
58 | -- |
---|
59 | -- DESCRIPTION: |
---|
60 | -- |
---|
61 | -- This subprogram is scheduled to be fired as a timer service |
---|
62 | -- routine. When fired this subprogram resumes TASK_1. |
---|
63 | -- |
---|
64 | |
---|
65 | procedure DELAYED_RESUME ( |
---|
66 | IGNORED_ID : in RTEMS.ID; |
---|
67 | IGNORED_ADDRESS : in RTEMS.ADDRESS |
---|
68 | ); |
---|
69 | |
---|
70 | -- |
---|
71 | -- PRINT_TIME |
---|
72 | -- |
---|
73 | -- DESCRIPTION: |
---|
74 | -- |
---|
75 | -- This subprogram prints the name of TASK_1 and the current TIME of day. |
---|
76 | -- |
---|
77 | |
---|
78 | procedure PRINT_TIME; |
---|
79 | |
---|
80 | -- |
---|
81 | -- TASK_1 |
---|
82 | -- |
---|
83 | -- DESCRIPTION: |
---|
84 | -- |
---|
85 | -- This RTEMS task tests the Timer Manager. |
---|
86 | -- |
---|
87 | |
---|
88 | procedure TASK_1 ( |
---|
89 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
90 | ); |
---|
91 | |
---|
92 | end SPTEST; |
---|