source: rtems/c/src/ada-tests/tmtests/tm01/tmtest.ads @ 43437e97

4.104.114.84.95
Last change on this file since 43437e97 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.8 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 1 of the RTEMS
7--  Timing 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 TIMER_DRIVER;
25with RTEMS;
26
27package TMTEST 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--  The following variable is set to the execution time returned
39--  by the timer.
40--
41
42   END_TIME  : RTEMS.UNSIGNED32;
43
44--
45--  INIT
46--
47--  DESCRIPTION:
48--
49--  This RTEMS task initializes the application.
50--
51
52   procedure INIT (
53      ARGUMENT : in     RTEMS.TASK_ARGUMENT
54   );
55
56--
57--  TASK_1
58--
59--  DESCRIPTION:
60--
61--  This RTEMS task performs the all of the timing operations in this test.
62--
63
64   procedure TASK_1 (
65      ARGUMENT : in     RTEMS.TASK_ARGUMENT
66   );
67
68--
69--  This is the Initialization Tasks Table for this test.
70--
71
72   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
73   (1=>
74     (
75       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
76       2048,                                          -- stack size
77       1,                                             -- priority
78       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
79       TMTEST.INIT'ACCESS,                            -- entry point
80       RTEMS.NO_PREEMPT,                              -- initial mode
81       0                                              -- argument list
82     )
83   );
84
85--
86--  This is the Configuration Table for this test.
87--
88
89   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
90      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
91      256 * 1024,                -- executive RAM size
92      2,                         -- maximum # tasks
93      0,                         -- maximum # timers
94      1,                         -- maximum # semaphores
95      0,                         -- maximum # message queues
96      0,                         -- maximum # messages
97      0,                         -- maximum # partitions
98      0,                         -- maximum # regions
99      0,                         -- maximum # dp memory areas
100      0,                         -- maximum # periods
101      0,                         -- maximum # user extensions
102      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
103      0                          -- # ticks in a timeslice
104  );
105
106end TMTEST;
Note: See TracBrowser for help on using the repository browser.