1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 14 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 | -- 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 TIMER_DRIVER; |
---|
25 | with RTEMS; |
---|
26 | |
---|
27 | package TMTEST is |
---|
28 | |
---|
29 | -- |
---|
30 | -- Buffer Record similar to that used by RTEMS 3.2.1. Using this |
---|
31 | -- avoids changes to the test. |
---|
32 | -- |
---|
33 | |
---|
34 | type BUFFER is |
---|
35 | record |
---|
36 | FIELD1 : RTEMS.UNSIGNED32; -- TEMPORARY UNTIL VARIABLE LENGTH |
---|
37 | FIELD2 : RTEMS.UNSIGNED32; |
---|
38 | FIELD3 : RTEMS.UNSIGNED32; |
---|
39 | FIELD4 : RTEMS.UNSIGNED32; |
---|
40 | end record; |
---|
41 | |
---|
42 | -- |
---|
43 | -- The following is the ID of the message queue used for timing operations. |
---|
44 | -- |
---|
45 | |
---|
46 | QUEUE_ID : RTEMS.ID; |
---|
47 | |
---|
48 | -- |
---|
49 | -- The following variable is set to the execution time returned |
---|
50 | -- by the timer. |
---|
51 | -- |
---|
52 | |
---|
53 | END_TIME : RTEMS.UNSIGNED32; |
---|
54 | |
---|
55 | -- |
---|
56 | -- INIT |
---|
57 | -- |
---|
58 | -- DESCRIPTION: |
---|
59 | -- |
---|
60 | -- This RTEMS task initializes the application. |
---|
61 | -- |
---|
62 | |
---|
63 | procedure INIT ( |
---|
64 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
65 | ); |
---|
66 | |
---|
67 | -- |
---|
68 | -- TEST_INIT |
---|
69 | -- |
---|
70 | -- DESCRIPTION: |
---|
71 | -- |
---|
72 | -- This subprogram performs test initialization. |
---|
73 | -- |
---|
74 | |
---|
75 | procedure TEST_INIT ( |
---|
76 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
77 | ); |
---|
78 | |
---|
79 | -- |
---|
80 | -- HIGH_TASK |
---|
81 | -- |
---|
82 | -- DESCRIPTION: |
---|
83 | -- |
---|
84 | -- This RTEMS task is the lowest priority task in the system. It |
---|
85 | -- only executes after all of the LOW_TASKS have blocked. It then |
---|
86 | -- times a readying MESSAGE_QUEUE_SEND. |
---|
87 | -- |
---|
88 | |
---|
89 | procedure HIGH_TASK ( |
---|
90 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
91 | ); |
---|
92 | |
---|
93 | -- |
---|
94 | -- LOW_TASKS |
---|
95 | -- |
---|
96 | -- DESCRIPTION: |
---|
97 | -- |
---|
98 | -- These RTEMS tasks perform a blocking MESSAGE_QUEUE_RECEIVE. |
---|
99 | -- |
---|
100 | |
---|
101 | procedure LOW_TASKS ( |
---|
102 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
103 | ); |
---|
104 | |
---|
105 | end TMTEST; |
---|