source: rtems/c/src/ada-tests/samples/base_sp/sptest.ads @ 7e3dcbc

4.104.114.84.95
Last change on this file since 7e3dcbc 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.2 KB
Line 
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--
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--  APPLICATION_TASK
51--
52--  DESCRIPTION:
53--
54--  This is the body of the RTEMS task which constitutes this test.
55--
56
57   procedure APPLICATION_TASK (
58      ARGUMENT : in     RTEMS.TASK_ARGUMENT
59   );
60
61--
62--  This is the Driver Address Table for this test.
63--
64
65   DEVICE_DRIVERS : aliased RTEMS.DRIVER_ADDRESS_TABLE( 1 .. 1 ) :=
66   (1=>
67      (
68        CLOCK_DRIVER.INITIALIZE'ACCESS,              -- Initialization
69        RTEMS.NO_DRIVER_ENTRY,                       -- Open
70        RTEMS.NO_DRIVER_ENTRY,                       -- Close
71        RTEMS.NO_DRIVER_ENTRY,                       -- Read
72        RTEMS.NO_DRIVER_ENTRY,                       -- Write
73        RTEMS.NO_DRIVER_ENTRY                        -- Control
74      )
75   );
76
77--
78--  This is the Initialization Tasks Table for this test.
79--
80
81   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
82   (1=>
83     (
84       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
85       2048,                                          -- stack size
86       1,                                             -- priority
87       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
88       SPTEST.INIT'ACCESS,                            -- entry point
89       RTEMS.NO_PREEMPT,                              -- initial mode
90       0                                              -- argument list
91     )
92   );
93
94--
95--  This is the Configuration Table for this test.
96--
97
98   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
99      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
100      64 * 1024,                 -- executive RAM size
101      10,                        -- maximum # tasks
102      0,                         -- maximum # timers
103      0,                         -- maximum # semaphores
104      0,                         -- maximum # message queues
105      0,                         -- maximum # messages
106      0,                         -- maximum # partitions
107      0,                         -- maximum # regions
108      0,                         -- maximum # dp memory areas
109      0,                         -- maximum # periods
110      0,                         -- maximum # user extensions
111      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
112      50                         -- # ticks in a timeslice
113  );
114
115end SPTEST;
Note: See TracBrowser for help on using the repository browser.