source: rtems/c/src/ada-tests/sptests/sp08/sptest.ads @ bf9ae83

4.104.114.84.95
Last change on this file since bf9ae83 was bf9ae83, checked in by Joel Sherrill <joel.sherrill@…>, on 06/02/97 at 20:32:11

modified copyright notice to be the same as RTEMS 4.0.0.

changed the CVS ID string to be a "development" version.

  • Property mode set to 100644
File size: 3.4 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 8 of the RTEMS
7--  Single Processor 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
24with CLOCK_DRIVER;
25with RTEMS;
26
27package SPTEST is
28
29--
30--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
31--  by this test.
32--
33
34   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID;
35   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME;
36
37--
38--  INIT
39--
40--  DESCRIPTION:
41--
42--  This RTEMS task initializes the application.
43--
44
45   procedure INIT (
46      ARGUMENT : in     RTEMS.TASK_ARGUMENT
47   );
48
49--
50--  PUT_MODE
51--
52--  DESCRIPTION:
53--
54--  This subprogram prints the COMMENT and the OUTPUT_MODE followed
55--  by a carriage return.
56--
57
58   procedure PUT_MODE(
59      COMMENT     : in    STRING;
60      OUTPUT_MODE : in    RTEMS.MODE
61   );
62
63--
64--  TASK_1
65--
66--  DESCRIPTION:
67--
68--  This RTEMS task tests the TASK_MODE directive of the Task Manager.
69--
70
71   procedure TASK_1 (
72      ARGUMENT : in     RTEMS.TASK_ARGUMENT
73   );
74
75--
76--  This is the Driver Address Table for this test.
77--
78
79   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
80   (1=>
81      (
82        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
83        RTEMS.NO_DRIVER_ENTRY,                       -- Open
84        RTEMS.NO_DRIVER_ENTRY,                       -- Close
85        RTEMS.NO_DRIVER_ENTRY,                       -- Read
86        RTEMS.NO_DRIVER_ENTRY,                       -- Write
87        RTEMS.NO_DRIVER_ENTRY                        -- Control
88      )
89   );
90
91--
92--  This is the Initialization Tasks Table for this test.
93--
94
95   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
96   (1=>
97     (
98       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
99       2048,                                          -- stack size
100       1,                                             -- priority
101       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
102       SPTEST.INIT'ACCESS,                            -- entry point
103       RTEMS.NO_PREEMPT,                              -- initial mode
104       0                                              -- argument list
105     )
106   );
107
108--
109--  This is the Configuration Table for this test.
110--
111
112   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
113      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
114      64 * 1024,                 -- executive RAM size
115      10,                        -- maximum # tasks
116      0,                         -- maximum # timers
117      0,                         -- maximum # semaphores
118      0,                         -- maximum # message queues
119      0,                         -- maximum # messages
120      0,                         -- maximum # partitions
121      0,                         -- maximum # regions
122      0,                         -- maximum # dp memory areas
123      0,                         -- maximum # periods
124      0,                         -- maximum # user extensions
125      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
126      100                        -- # ticks in a timeslice
127  );
128
129end SPTEST;
Note: See TracBrowser for help on using the repository browser.