source: rtems/testsuites/ada/sptests/sp12/sp12.adb @ bc96f3b4

5
Last change on this file since bc96f3b4 was bc96f3b4, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 23, 2018 at 8:53:06 AM

ada: Introduce RTEMS.Size type

Some time ago the Classic API object size related parameters were
changed to use size_t. Reflect this in the Ada bindings.

Update #3082.

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[7f79b673]1--
2--  MAIN / BODY
3--
4--  DESCRIPTION:
5--
6--  This is the entry point for Test SP12 of the Single Processor Test Suite.
7--
8--  DEPENDENCIES:
9--
10-- 
11--
[3c4d8cd1]12--  COPYRIGHT (c) 1989-2011.
[7f79b673]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
[c499856]17--  http://www.rtems.org/license/LICENSE.
[7f79b673]18--
19
[e351c26a]20with Interfaces; use Interfaces;
[f2078ec]21with RTEMS;
[3c4d8cd1]22with RTEMS.TASKS;
[7f79b673]23with SPTEST;
[f2078ec]24with TEST_SUPPORT;
[bc96f3b4]25with Interfaces.C;
26use Interfaces.C;
[7f79b673]27
28procedure SP12 is
[f2078ec]29  INIT_ID : RTEMS.ID;
30  STATUS  : RTEMS.STATUS_CODES;
[7f79b673]31begin
32
[3c4d8cd1]33   RTEMS.TASKS.CREATE(
[f2078ec]34      RTEMS.BUILD_NAME(  'I', 'N', 'I', 'T' ),
35      1,
[e351c26a]36      RTEMS.MINIMUM_STACK_SIZE * 2,
[f2078ec]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
[3c4d8cd1]45   RTEMS.TASKS.START(
[f2078ec]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;
[7f79b673]56
57end SP12;
58
Note: See TracBrowser for help on using the repository browser.