2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>

* itrontask01/task1.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
This commit is contained in:
Joel Sherrill
2009-08-10 14:50:11 +00:00
parent 78076a2ce4
commit 1654d02d6f
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* itrontask01/task1.c: Convert calls to legacy routine rtems_clock_get(
RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
2009-04-03 Ralf Corsépius <ralf.corsepius@rtems.org> 2009-04-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* itronhello/Makefile.am, itronmbf01/Makefile.am, * itronhello/Makefile.am, itronmbf01/Makefile.am,

View File

@@ -36,8 +36,8 @@ void Task_2_through_4()
sprintf(name, "TA%d", tid_index); sprintf(name, "TA%d", tid_index);
while( FOREVER ) { while( FOREVER ) {
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); status = rtems_clock_get_tod( &time );
directive_failed( status, "rtems_clock_get" ); directive_failed( status, "rtems_clock_get_tod" );
if ( time.second >= 35 ) { if ( time.second >= 35 ) {
puts( "*** END OF ITRON TASK TEST 1 ***" ); puts( "*** END OF ITRON TASK TEST 1 ***" );
@@ -45,7 +45,7 @@ void Task_2_through_4()
} }
printf(name); printf(name);
print_time( " - rtems_clock_get - ", &time, "\n" ); print_time( " - rtems_clock_get_tod - ", &time, "\n" );
status = rtems_task_wake_after( tid_index * 5 * TICKS_PER_SECOND ); status = rtems_task_wake_after( tid_index * 5 * TICKS_PER_SECOND );
directive_failed( status, "rtems_task_wake_after" ); directive_failed( status, "rtems_task_wake_after" );