1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 8 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 | |
---|
24 | package TMTEST is |
---|
25 | |
---|
26 | TASK_ID : RTEMS.ID; |
---|
27 | |
---|
28 | -- |
---|
29 | -- The following variable is set to the execution time returned |
---|
30 | -- by the timer. |
---|
31 | -- |
---|
32 | |
---|
33 | END_TIME : RTEMS.UNSIGNED32; |
---|
34 | |
---|
35 | -- |
---|
36 | -- INIT |
---|
37 | -- |
---|
38 | -- DESCRIPTION: |
---|
39 | -- |
---|
40 | -- This RTEMS task initializes the application. |
---|
41 | -- |
---|
42 | |
---|
43 | procedure INIT ( |
---|
44 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
45 | ); |
---|
46 | pragma Convention (C, INIT); |
---|
47 | |
---|
48 | -- |
---|
49 | -- TEST_INIT |
---|
50 | -- |
---|
51 | -- DESCRIPTION: |
---|
52 | -- |
---|
53 | -- This subprogram performs test initialization. |
---|
54 | -- |
---|
55 | |
---|
56 | procedure TEST_INIT; |
---|
57 | |
---|
58 | -- |
---|
59 | -- TEST_TASK |
---|
60 | -- |
---|
61 | -- DESCRIPTION: |
---|
62 | -- |
---|
63 | -- This RTEMS task is responsible for measuring and reporting the |
---|
64 | -- following directive execution times: |
---|
65 | -- |
---|
66 | -- + TASK_SET_PRIORITY to obtain the current priority |
---|
67 | -- + TASK_SET_PRIORITY which does not require a context switch |
---|
68 | -- + TASK_MODE to obtain the current mode |
---|
69 | -- + TASK_MODE which does not require a reschedule |
---|
70 | -- + TASK_MODE which does require a reschedule |
---|
71 | -- + TASK_MODE which causes a preemption *** TEST_TASK1 executes |
---|
72 | -- + CLOCK_SET |
---|
73 | -- |
---|
74 | |
---|
75 | procedure TEST_TASK ( |
---|
76 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
77 | ); |
---|
78 | pragma Convention (C, TEST_TASK); |
---|
79 | |
---|
80 | -- |
---|
81 | -- TEST_TASK2 |
---|
82 | -- |
---|
83 | -- DESCRIPTION: |
---|
84 | -- |
---|
85 | -- This RTEMS task is responsible for measuring and reporting the |
---|
86 | -- following directive execution times: |
---|
87 | -- |
---|
88 | -- + TASK_MODE which results in a preemption |
---|
89 | -- |
---|
90 | |
---|
91 | procedure TEST_TASK1 ( |
---|
92 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
93 | ); |
---|
94 | pragma Convention (C, TEST_TASK1); |
---|
95 | |
---|
96 | end TMTEST; |
---|