source: rtems/c/src/ada-tests/sptests/sp02/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.8 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 2 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   PREEMPT_TASK_ID   : RTEMS.ID;
38   PREEMPT_TASK_NAME : RTEMS.NAME;
39
40--
41--  INIT
42--
43--  DESCRIPTION:
44--
45--  This RTEMS task initializes the application.
46--
47
48   procedure INIT (
49      ARGUMENT : in     RTEMS.TASK_ARGUMENT
50   );
51
52--
53--  PREEMPT_TASK
54--
55--  DESCRIPTION:
56--
57--  This RTEMS task tests the basic preemption capability.
58--
59
60   procedure PREEMPT_TASK (
61      ARGUMENT : in     RTEMS.TASK_ARGUMENT
62   );
63
64--
65--  TASK_1
66--
67--  DESCRIPTION:
68--
69--  This RTEMS task tests some of the capabilities of the Task Manager.
70--
71
72   procedure TASK_1 (
73      ARGUMENT : in     RTEMS.TASK_ARGUMENT
74   );
75
76--
77--  TASK_2
78--
79--  DESCRIPTION:
80--
81--  This RTEMS task tests some of the capabilities of the Task Manager.
82--
83
84   procedure TASK_2 (
85      ARGUMENT : in     RTEMS.TASK_ARGUMENT
86   );
87
88--
89--  TASK_3
90--
91--  DESCRIPTION:
92--
93--  This RTEMS task tests some of the capabilities of the Task Manager.
94--
95
96   procedure TASK_3 (
97      ARGUMENT : in     RTEMS.TASK_ARGUMENT
98   );
99
100--
101--  This is the Driver Address Table for this test.
102--
103
104   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
105   (1=>
106      (
107        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
108        RTEMS.NO_DRIVER_ENTRY,                       -- Open
109        RTEMS.NO_DRIVER_ENTRY,                       -- Close
110        RTEMS.NO_DRIVER_ENTRY,                       -- Read
111        RTEMS.NO_DRIVER_ENTRY,                       -- Write
112        RTEMS.NO_DRIVER_ENTRY                        -- Control
113      )
114   );
115
116--
117--  This is the Initialization Tasks Table for this test.
118--
119
120   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
121   (1=>
122     (
123       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
124       2048,                                          -- stack size
125       1,                                             -- priority
126       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
127       SPTEST.INIT'ACCESS,                            -- entry point
128       RTEMS.NO_PREEMPT,                              -- initial mode
129       0                                              -- argument list
130     )
131   );
132
133--
134--  This is the Configuration Table for this test.
135--
136
137   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
138      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
139      64 * 1024,                 -- executive RAM size
140      10,                        -- maximum # tasks
141      0,                         -- maximum # timers
142      0,                         -- maximum # semaphores
143      0,                         -- maximum # message queues
144      0,                         -- maximum # messages
145      0,                         -- maximum # partitions
146      0,                         -- maximum # regions
147      0,                         -- maximum # dp memory areas
148      0,                         -- maximum # periods
149      0,                         -- maximum # user extensions
150      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
151      50                         -- # ticks in a timeslice
152  );
153
154end SPTEST;
Note: See TracBrowser for help on using the repository browser.