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

* cpuuse/task1.c, termios/init.c: Convert calls to legacy routine
	rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
This commit is contained in:
Joel Sherrill
2009-08-10 16:04:57 +00:00
parent 05b9f81761
commit 1875546d63
3 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/task1.c, termios/init.c: Convert calls to legacy routine
rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/task1.c, cpuuse/tswitch.c, malloctest/task1.c,

View File

@@ -40,14 +40,14 @@ rtems_task Task_1(
status = rtems_task_suspend( Task_id[ 3 ] );
directive_failed( status, "rtems_task_suspend of TA3" );
status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start_time );
directive_failed( status, "rtems_clock_get" );
status = rtems_clock_get_seconds_since_epoch( &start_time );
directive_failed( status, "rtems_clock_get_seconds_since_epoch" );
puts( "TA1 - killing time" );
for ( ; ; ) {
status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end_time );
directive_failed( status, "rtems_clock_get" );
status = rtems_clock_get_seconds_since_epoch( &end_time );
directive_failed( status, "rtems_clock_get_seconds_since_epoch" );
if ( end_time > (start_time + 2) )
break;

View File

@@ -640,7 +640,7 @@ void do_raw_input( int vmin, int vtime )
printf( "Raw input test with VMIN=%d VTIME=%d\n", vmin, vtime );
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond );
ticksPerSecond = rtems_clock_get_ticks_per_second();
if ( tcgetattr( fileno ( stdin ), &old ) < 0 ) {
perror( "do_raw_input(): tcgetattr() failed" );
return;
@@ -656,7 +656,7 @@ void do_raw_input( int vmin, int vtime )
}
do {
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then );
then = rtems_clock_get_ticks_since_boot();
count = 0;
for(;;) {
nread = read( fileno( stdin ), cbuf, sizeof cbuf );
@@ -668,7 +668,7 @@ void do_raw_input( int vmin, int vtime )
if( nread != 0 )
break;
}
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now );
now = rtems_clock_get_ticks_since_boot();
msec = (now - then) * 1000 / ticksPerSecond;
printf( "Count:%-10lu Interval:%3u.%3.3d Char:",
count, msec / 1000, msec % 1000 );