1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 21 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 RTEMS; |
---|
25 | with SYSTEM; |
---|
26 | with TIMER_DRIVER; |
---|
27 | with System.Storage_Elements; |
---|
28 | |
---|
29 | package TMTEST is |
---|
30 | |
---|
31 | -- |
---|
32 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
33 | -- by this test. |
---|
34 | -- |
---|
35 | |
---|
36 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
37 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
38 | |
---|
39 | -- |
---|
40 | -- The following variable is set to the execution time returned |
---|
41 | -- by the timer. |
---|
42 | -- |
---|
43 | |
---|
44 | END_TIME : RTEMS.UNSIGNED32; |
---|
45 | |
---|
46 | -- |
---|
47 | -- The following area defines a memory area to be used as the |
---|
48 | -- internal address space of the port. |
---|
49 | -- |
---|
50 | |
---|
51 | INTERNAL_PORT_AREA_ADDRESS : constant System.Address := |
---|
52 | System.Storage_Elements.To_Address(16#00001000#); |
---|
53 | |
---|
54 | INTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) |
---|
55 | of RTEMS.UNSIGNED8; |
---|
56 | for INTERNAL_PORT_AREA use at INTERNAL_PORT_AREA_ADDRESS; |
---|
57 | |
---|
58 | -- |
---|
59 | -- The following area defines a memory area to be used as the |
---|
60 | -- external address space of the port. |
---|
61 | -- |
---|
62 | |
---|
63 | EXTERNAL_PORT_AREA_ADDRESS : constant System.Address := |
---|
64 | System.Storage_Elements.To_Address(16#00002000#); |
---|
65 | |
---|
66 | EXTERNAL_PORT_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 255 ) |
---|
67 | of RTEMS.UNSIGNED8; |
---|
68 | for EXTERNAL_PORT_AREA use at EXTERNAL_PORT_AREA_ADDRESS; |
---|
69 | |
---|
70 | -- |
---|
71 | -- The following area defines a memory area to be used as the |
---|
72 | -- memory space for a partition. |
---|
73 | -- |
---|
74 | |
---|
75 | PARTITION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 ) |
---|
76 | of RTEMS.UNSIGNED8; |
---|
77 | for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
78 | |
---|
79 | -- |
---|
80 | -- These following are the ID and NAME of the RTEMS region created |
---|
81 | -- by this test. |
---|
82 | -- |
---|
83 | |
---|
84 | REGION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 ) |
---|
85 | of RTEMS.UNSIGNED8; |
---|
86 | for REGION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
87 | |
---|
88 | -- |
---|
89 | -- INIT |
---|
90 | -- |
---|
91 | -- DESCRIPTION: |
---|
92 | -- |
---|
93 | -- This RTEMS task initializes the application. |
---|
94 | -- |
---|
95 | |
---|
96 | procedure INIT ( |
---|
97 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
98 | ); |
---|
99 | |
---|
100 | -- |
---|
101 | -- TASK_1 |
---|
102 | -- |
---|
103 | -- DESCRIPTION: |
---|
104 | -- |
---|
105 | -- This RTEMS task is responsible for measuring and reporting the |
---|
106 | -- following directive execution times: |
---|
107 | -- |
---|
108 | -- + TASK_IDENT |
---|
109 | -- + MESSAGE_QUEUE_IDENT |
---|
110 | -- + SEMAPHORE_IDENT |
---|
111 | -- + PARTITION_IDENT |
---|
112 | -- + REGION_IDENT |
---|
113 | -- + PORT_IDENT |
---|
114 | -- + TIMER_IDENT |
---|
115 | -- + RATE_MONOTONIC_IDENT |
---|
116 | -- |
---|
117 | |
---|
118 | procedure TASK_1 ( |
---|
119 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
120 | ); |
---|
121 | |
---|
122 | end TMTEST; |
---|