diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 15:00:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 15:00:15 +0000 |
commit | df49c60c9671e4a28e636964d744c1f59fb6cb68 (patch) | |
tree | eabd85e189514ad412a35414ba5d483dcda3ef1f /testsuites/samples/ticker/init.c | |
parent | Purged as many egcs references as possible. (diff) | |
download | rtems-df49c60c9671e4a28e636964d744c1f59fb6cb68.tar.bz2 |
Merged from 4.5.0-beta3a
Diffstat (limited to 'testsuites/samples/ticker/init.c')
-rw-r--r-- | testsuites/samples/ticker/init.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/testsuites/samples/ticker/init.c b/testsuites/samples/ticker/init.c index cd8c688887..36f3fd58f6 100644 --- a/testsuites/samples/ticker/init.c +++ b/testsuites/samples/ticker/init.c @@ -20,8 +20,16 @@ * $Id$ */ -#define TEST_INIT +#define CONFIGURE_INIT #include "system.h" +#include <stdio.h> + +/* + * Keep the names and IDs in global variables so another task can use them. + */ + +rtems_id Task_id[ 4 ]; /* array of task ids */ +rtems_name Task_name[ 4 ]; /* array of task names */ rtems_task Init( rtems_task_argument argument @@ -32,7 +40,14 @@ rtems_task Init( puts( "\n\n*** CLOCK TICK TEST ***" ); - build_time( &time, 12, 31, 1988, 9, 0, 0, 0 ); + time.year = 1988; + time.month = 12; + time.day = 31; + time.hour = 9; + time.minute = 0; + time.second = 0; + time.ticks = 0; + status = rtems_clock_set( &time ); Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); |