Ignore:
Timestamp:
Aug 31, 2008, 4:47:17 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4074e70b
Parents:
674a980
Message:

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

  • timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon2/timer/timer.c

    r674a980 r424ee2ba  
    2323#include <bsp.h>
    2424
    25 rtems_boolean Timer_driver_Find_average_overhead;
     25rtems_boolean benchmark_timerfind_average_overhead;
    2626
    27 rtems_boolean Timer_driver_Is_initialized = FALSE;
     27rtems_boolean benchmark_timeris_initialized = FALSE;
    2828
    29 void Timer_initialize(void)
     29void benchmark_timerinitialize(void)
    3030{
    3131  /*
     
    3333   */
    3434
    35   if ( Timer_driver_Is_initialized == FALSE ) {
     35  if ( benchmark_timeris_initialized == FALSE ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     Timer_driver_Is_initialized = TRUE;
     42    benchmark_timeris_initialized = TRUE;
    4343  }
    4444
     
    5454#define LEAST_VALID       2  /* Don't trust a value lower than this */
    5555
    56 int Read_timer(void)
     56int benchmark_timerread(void)
    5757{
    5858  uint32_t total;
     
    6262  total = 0xffffff - total;
    6363
    64   if ( Timer_driver_Find_average_overhead == 1 )
     64  if ( benchmark_timerfind_average_overhead == 1 )
    6565    return total;          /* in one microsecond units */
    6666
     
    7171}
    7272
    73 rtems_status_code Empty_function( void )
     73rtems_status_code benchmark_timerempty_function( void )
    7474{
    7575  return RTEMS_SUCCESSFUL;
    7676}
    7777
    78 void Set_find_average_overhead(
     78void benchmark_timerdisable_subtracting_average_overhead(
    7979  rtems_boolean find_flag
    8080)
    8181{
    82   Timer_driver_Find_average_overhead = find_flag;
     82  benchmark_timerfind_average_overhead = find_flag;
    8383}
Note: See TracChangeset for help on using the changeset viewer.