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