Changeset 1875546 in rtems


Ignore:
Timestamp:
Aug 10, 2009, 4:04:57 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
de90869d
Parents:
05b9f81
Message:

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

  • cpuuse/task1.c, termios/init.c: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
Location:
testsuites/libtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r05b9f81 r1875546  
     12009-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * cpuuse/task1.c, termios/init.c: Convert calls to legacy routine
     4        rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
     5
    162009-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/libtests/cpuuse/task1.c

    r05b9f81 r1875546  
    4141  directive_failed( status, "rtems_task_suspend of TA3" );
    4242
    43   status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &start_time );
    44   directive_failed( status, "rtems_clock_get" );
     43  status = rtems_clock_get_seconds_since_epoch( &start_time );
     44  directive_failed( status, "rtems_clock_get_seconds_since_epoch" );
    4545
    4646  puts( "TA1 - killing time" );
    4747
    4848  for ( ; ; ) {
    49     status = rtems_clock_get( RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH, &end_time );
    50     directive_failed( status, "rtems_clock_get" );
     49    status = rtems_clock_get_seconds_since_epoch( &end_time );
     50    directive_failed( status, "rtems_clock_get_seconds_since_epoch" );
    5151
    5252    if ( end_time > (start_time + 2) )
  • testsuites/libtests/termios/init.c

    r05b9f81 r1875546  
    641641  printf( "Raw input test with VMIN=%d  VTIME=%d\n", vmin, vtime );
    642642
    643   rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond );
     643  ticksPerSecond = rtems_clock_get_ticks_per_second();
    644644  if ( tcgetattr( fileno ( stdin ), &old ) < 0 ) {
    645645    perror( "do_raw_input(): tcgetattr() failed" );
     
    657657
    658658  do {
    659     rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then );
     659    then = rtems_clock_get_ticks_since_boot();
    660660    count = 0;
    661661    for(;;) {
     
    669669        break;
    670670    }
    671     rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now );
     671    now = rtems_clock_get_ticks_since_boot();
    672672    msec = (now - then) * 1000 / ticksPerSecond;
    673673    printf( "Count:%-10lu  Interval:%3u.%3.3d  Char:",
Note: See TracChangeset for help on using the changeset viewer.