diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-13 14:19:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-13 14:19:05 +0000 |
commit | b784b0a8f5db64cd2c30bef4ce00baf8f19ef0e0 (patch) | |
tree | bd72e28196ec5ae37a93426c10f7bc7cec052b0f /ticker | |
parent | 1547d8a41b5a84bd353b709061cb9bdb51399e38 (diff) |
2011-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* low_ticker/init.c, ticker/init.c: Eliminate use of obsolete
rtems_clock_get().
Diffstat (limited to 'ticker')
-rw-r--r-- | ticker/ChangeLog | 5 | ||||
-rw-r--r-- | ticker/low_ticker/init.c | 5 | ||||
-rw-r--r-- | ticker/ticker/init.c | 8 |
3 files changed, 13 insertions, 5 deletions
diff --git a/ticker/ChangeLog b/ticker/ChangeLog index d6337e8..87b4097 100644 --- a/ticker/ChangeLog +++ b/ticker/ChangeLog @@ -1,3 +1,8 @@ +2011-06-13 Joel Sherrill <joel.sherrill@oarcorp.com> + + * low_ticker/init.c, ticker/init.c: Eliminate use of obsolete + rtems_clock_get(). + 2011-04-01 Joel Sherrill <joel.sherrill@oarcorp.com> * Makefile: Update to account for movement of .cfg files. diff --git a/ticker/low_ticker/init.c b/ticker/low_ticker/init.c index 27e27b2..cf8f691 100644 --- a/ticker/low_ticker/init.c +++ b/ticker/low_ticker/init.c @@ -27,11 +27,12 @@ rtems_task Test_task( rtems_shutdown_executive( 0 ); } printk( "TA%d %s%02d:%02d:%02d %02d/%02d/%04d\n", - task_index, " - rtems_clock_get - ", + task_index, " - rtems_clock_get_tod - ", (int) time.hour, (int) time.minute, (int) time.second, (int) time.month, (int) time.day, (int) time.year ); status = rtems_task_wake_after( - task_index * 5 * rtems_clock_get_ticks_per_second() ); + task_index * 5 * rtems_clock_get_ticks_per_second() + ); } } diff --git a/ticker/ticker/init.c b/ticker/ticker/init.c index 9ce2abf..e474ff9 100644 --- a/ticker/ticker/init.c +++ b/ticker/ticker/init.c @@ -31,14 +31,16 @@ 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 ***" ); exit( 0 ); } put_name( Task_name[ task_index ], FALSE ); - print_time( " - rtems_clock_get - ", &time, "\n" ); - status = rtems_task_wake_after( task_index * 5 * get_ticks_per_second() ); + print_time( " - rtems_clock_get_tod - ", &time, "\n" ); + status = rtems_task_wake_after( + task_index * 5 * rtems_clock_get_ticks_per_second() + ); } } |