source: rtems/c/src/ada-tests/sptests/sp17/sptest.ads @ d0d73ec

4.104.114.84.95
Last change on this file since d0d73ec was 91c78ffd, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 3, 1997 at 6:28:23 PM

Changed from RTEMS.Boolean to Standard.Boolean to avoid problems.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 17 of the RTEMS
7--  Single Processor 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--  The following is set to TRUE by TASK_2 when it preempts TASK_1.
38--
39
40   TASK_2_PREEMPTED : STANDARD.BOOLEAN;
41
42--
43--  INIT
44--
45--  DESCRIPTION:
46--
47--  This RTEMS task initializes the application.
48--
49
50   procedure INIT (
51      ARGUMENT : in     RTEMS.TASK_ARGUMENT
52   );
53
54--
55--  PROCESS_ASR
56--
57--  DESCRIPTION:
58--
59--  This subprogram is the ASR for TASK_1.
60--
61
62   procedure PROCESS_ASR (
63      SIGNALS : in     RTEMS.SIGNAL_SET
64   );
65
66--
67--  TASK_1
68--
69--  DESCRIPTION:
70--
71--  This RTEMS task tests that when the transfer from the task
72--  to the ASR (and vice-versa) is performed, that the new mode
73--  is taken into account.  If this occurs, then TASK_2 will be
74--  able to preempt upon completion of the ASR of TASK_1.
75--
76
77   procedure TASK_1 (
78      ARGUMENT : in     RTEMS.TASK_ARGUMENT
79   );
80
81--
82--  TASK_2
83--
84--  DESCRIPTION:
85--
86--  This RTEMS task is designed to preempt TASK_1.
87--
88
89   procedure TASK_2 (
90      ARGUMENT : in     RTEMS.TASK_ARGUMENT
91   );
92
93end SPTEST;
Note: See TracBrowser for help on using the repository browser.