mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
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(..).
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
@@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user