summaryrefslogtreecommitdiffstats
path: root/testsuites/samples
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-10 14:54:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-10 14:54:31 +0000
commitfa342bc7015780de21b09b043e8d40c5b3648bb3 (patch)
tree2512f370b25f780d05df7983cf70f29e17646d97 /testsuites/samples
parent2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-fa342bc7015780de21b09b043e8d40c5b3648bb3.tar.bz2
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* ticker/tasks.c: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
Diffstat (limited to 'testsuites/samples')
-rw-r--r--testsuites/samples/ChangeLog5
-rw-r--r--testsuites/samples/ticker/tasks.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog
index 6f1682ef45..44dc8fcf6e 100644
--- a/testsuites/samples/ChangeLog
+++ b/testsuites/samples/ChangeLog
@@ -1,5 +1,10 @@
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * ticker/tasks.c: Convert calls to legacy routine rtems_clock_get(
+ RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
+
+2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* fileio/system.h: Switch to unified work area.
2009-06-11 Roxana Leontie <roxana.leontie@gmail.com>
diff --git a/testsuites/samples/ticker/tasks.c b/testsuites/samples/ticker/tasks.c
index d9c3791185..fabdbf7218 100644
--- a/testsuites/samples/ticker/tasks.c
+++ b/testsuites/samples/ticker/tasks.c
@@ -31,13 +31,13 @@ rtems_task Test_task(
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
task_index = task_number( tid );
for ( ; ; ) {
- status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
+ status = rtems_clock_get_tod( &time );
if ( time.second >= 35 ) {
puts( "*** END OF CLOCK TICK TEST ***" );
rtems_test_exit( 0 );
}
put_name( Task_name[ task_index ], FALSE );
- print_time( " - rtems_clock_get - ", &time, "\n" );
+ print_time( " - rtems_clock_get_tod - ", &time, "\n" );
status = rtems_task_wake_after( task_index * 5 * get_ticks_per_second() );
}
}