1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 29 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 name used for all periods created by this test. |
---|
31 | -- |
---|
32 | |
---|
33 | PERIOD_NAME : RTEMS.NAME; |
---|
34 | |
---|
35 | -- |
---|
36 | -- The following is used to allow all tasks to create and start |
---|
37 | -- their period timers before the timer is started for timing |
---|
38 | -- the blocking case of RATE_MONOTONIC_PERIOD. |
---|
39 | -- |
---|
40 | |
---|
41 | TASK_COUNT : RTEMS.UNSIGNED32; |
---|
42 | |
---|
43 | -- |
---|
44 | -- The following variable is set to the execution time returned |
---|
45 | -- by the timer. |
---|
46 | -- |
---|
47 | |
---|
48 | END_TIME : RTEMS.UNSIGNED32; |
---|
49 | |
---|
50 | -- |
---|
51 | -- INIT |
---|
52 | -- |
---|
53 | -- DESCRIPTION: |
---|
54 | -- |
---|
55 | -- This RTEMS task initializes the application. It also measures and |
---|
56 | -- reports the following directive execution times: |
---|
57 | -- |
---|
58 | -- + RATE_MONOTONIC_CREATE |
---|
59 | -- + RATE_MONOTONIC_PERIOD the initial time |
---|
60 | -- + RATE_MONOTONIC_PERIOD for a period's status |
---|
61 | -- + RATE_MONOTONIC_CANCEL |
---|
62 | -- + RATE_MONOTONIC_DELETE of a cancelled period |
---|
63 | -- + RATE_MONOTONIC_DELETE of an active period |
---|
64 | -- |
---|
65 | |
---|
66 | procedure INIT ( |
---|
67 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
68 | ); |
---|
69 | |
---|
70 | -- |
---|
71 | -- TEST_TASK |
---|
72 | -- |
---|
73 | -- DESCRIPTION: |
---|
74 | -- |
---|
75 | -- The first of these RTEMS tasks starts the timer. All of these |
---|
76 | -- tasks execute a blocking RATE_MONOTONIC_PERIOD. |
---|
77 | -- |
---|
78 | |
---|
79 | procedure TASKS ( |
---|
80 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
81 | ); |
---|
82 | |
---|
83 | -- |
---|
84 | -- TEST_TASK |
---|
85 | -- |
---|
86 | -- DESCRIPTION: |
---|
87 | -- |
---|
88 | -- This RTEMS task stops the timer and reports the execution |
---|
89 | -- time for a blocking RATE_MONOTONIC_PERIOD. |
---|
90 | -- |
---|
91 | |
---|
92 | procedure LOW_TASK ( |
---|
93 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
94 | ); |
---|
95 | |
---|
96 | end TMTEST; |
---|