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 /c/src/tests/samples/ticker/tasks.c | |
parent | Purged as many egcs references as possible. (diff) | |
download | rtems-df49c60c9671e4a28e636964d744c1f59fb6cb68.tar.bz2 |
Merged from 4.5.0-beta3a
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/samples/ticker/tasks.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/tests/samples/ticker/tasks.c b/c/src/tests/samples/ticker/tasks.c index b87a26cbbe..d539b967bd 100644 --- a/c/src/tests/samples/ticker/tasks.c +++ b/c/src/tests/samples/ticker/tasks.c @@ -18,6 +18,7 @@ */ #include "system.h" +#include <stdio.h> rtems_task Test_task( rtems_task_argument unused @@ -30,7 +31,7 @@ rtems_task Test_task( status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); task_index = task_number( tid ); - while( FOREVER ) { + for ( ; ; ) { status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); if ( time.second >= 35 ) { puts( "*** END OF CLOCK TICK TEST ***" ); @@ -38,6 +39,6 @@ rtems_task Test_task( } put_name( Task_name[ task_index ], FALSE ); print_time( " - rtems_clock_get - ", &time, "\n" ); - status = rtems_task_wake_after( task_index * 5 * TICKS_PER_SECOND ); + status = rtems_task_wake_after( task_index * 5 * get_ticks_per_second() ); } } |