Ignore:
Timestamp:
Aug 31, 2008, 4:47:17 PM (12 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/leon3/timer/timer.c

    r674a980 r424ee2ba  
    3131#endif
    3232
    33 rtems_boolean Timer_driver_Find_average_overhead;
     33rtems_boolean benchmark_timerfind_average_overhead;
    3434
    35 rtems_boolean Timer_driver_Is_initialized = FALSE;
     35rtems_boolean benchmark_timeris_initialized = FALSE;
    3636
    3737extern volatile LEON3_Timer_Regs_Map *LEON3_Timer_Regs;
    3838
    39 void Timer_initialize(void)
     39void benchmark_timerinitialize(void)
    4040{
    4141  /*
     
    4343   */
    4444  if (LEON3_Timer_Regs) {
    45     if ( Timer_driver_Is_initialized == FALSE ) {
     45    if ( benchmark_timeris_initialized == FALSE ) {
    4646      /* approximately 1 us per countdown */
    4747      LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].reload = 0xffffff;
    4848      LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].value = 0xffffff;
    4949    } else {
    50       Timer_driver_Is_initialized = TRUE;
     50      benchmark_timeris_initialized = TRUE;
    5151    }
    5252    LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].conf = LEON3_GPTIMER_EN | LEON3_GPTIMER_LD;
     
    5858#define LEAST_VALID       2  /* Don't trust a value lower than this */
    5959
    60 int Read_timer(void)
     60int benchmark_timerread(void)
    6161{
    6262  uint32_t total;
     
    6767    total = 0xffffff - total;
    6868   
    69     if ( Timer_driver_Find_average_overhead == 1 )
     69    if ( benchmark_timerfind_average_overhead == 1 )
    7070      return total;          /* in one microsecond units */
    7171   
     
    7878}
    7979
    80 rtems_status_code Empty_function( void )
     80rtems_status_code benchmark_timerempty_function( void )
    8181{
    8282  return RTEMS_SUCCESSFUL;
    8383}
    8484
    85 void Set_find_average_overhead(
     85void benchmark_timerdisable_subtracting_average_overhead(
    8686  rtems_boolean find_flag
    8787)
    8888{
    89   Timer_driver_Find_average_overhead = find_flag;
     89  benchmark_timerfind_average_overhead = find_flag;
    9090}
Note: See TracChangeset for help on using the changeset viewer.