source: rtems/testsuites/ada/sptests/sp19/sptest.ads @ 6899a8d

5
Last change on this file since 6899a8d was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on 10/12/17 at 08:00:10

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1--
2--  SPTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 19 of the RTEMS
7--  Single Processor 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 SPTEST is
25
26--
27--  These arrays contain the IDs and NAMEs of all RTEMS tasks created
28--  by this test.
29--
30
31   TASK_ID   : array ( RTEMS.UNSIGNED32 range 1 .. 6 ) of RTEMS.ID;
32   TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 6 ) of RTEMS.NAME;
33
34--
35--  This array contains the floating point factors used by the
36--  floating point tasks in this test.
37--
38
39   FP_FACTORS : array ( RTEMS.UNSIGNED32 range 0 .. 9 ) of FLOAT;
40
41--
42--  This array contains the integer factors used by the
43--  integer tasks in this test.
44--
45
46   INTEGER_FACTORS : array ( RTEMS.UNSIGNED32 range 0 .. 9 ) of
47      RTEMS.UNSIGNED32;
48
49--
50--  INIT
51--
52--  DESCRIPTION:
53--
54--  This RTEMS task initializes the application.
55--
56
57   procedure INIT (
58      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
59   );
60   pragma Convention (C, INIT);
61
62--
63--  FIRST_FP_TASK
64--
65--  DESCRIPTION:
66--
67--  This RTEMS task tests the restart and deletion of floating point tasks.
68--
69
70   procedure FIRST_FP_TASK (
71      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
72   );
73   pragma Convention (C, FIRST_FP_TASK);
74
75--
76--  FP_TASK
77--
78--  DESCRIPTION:
79--
80--  This RTEMS task tests the basic capabilities of a floating point
81--  task.
82--
83
84   procedure FP_TASK (
85      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
86   );
87   pragma Convention (C, FP_TASK);
88
89--
90--  TASK_1
91--
92--  DESCRIPTION:
93--
94--  This RTEMS task provides a non-floating point task to test
95--  that an application can utilize a mixture of floating point
96--  and non-floating point tasks.
97--
98
99   procedure TASK_1 (
100      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
101   );
102   pragma Convention (C, TASK_1);
103
104--
105--  Add_Float
106--
107--  DESCRIPTION:
108--
109--  This method ensures the compilers thinks we are using the variables.
110--
111
112   function Add_Float(
113     n      : in Float;
114     factor : in Float
115   ) return Float;
116   pragma Interface (C, Add_Float);
117   pragma Interface_Name (Add_Float, "add_float");
118
119end SPTEST;
Note: See TracBrowser for help on using the repository browser.