source: rtems/c/src/ada-tests/tmtests/tm29/tmtest.ads @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.9 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-2011.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.org/license/LICENSE.
19--
20
21with RTEMS;
22with RTEMS.TASKS;
23
24package TMTEST is
25
26--
27--  The following is the name used for all periods created by this test.
28--
29
30   PERIOD_NAME : RTEMS.NAME;
31
32--
33--  The following is used to allow all tasks to create and start
34--  their period timers before the timer is started for timing
35--  the blocking case of RATE_MONOTONIC_PERIOD.
36--
37
38   TASK_COUNT  : RTEMS.UNSIGNED32;
39
40--
41--  The following variable is set to the execution time returned
42--  by the timer.
43--
44
45   END_TIME    : RTEMS.UNSIGNED32;
46
47--
48--  INIT
49--
50--  DESCRIPTION:
51--
52--  This RTEMS task initializes the application.  It also measures and
53--  reports the following directive execution times:
54--
55--    + RATE_MONOTONIC_CREATE
56--    + RATE_MONOTONIC_PERIOD the initial time
57--    + RATE_MONOTONIC_PERIOD for a period's status
58--    + RATE_MONOTONIC_CANCEL
59--    + RATE_MONOTONIC_DELETE of a cancelled period
60--    + RATE_MONOTONIC_DELETE of an active period
61--
62
63   procedure INIT (
64      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
65   );
66   pragma Convention (C, INIT);
67
68--
69--  TASKS
70--
71--  DESCRIPTION:
72--
73--  The first of these RTEMS tasks starts the timer.  All of these
74--  tasks execute a blocking RATE_MONOTONIC_PERIOD.
75--
76
77   procedure TASKS (
78      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
79   );
80   pragma Convention (C, TASKS);
81
82--
83--  LOW_TASK
84--
85--  DESCRIPTION:
86--
87--  This RTEMS task stops the timer and reports the execution
88--  time for a blocking RATE_MONOTONIC_PERIOD.
89--
90
91   procedure LOW_TASK (
92      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
93   );
94   pragma Convention (C, LOW_TASK);
95
96end TMTEST;
Note: See TracBrowser for help on using the repository browser.