source: rtems/c/src/ada-tests/sptests/sp20/sp20.adb @ 1bce637

4.104.114.84.95
Last change on this file since 1bce637 was d6a9988, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 19:18:15

Changed mode and priority of initialization task.

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[7f79b673]1--
2--  MAIN / BODY
3--
4--  DESCRIPTION:
5--
6--  This is the entry point for Test SP20 of the Single Processor Test Suite.
7--
8--  DEPENDENCIES:
9--
10-- 
11--
12--  COPYRIGHT (c) 1989-1997.
13--  On-Line Applications Research Corporation (OAR).
14--  Copyright assigned to U.S. Government, 1994.
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.OARcorp.com/rtems/license.html.
19--
20--  $Id$
21--
22
[f2078ec]23with RTEMS;
[7f79b673]24with SPTEST;
[f2078ec]25with TEST_SUPPORT;
[7f79b673]26
27procedure SP20 is
[f2078ec]28  INIT_ID : RTEMS.ID;
29  STATUS  : RTEMS.STATUS_CODES;
[7f79b673]30begin
31
[f2078ec]32   RTEMS.TASK_CREATE(
33      RTEMS.BUILD_NAME(  'I', 'N', 'I', 'T' ),
[d6a9988]34      10,
[f2078ec]35      RTEMS.MINIMUM_STACK_SIZE,
[d6a9988]36      RTEMS.DEFAULT_MODES,
[f2078ec]37      RTEMS.DEFAULT_ATTRIBUTES,
38      INIT_ID,
39      STATUS
40   );
41   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
42
43   RTEMS.TASK_START(
44      INIT_ID,
45      SPTEST.INIT'ACCESS,
46      0,
47      STATUS
48   );
49   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
50
51   loop
52      delay 120.0;
53   end loop;
[7f79b673]54
55end SP20;
56
Note: See TracBrowser for help on using the repository browser.