source: rtems/c/src/ada-tests/tmtests/tmck/tmtest.ads @ fff840e

4.104.114.84.95
Last change on this file since fff840e was b4be04e, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 20:24:11

Removed Configuration Table information.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Timer Check Test 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--  The following defines the number of iterations of each timed
46--  operation to perform.
47--
48
49   OPERATION_COUNT      : constant RTEMS.UNSIGNED32 := 100000;
50
51-- 
52--  The following array is used to determine how many times
53--  each time between 0 and 1000 microseconds was returned
54--  when simply starting and stopping the timer.
55
56   DISTRIBUTION : array ( RTEMS.UNSIGNED32 range 0 .. 10000 ) of RTEMS.UNSIGNED32;
57
58--
59--  INIT
60--
61--  DESCRIPTION:
62--
63--  This RTEMS task initializes the application.
64--
65
66   procedure INIT (
67      ARGUMENT : in     RTEMS.TASK_ARGUMENT
68   );
69
70--
71--  TASK_1
72--
73--  DESCRIPTION:
74--
75--  This RTEMS task invokes CHECK_READ_TIMER before demonstrating
76--  that increasing the order of magnitude of the number of loop
77--  iterations performed has a corresponding impact on the time
78--  reported by the timer driver.
79--
80
81   procedure TASK_1 (
82      ARGUMENT : in     RTEMS.TASK_ARGUMENT
83   );
84
85--
86--  CHECK_READ_TIMER
87--
88--  DESCRIPTION:
89--
90--  This subprogram is used to determine the overhead associated
91--  with starting and stopping the timer.  It is also useful
92--  for determining if unexpected times will be reported.
93--
94
95   procedure CHECK_READ_TIMER;
96
97end TMTEST;
Note: See TracBrowser for help on using the repository browser.