Changeset 8c84731 in rtems


Ignore:
Timestamp:
Aug 31, 2008, 4:53:16 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
a5cd2271
Parents:
7d6a5e2
Message:

2008-08-31 Joel Sherrill <joel.sherrill@…>

  • timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
Location:
c/src/lib/libcpu/bfin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/bfin/ChangeLog

    r7d6a5e2 r8c84731  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c: Rename timer driver methods to follow RTEMS
     4        programming conventions.
     5
    162008-08-18      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libcpu/bfin/timer/timer.c

    r7d6a5e2 r8c84731  
    33 *  This file manages the benchmark timer used by the RTEMS Timing Test
    44 *  Suite.  Each measured time period is demarcated by calls to
    5  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    6  *  the number of microseconds since Timer_initialize() exitted.
     5 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     6 *  the number of microseconds since benchmark_timer_initialize() exitted.
    77 * 
    88 *  Copyright (c) 2006 by Atos Automacao Industrial Ltda.
     
    2323
    2424uint32_t         Timer_interrupts;
    25 rtems_boolean Timer_driver_Find_average_overhead;
     25rtems_boolean benchmark_timer_find_average_overhead;
    2626
    2727/*
    28  * Timer_initialize
     28 * benchmark_timer_initialize
    2929 *
    3030 * Blackfin processor has a counter for clock cycles.
    3131 */
    32 void Timer_initialize( void )
     32void benchmark_timer_initialize( void )
    3333{
    3434
     
    4545
    4646/*
    47  *  The following controls the behavior of Read_timer().
     47 *  The following controls the behavior of benchmark_timer_read().
    4848 *
    4949 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    5959#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    6060
    61 int Read_timer( void )
     61int benchmark_timer_read( void )
    6262{
    6363  uint32_t          clicks;
     
    7777  total = clicks / (CCLK/1000000);
    7878
    79   if ( Timer_driver_Find_average_overhead == 1 )
     79  if ( benchmark_timer_find_average_overhead == 1 )
    8080    return total;          /* in XXX microsecond units */
    8181  else {
     
    9494 */
    9595
    96 rtems_status_code Empty_function( void )
     96rtems_status_code benchmark_timer_empty_function( void )
    9797{
    9898  return RTEMS_SUCCESSFUL;
    9999}
    100100
    101 void Set_find_average_overhead(
     101void benchmark_timer_disable_subtracting_average_overhead(
    102102  rtems_boolean find_flag
    103103)
    104104{
    105   Timer_driver_Find_average_overhead = find_flag;
     105  benchmark_timer_find_average_overhead = find_flag;
    106106}
Note: See TracChangeset for help on using the changeset viewer.