From df49c60c9671e4a28e636964d744c1f59fb6cb68 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 12 Jun 2000 15:00:15 +0000 Subject: Merged from 4.5.0-beta3a --- testsuites/samples/ticker/init.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'testsuites/samples/ticker/init.c') 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 + +/* + * 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', ' ' ); -- cgit v1.2.3