diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-06-03 22:57:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-06-03 22:57:58 +0000 |
commit | 430d81a28cfbda081ce97e13c01e56e35460f18e (patch) | |
tree | 99379140881a757b3f64211fceabd6b5e4f90acc /c/src/ada-tests/samples/ticker/ticker.adb | |
parent | Removed Configuration Information. (diff) | |
download | rtems-430d81a28cfbda081ce97e13c01e56e35460f18e.tar.bz2 |
new file
Diffstat (limited to '')
-rw-r--r-- | c/src/ada-tests/samples/ticker/ticker.adb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/c/src/ada-tests/samples/ticker/ticker.adb b/c/src/ada-tests/samples/ticker/ticker.adb new file mode 100644 index 0000000000..dff51ce83b --- /dev/null +++ b/c/src/ada-tests/samples/ticker/ticker.adb @@ -0,0 +1,57 @@ +-- +-- MAIN / BODY +-- +-- DESCRIPTION: +-- +-- This is the entry point for Test Ticker of the Sample Test Suite. +-- +-- DEPENDENCIES: +-- +-- +-- +-- COPYRIGHT (c) 1989-1997. +-- On-Line Applications Research Corporation (OAR). +-- Copyright assigned to U.S. Government, 1994. +-- +-- The license and distribution terms for this file may in +-- the file LICENSE in this distribution or at +-- http://www.OARcorp.com/rtems/license.html. +-- +-- $Id$ +-- + +with RTEMS; +with SPTEST; +with TEST_SUPPORT; + +procedure Ticker is + INIT_ID : RTEMS.ID; + STATUS : RTEMS.STATUS_CODES; +begin + + RTEMS.TASK_CREATE( + RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ), + 1, + RTEMS.MINIMUM_STACK_SIZE, + RTEMS.NO_PREEMPT, + RTEMS.DEFAULT_ATTRIBUTES, + INIT_ID, + STATUS + ); + TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" ); + + + RTEMS.TASK_START( + INIT_ID, + SPTEST.INIT'ACCESS, + 0, + STATUS + ); + TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" ); + + loop + delay 120.0; + end loop; + +end Ticker; + |