source: rtems/c/src/ada-tests/samples/nsecs/nsecs.adb @ 110e1f1

4.104.115
Last change on this file since 110e1f1 was 42f07c5, checked in by Glenn Humphrey <glenn.humphrey@…>, on 10/25/07 at 19:51:06

2007-10-25 Glenn Humphrey <glenn.humphrey@…>

  • configure.ac, samples/Makefile.am: Added a test for Clock_Get_Uptime
  • samples/nsecs/.cvsignore, samples/nsecs/Makefile.am, samples/nsecs/config.h, samples/nsecs/nsecs.adb, samples/nsecs/nsecs.scn, samples/nsecs/sptest.adb, samples/nsecs/sptest.ads: New files.
  • Property mode set to 100644
File size: 998 bytes
Line 
1--
2--  MAIN / BODY
3--
4--  DESCRIPTION:
5--
6--  This is the entry point for Test Nsecs of the Sample Test Suite.
7--
8--  DEPENDENCIES:
9--
10-- 
11--
12--  COPYRIGHT (c) 1989-2007.
13--  On-Line Applications Research Corporation (OAR).
14--
15--  The license and distribution terms for this file may in
16--  the file LICENSE in this distribution or at
17--  http://www.rtems.com/license/LICENSE.
18--
19--  $Id$
20--
21
22with RTEMS;
23with SPTEST;
24with TEST_SUPPORT;
25
26procedure Nsecs is
27  INIT_ID : RTEMS.ID;
28  STATUS  : RTEMS.STATUS_CODES;
29begin
30
31   RTEMS.TASK_CREATE(
32      RTEMS.BUILD_NAME(  'I', 'N', 'I', 'T' ),
33      1,
34      RTEMS.MINIMUM_STACK_SIZE,
35      RTEMS.NO_PREEMPT,
36      RTEMS.DEFAULT_ATTRIBUTES,
37      INIT_ID,
38      STATUS
39   );
40   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
41
42   RTEMS.TASK_START(
43      INIT_ID,
44      SPTEST.INIT'ACCESS,
45      0,
46      STATUS
47   );
48   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
49
50   loop
51      delay 120.0;
52   end loop;
53
54end Nsecs;
55
Note: See TracBrowser for help on using the repository browser.