[6d4e604b] | 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 | -- |
---|
[bf9ae83] | 13 | -- COPYRIGHT (c) 1989-1997. |
---|
[6d4e604b] | 14 | -- On-Line Applications Research Corporation (OAR). |
---|
[bf9ae83] | 15 | -- Copyright assigned to U.S. Government, 1994. |
---|
[6d4e604b] | 16 | -- |
---|
[bf9ae83] | 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. |
---|
[6d4e604b] | 20 | -- |
---|
[bf9ae83] | 21 | -- $Id$ |
---|
[6d4e604b] | 22 | -- |
---|
| 23 | |
---|
| 24 | with TIMER_DRIVER; |
---|
| 25 | with RTEMS; |
---|
| 26 | |
---|
| 27 | package TMTEST is |
---|
| 28 | |
---|
| 29 | TASK_ID : RTEMS.ID; |
---|
| 30 | |
---|
| 31 | -- |
---|
| 32 | -- The following variable is set to the execution time returned |
---|
| 33 | -- by the timer. |
---|
| 34 | -- |
---|
| 35 | |
---|
| 36 | END_TIME : RTEMS.UNSIGNED32; |
---|
| 37 | |
---|
| 38 | -- |
---|
| 39 | -- INIT |
---|
| 40 | -- |
---|
| 41 | -- DESCRIPTION: |
---|
| 42 | -- |
---|
| 43 | -- This RTEMS task initializes the application. |
---|
| 44 | -- |
---|
| 45 | |
---|
| 46 | procedure INIT ( |
---|
| 47 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
| 48 | ); |
---|
| 49 | |
---|
| 50 | -- |
---|
| 51 | -- TEST_INIT |
---|
| 52 | -- |
---|
| 53 | -- DESCRIPTION: |
---|
| 54 | -- |
---|
| 55 | -- This subprogram performs test initialization. |
---|
| 56 | -- |
---|
| 57 | |
---|
| 58 | procedure TEST_INIT; |
---|
| 59 | |
---|
| 60 | -- |
---|
| 61 | -- TEST_TASK |
---|
| 62 | -- |
---|
| 63 | -- DESCRIPTION: |
---|
| 64 | -- |
---|
| 65 | -- This RTEMS task is responsible for measuring and reporting the |
---|
| 66 | -- following directive execution times: |
---|
| 67 | -- |
---|
| 68 | -- + TASK_SET_PRIORITY to obtain the current priority |
---|
| 69 | -- + TASK_SET_PRIORITY which does not require a context switch |
---|
| 70 | -- + TASK_MODE to obtain the current mode |
---|
| 71 | -- + TASK_MODE which does not require a reschedule |
---|
| 72 | -- + TASK_MODE which does require a reschedule |
---|
| 73 | -- + TASK_MODE which causes a preemption *** TEST_TASK1 executes |
---|
| 74 | -- + TASK_SET_NOTE |
---|
| 75 | -- + TASK_GET_NOTE |
---|
| 76 | -- + CLOCK_SET |
---|
| 77 | -- + CLOCK_GET |
---|
| 78 | -- |
---|
| 79 | |
---|
| 80 | procedure TEST_TASK ( |
---|
| 81 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
| 82 | ); |
---|
| 83 | |
---|
| 84 | -- |
---|
| 85 | -- TEST_TASK2 |
---|
| 86 | -- |
---|
| 87 | -- DESCRIPTION: |
---|
| 88 | -- |
---|
| 89 | -- This RTEMS task is responsible for measuring and reporting the |
---|
| 90 | -- following directive execution times: |
---|
| 91 | -- |
---|
| 92 | -- + TASK_MODE which results in a preemption |
---|
| 93 | -- |
---|
| 94 | |
---|
| 95 | procedure TEST_TASK1 ( |
---|
| 96 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
| 97 | ); |
---|
| 98 | |
---|
| 99 | end TMTEST; |
---|