source: rtems/c/src/ada-tests/samples/hello/sptest.ads @ d0f426a1

4.104.114.84.95
Last change on this file since d0f426a1 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: 2.5 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for the Hello World Test of the RTEMS
7--  Sample 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 RTEMS;
25
26package 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--  No Device Drivers for this test.
50--
51
52--
53--  This is the Initialization Tasks Table for this test.
54--
55
56   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
57   (1=>
58     (
59       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
60       2048,                                          -- stack size
61       1,                                             -- priority
62       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
63       SPTEST.INIT'ACCESS,                            -- entry point
64       RTEMS.NO_PREEMPT,                              -- initial mode
65       0                                              -- argument list
66     )
67   );
68
69--
70--  This is the Configuration Table for this test.
71--
72
73   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
74      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
75      64 * 1024,                 -- executive RAM size
76      10,                        -- maximum # tasks
77      0,                         -- maximum # timers
78      0,                         -- maximum # semaphores
79      0,                         -- maximum # message queues
80      0,                         -- maximum # messages
81      0,                         -- maximum # partitions
82      0,                         -- maximum # regions
83      0,                         -- maximum # dp memory areas
84      0,                         -- maximum # periods
85      0,                         -- maximum # user extensions
86      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
87      50                         -- # ticks in a timeslice
88  );
89
90end SPTEST;
Note: See TracBrowser for help on using the repository browser.