[6d4e604b] | 1 | -- |
---|
| 2 | -- SPTEST / SPECIFICATION |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package is the specification for Test 1 of the RTEMS |
---|
| 7 | -- Single Processor 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 RTEMS; |
---|
| 25 | |
---|
| 26 | package SPTEST 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 | -- INIT |
---|
| 38 | -- |
---|
| 39 | -- DESCRIPTION: |
---|
| 40 | -- |
---|
| 41 | -- This RTEMS task initializes the application. |
---|
| 42 | -- |
---|
| 43 | |
---|
| 44 | procedure INIT ( |
---|
| 45 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
| 46 | ); |
---|
| 47 | |
---|
| 48 | -- |
---|
| 49 | -- APPLICATION_TASK |
---|
| 50 | -- |
---|
| 51 | -- DESCRIPTION: |
---|
| 52 | -- |
---|
| 53 | -- This is the body of the RTEMS task which constitutes this test. |
---|
| 54 | -- |
---|
| 55 | |
---|
| 56 | procedure APPLICATION_TASK ( |
---|
| 57 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
| 58 | ); |
---|
| 59 | |
---|
| 60 | -- |
---|
| 61 | -- This is the Driver Address Table for this test. |
---|
| 62 | -- |
---|
| 63 | |
---|
| 64 | DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) := |
---|
| 65 | (1=> |
---|
| 66 | ( |
---|
| 67 | CLOCK_DRIVER.INITIALIZE'ACCESS, -- Initialization |
---|
| 68 | RTEMS.NO_DRIVER_ENTRY, -- Open |
---|
| 69 | RTEMS.NO_DRIVER_ENTRY, -- Close |
---|
| 70 | RTEMS.NO_DRIVER_ENTRY, -- Read |
---|
| 71 | RTEMS.NO_DRIVER_ENTRY, -- Write |
---|
| 72 | RTEMS.NO_DRIVER_ENTRY -- Control |
---|
| 73 | ) |
---|
| 74 | ); |
---|
| 75 | |
---|
| 76 | -- |
---|
| 77 | -- This is the Initialization Tasks Table for this test. |
---|
| 78 | -- |
---|
| 79 | |
---|
| 80 | INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) := |
---|
| 81 | (1=> |
---|
| 82 | ( |
---|
| 83 | RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ), -- task name |
---|
| 84 | 2048, -- stack size |
---|
| 85 | 1, -- priority |
---|
| 86 | RTEMS.DEFAULT_ATTRIBUTES, -- attributes |
---|
| 87 | SPTEST.INIT'ACCESS, -- entry point |
---|
| 88 | RTEMS.NO_PREEMPT, -- initial mode |
---|
| 89 | 0 -- argument list |
---|
| 90 | ) |
---|
| 91 | ); |
---|
| 92 | |
---|
| 93 | -- |
---|
| 94 | -- This is the Configuration Table for this test. |
---|
| 95 | -- |
---|
| 96 | |
---|
| 97 | CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := ( |
---|
| 98 | RTEMS.NULL_ADDRESS, -- will be replaced by BSP |
---|
| 99 | 64 * 1024, -- executive RAM size |
---|
| 100 | 10, -- maximum # tasks |
---|
| 101 | 0, -- maximum # timers |
---|
| 102 | 0, -- maximum # semaphores |
---|
| 103 | 0, -- maximum # message queues |
---|
| 104 | 0, -- maximum # messages |
---|
| 105 | 0, -- maximum # partitions |
---|
| 106 | 0, -- maximum # regions |
---|
| 107 | 0, -- maximum # dp memory areas |
---|
| 108 | 0, -- maximum # periods |
---|
| 109 | 0, -- maximum # user extensions |
---|
| 110 | RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick |
---|
| 111 | 50 -- # ticks in a timeslice |
---|
| 112 | ); |
---|
| 113 | |
---|
| 114 | end SPTEST; |
---|