source: rtems/c/src/ada-tests/tmtests/tm29/tmtest.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.5 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 29 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--  The following is the name used for all periods created by this test.
31--
32
33   PERIOD_NAME : RTEMS.NAME;
34
35--
36--  The following is used to allow all tasks to create and start
37--  their period timers before the timer is started for timing
38--  the blocking case of RATE_MONOTONIC_PERIOD.
39--
40
41   TASK_COUNT  : RTEMS.UNSIGNED32;
42
43--
44--  The following variable is set to the execution time returned
45--  by the timer.
46--
47
48   END_TIME    : RTEMS.UNSIGNED32;
49
50--
51--  INIT
52--
53--  DESCRIPTION:
54--
55--  This RTEMS task initializes the application.  It also measures and
56--  reports the following directive execution times:
57--
58--    + RATE_MONOTONIC_CREATE
59--    + RATE_MONOTONIC_PERIOD the initial time
60--    + RATE_MONOTONIC_PERIOD for a period's status
61--    + RATE_MONOTONIC_CANCEL
62--    + RATE_MONOTONIC_DELETE of a cancelled period
63--    + RATE_MONOTONIC_DELETE of an active period
64--
65
66   procedure INIT (
67      ARGUMENT : in     RTEMS.TASK_ARGUMENT
68   );
69
70--
71--  TEST_TASK
72--
73--  DESCRIPTION:
74--
75--  The first of these RTEMS tasks starts the timer.  All of these
76--  tasks execute a blocking RATE_MONOTONIC_PERIOD.
77--
78
79   procedure TASKS (
80      ARGUMENT : in     RTEMS.TASK_ARGUMENT
81   );
82
83--
84--  TEST_TASK
85--
86--  DESCRIPTION:
87--
88--  This RTEMS task stops the timer and reports the execution
89--  time for a blocking RATE_MONOTONIC_PERIOD.
90--
91
92   procedure LOW_TASK (
93      ARGUMENT : in     RTEMS.TASK_ARGUMENT
94   );
95
96--
97--  This is the Initialization Tasks Table for this test.
98--
99
100   INITIALIZATION_TASKS : aliased RTEMS.INITIALIZATION_TASKS_TABLE( 1 .. 1 ) :=
101   (1=>
102     (
103       RTEMS.BUILD_NAME( 'U', 'I', '1', ' ' ),        -- task name
104       2048,                                          -- stack size
105       1,                                             -- priority
106       RTEMS.DEFAULT_ATTRIBUTES,                      -- attributes
107       TMTEST.INIT'ACCESS,                            -- entry point
108       RTEMS.NO_PREEMPT,                              -- initial mode
109       0                                              -- argument list
110     )
111   );
112
113--
114--  This is the Configuration Table for this test.
115--
116
117   CONFIGURATION : aliased RTEMS.CONFIGURATION_TABLE := (
118      RTEMS.NULL_ADDRESS,        -- will be replaced by BSP
119      256 * 1024,                -- executive RAM size
120      111,                       -- maximum # tasks
121      0,                         -- maximum # timers
122      0,                         -- maximum # semaphores
123      0,                         -- maximum # message queues
124      0,                         -- maximum # messages
125      0,                         -- maximum # partitions
126      0,                         -- maximum # regions
127      0,                         -- maximum # dp memory areas
128      111,                       -- maximum # periods
129      0,                         -- maximum # user extensions
130      RTEMS.MILLISECONDS_TO_MICROSECONDS(10), -- # us in a tick
131      0                          -- # ticks in a timeslice
132  );
133
134end TMTEST;
Note: See TracBrowser for help on using the repository browser.