source: rtems/c/src/ada-tests/samples/base_sp/base_sp.adb @ edeed26

4.104.114.84.95
Last change on this file since edeed26 was 430d81a, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 22:57:58

new file

  • Property mode set to 100644
File size: 1.1 KB
Line 
1--
2--  MAIN / BODY
3--
4--  DESCRIPTION:
5--
6--  This is the entry point for Base Single Process Example of the
7--  Sample 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;
25with SPTEST;
26with TEST_SUPPORT;
27
28procedure Base_SP is
29  INIT_ID : RTEMS.ID;
30  STATUS  : RTEMS.STATUS_CODES;
31begin
32
33   RTEMS.TASK_CREATE(
34      RTEMS.BUILD_NAME(  'I', 'N', 'I', 'T' ),
35      1,
36      RTEMS.MINIMUM_STACK_SIZE,
37      RTEMS.NO_PREEMPT,
38      RTEMS.DEFAULT_ATTRIBUTES,
39      INIT_ID,
40      STATUS
41   );
42   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
43
44
45   RTEMS.TASK_START(
46      INIT_ID,
47      SPTEST.INIT'ACCESS,
48      0,
49      STATUS
50   );
51   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
52
53   loop
54      delay 120.0;
55   end loop;
56
57end Base_SP;
58
Note: See TracBrowser for help on using the repository browser.