Changeset b784b0a in examples-v2


Ignore:
Timestamp:
Jun 13, 2011, 2:19:05 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 286403d7a3d0e521179e677c0d2fd7549c9ceab4
Children:
e082954
Parents:
1547d8a
Message:

2011-06-13 Joel Sherrill <joel.sherrill@…>

  • low_ticker/init.c, ticker/init.c: Eliminate use of obsolete rtems_clock_get().
Location:
ticker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ticker/ChangeLog

    r1547d8a rb784b0a  
     12011-06-13      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * low_ticker/init.c, ticker/init.c: Eliminate use of obsolete
     4        rtems_clock_get().
     5
    162011-04-01      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • ticker/low_ticker/init.c

    r1547d8a rb784b0a  
    2828    }
    2929    printk( "TA%d %s%02d:%02d:%02d   %02d/%02d/%04d\n",
    30       task_index, " - rtems_clock_get - ",
     30      task_index, " - rtems_clock_get_tod - ",
    3131      (int) time.hour, (int) time.minute, (int) time.second,
    3232      (int) time.month, (int) time.day, (int) time.year );
    3333    status = rtems_task_wake_after(
    34       task_index * 5 * rtems_clock_get_ticks_per_second() );
     34      task_index * 5 * rtems_clock_get_ticks_per_second()
     35    );
    3536  }
    3637}
  • ticker/ticker/init.c

    r1547d8a rb784b0a  
    3232  task_index = task_number( tid );
    3333  for ( ; ; ) {
    34     status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
     34    status = rtems_clock_get_tod( &time );
    3535    if ( time.second >= 35 ) {
    3636      puts( "*** END OF CLOCK TICK TEST ***" );
     
    3838    }
    3939    put_name( Task_name[ task_index ], FALSE );
    40     print_time( " - rtems_clock_get - ", &time, "\n" );
    41     status = rtems_task_wake_after( task_index * 5 * get_ticks_per_second() );
     40    print_time( " - rtems_clock_get_tod - ", &time, "\n" );
     41    status = rtems_task_wake_after(
     42      task_index * 5 * rtems_clock_get_ticks_per_second()
     43    );
    4244  }
    4345}
Note: See TracChangeset for help on using the changeset viewer.