source: rtems/c/src/ada-tests/sptests/sp14/sptest.ads @ 110e1f1

4.104.115
Last change on this file since 110e1f1 was d43dd82, checked in by Joel Sherrill <joel.sherrill@…>, on 03/11/08 at 20:12:52

2008-03-11 Joel Sherrill <joel.sherrill@…>

  • mptests/mp01/mptest.ads, mptests/mp02/mptest.ads, mptests/mp03/mptest.ads, mptests/mp04/mptest.ads, mptests/mp05/mptest.ads, mptests/mp06/mptest.ads, mptests/mp07/mptest.ads, mptests/mp08/mptest.ads, mptests/mp09/mptest.ads, mptests/mp10/mptest.ads, mptests/mp11/mptest.ads, mptests/mp12/mptest.ads, mptests/mp13/mptest.ads, mptests/mp14/mptest.ads, samples/base_mp/mptest.ads, samples/base_sp/sptest.ads, samples/hello/sptest.ads, samples/nsecs/sptest.ads, samples/ticker/sptest.ads, sptests/sp01/sptest.ads, sptests/sp02/sptest.ads, sptests/sp03/sptest.ads, sptests/sp04/sptest.ads, sptests/sp05/sptest.ads, sptests/sp06/sptest.ads, sptests/sp07/sptest.ads, sptests/sp08/sptest.ads, sptests/sp09/sptest.ads, sptests/sp11/sptest.ads, sptests/sp12/sptest.ads, sptests/sp13/sptest.ads, sptests/sp14/sptest.ads, sptests/sp15/sptest.ads, sptests/sp16/sptest.ads, sptests/sp17/sptest.ads, sptests/sp19/sptest.ads, sptests/sp20/sptest.ads, sptests/sp22/sptest.ads, sptests/sp23/sptest.ads, sptests/sp24/sptest.ads, sptests/sp25/sptest.ads, sptests/spname01/spname01.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/tmtest.ads, tmtests/tm03/tmtest.ads, tmtests/tm04/tmtest.ads, tmtests/tm05/tmtest.ads, tmtests/tm06/tmtest.ads, tmtests/tm07/tmtest.ads, tmtests/tm08/tmtest.ads, tmtests/tm09/tmtest.ads, tmtests/tm10/tmtest.ads, tmtests/tm11/tmtest.ads, tmtests/tm12/tmtest.ads, tmtests/tm13/tmtest.ads, tmtests/tm14/tmtest.ads, tmtests/tm15/tmtest.ads, tmtests/tm16/tmtest.ads, tmtests/tm17/tmtest.ads, tmtests/tm18/tmtest.ads, tmtests/tm19/tmtest.ads, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/tmtest.ads, tmtests/tm22/tmtest.ads, tmtests/tm23/tmtest.ads, tmtests/tm24/tmtest.ads, tmtests/tm25/tmtest.ads, tmtests/tm28/tmtest.ads, tmtests/tm29/tmtest.ads, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/tmtest.ads: Added pragma Convention C as required by gcc > 4.3.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 14 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--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.com/license/LICENSE.
19--
20--  $Id$
21--
22
23with RTEMS;
24
25package SPTEST is
26
27--
28--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
29--  by this test.
30--
31
32   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
33   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
34
35--
36--  These arrays contain the IDs and NAMEs of all RTEMS timers created
37--  by this test.
38--
39
40   TIMER_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.ID;
41   TIMER_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 2 ) of RTEMS.NAME;
42
43--
44--  SIGNAL_SENT is set to TRUE to indicate that a signal set has
45--  been sent from an ISR to the executing task.
46--
47
48   SIGNAL_SENT : BOOLEAN;
49   pragma volatile( SIGNAL_SENT );
50
51--
52--  These hold the arguments passed to the timer service routine.
53--
54
55   TIMER_GOT_THIS_ID      : RTEMS.ID;
56   pragma volatile( TIMER_GOT_THIS_ID );
57
58   TIMER_GOT_THIS_POINTER : RTEMS.ADDRESS;
59   pragma volatile( TIMER_GOT_THIS_POINTER );
60
61--
62--  ASR_FIRED is set to TRUE to indicate that the ASR has executed
63--  and was passed the correct signal set.
64--
65
66   ASR_FIRED : BOOLEAN;
67   pragma volatile( ASR_FIRED );
68
69--
70--  INIT
71--
72--  DESCRIPTION:
73--
74--  This RTEMS task initializes the application.
75--
76
77   procedure INIT (
78      ARGUMENT : in     RTEMS.TASK_ARGUMENT
79   );
80   pragma Convention (C, INIT);
81
82--
83--  SIGNAL_3_TO_TASK_1
84--
85--  DESCRIPTION:
86--
87--  This subprogram sends signal 3 to TASK_1.
88--
89
90   procedure SIGNAL_3_TO_TASK_1 (
91      ID      : in     RTEMS.ID;
92      POINTER : in     RTEMS.ADDRESS
93   );
94   pragma Convention (C, SIGNAL_3_TO_TASK_1);
95
96--
97--  PROCESS_ASR
98--
99--  DESCRIPTION:
100--
101--  This subprogram is an ASR for TASK_1.
102--
103
104   procedure PROCESS_ASR (
105      THE_SIGNAL_SET : in     RTEMS.SIGNAL_SET
106   );
107   pragma Convention (C, PROCESS_ASR);
108
109--
110--  TASK_1
111--
112--  DESCRIPTION:
113--
114--  This RTEMS task tests the Signal Manager.
115--
116
117   procedure TASK_1 (
118      ARGUMENT : in     RTEMS.TASK_ARGUMENT
119   );
120   pragma Convention (C, TASK_1);
121
122--
123--  TASK_2
124--
125--  DESCRIPTION:
126--
127--  This RTEMS task tests the Signal Manager.
128--
129
130   procedure TASK_2 (
131      ARGUMENT : in     RTEMS.TASK_ARGUMENT
132   );
133   pragma Convention (C, TASK_2);
134
135end SPTEST;
Note: See TracBrowser for help on using the repository browser.