1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 9 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 | -- The following is the ID of the message queue used for timing operations. |
---|
31 | -- |
---|
32 | |
---|
33 | QUEUE_ID : RTEMS.ID; |
---|
34 | |
---|
35 | -- |
---|
36 | -- The following variable is set to the execution time returned |
---|
37 | -- by the timer. |
---|
38 | -- |
---|
39 | |
---|
40 | END_TIME : RTEMS.UNSIGNED32; |
---|
41 | |
---|
42 | -- |
---|
43 | -- INIT |
---|
44 | -- |
---|
45 | -- DESCRIPTION: |
---|
46 | -- |
---|
47 | -- This RTEMS task initializes the application. |
---|
48 | -- |
---|
49 | |
---|
50 | procedure INIT ( |
---|
51 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
52 | ); |
---|
53 | |
---|
54 | -- |
---|
55 | -- TEST_TASK |
---|
56 | -- |
---|
57 | -- DESCRIPTION: |
---|
58 | -- |
---|
59 | -- This RTEMS task is responsible for measuring and reporting the |
---|
60 | -- following directive execution times: |
---|
61 | -- |
---|
62 | -- + MESSAGE_QUEUE_CREATE |
---|
63 | -- + MESSAGE_QUEUE_DELETE |
---|
64 | -- |
---|
65 | |
---|
66 | procedure TEST_TASK ( |
---|
67 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
68 | ); |
---|
69 | |
---|
70 | -- |
---|
71 | -- QUEUE_TEST |
---|
72 | -- |
---|
73 | -- DESCRIPTION: |
---|
74 | -- |
---|
75 | -- This subprogram is responsible for measuring and reporting the |
---|
76 | -- following directive execution times: |
---|
77 | -- |
---|
78 | -- + MESSAGE_QUEUE_SEND with no tasks waiting |
---|
79 | -- + MESSAGE_QUEUE_URGENT with no tasks waiting |
---|
80 | -- + MESSAGE_QUEUE_RECEIVE with messages available |
---|
81 | -- + MESSAGE_QUEUE_FLUSH with an empty message queue |
---|
82 | -- + MESSAGE_QUEUE_FLUSH with messages flushed |
---|
83 | -- |
---|
84 | |
---|
85 | procedure QUEUE_TEST; |
---|
86 | |
---|
87 | end TMTEST; |
---|