1 | -- |
---|
2 | -- SPTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 24 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.com/license/LICENSE. |
---|
19 | -- |
---|
20 | |
---|
21 | with RTEMS; |
---|
22 | with RTEMS.TASKS; |
---|
23 | |
---|
24 | package 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 ( 1 .. 3 ) of RTEMS.ID; |
---|
32 | TASK_NAME : array ( 1 .. 3 ) of RTEMS.NAME; |
---|
33 | |
---|
34 | -- |
---|
35 | -- These arrays contain the IDs and NAMEs of all RTEMS timers created |
---|
36 | -- by this test. |
---|
37 | -- |
---|
38 | |
---|
39 | TIMER_ID : array ( 1 .. 3 ) of RTEMS.ID; |
---|
40 | TIMER_NAME : array ( 1 .. 3 ) of RTEMS.NAME; |
---|
41 | |
---|
42 | -- |
---|
43 | -- INIT |
---|
44 | -- |
---|
45 | -- DESCRIPTION: |
---|
46 | -- |
---|
47 | -- This RTEMS task initializes the application. |
---|
48 | -- |
---|
49 | |
---|
50 | procedure INIT ( |
---|
51 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
52 | ); |
---|
53 | pragma Convention (C, INIT); |
---|
54 | |
---|
55 | -- |
---|
56 | -- RESUME_TASK |
---|
57 | -- |
---|
58 | -- DESCRIPTION: |
---|
59 | -- |
---|
60 | -- This subprogram is scheduled as a timer service routine. When |
---|
61 | -- it fires it resumes the task which is mapped to this timer. |
---|
62 | -- |
---|
63 | |
---|
64 | procedure RESUME_TASK ( |
---|
65 | TIMER_ID : in RTEMS.ID; |
---|
66 | IGNORED_ADDRESS : in RTEMS.ADDRESS |
---|
67 | ); |
---|
68 | pragma Convention (C, RESUME_TASK); |
---|
69 | |
---|
70 | -- |
---|
71 | -- TASK_1_THROUGH_3 |
---|
72 | -- |
---|
73 | -- DESCRIPTION: |
---|
74 | -- |
---|
75 | -- This RTEMS task tests the Timer Manager. |
---|
76 | -- |
---|
77 | |
---|
78 | procedure TASK_1_THROUGH_3 ( |
---|
79 | ARGUMENT : in RTEMS.TASKS.ARGUMENT |
---|
80 | ); |
---|
81 | pragma Convention (C, TASK_1_THROUGH_3); |
---|
82 | |
---|
83 | end SPTEST; |
---|