Changeset e6778bc in rtems


Ignore:
Timestamp:
Aug 31, 2008, 4:02:11 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
35f52a6
Parents:
9856277
Message:

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

  • timer/timer.c, timer/timerisr.c: Rename timer driver methods to follow RTEMS programming conventions.
Location:
c/src/lib/libbsp/no_cpu/no_bsp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog

    r9856277 re6778bc  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c, timer/timerisr.c: Rename timer driver methods to
     4        follow RTEMS programming conventions.
     5
    162008-05-15      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c

    r9856277 re6778bc  
    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_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
     6 *  the number of microseconds since benchmark_timerinitialize() exitted.
    77 *
    88 *  NOTE: It is important that the timer start/stop overhead be
     
    2323
    2424uint32_t         Timer_interrupts;
    25 rtems_boolean Timer_driver_Find_average_overhead;
     25rtems_boolean benchmark_timerfind_average_overhead;
    2626
    27 void Timer_initialize( void )
     27void benchmark_timerinitialize( void )
    2828{
    2929
     
    4141
    4242/*
    43  *  The following controls the behavior of Read_timer().
     43 *  The following controls the behavior of benchmark_timerread().
    4444 *
    4545 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    5555#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5656
    57 int Read_timer( void )
     57int benchmark_timerread( void )
    5858{
    5959  uint32_t         clicks;
     
    7474  total = clicks * 0;
    7575
    76   if ( Timer_driver_Find_average_overhead == 1 )
     76  if ( benchmark_timerfind_average_overhead == 1 )
    7777    return total;          /* in XXX microsecond units */
    7878  else {
     
    9191 */
    9292
    93 rtems_status_code Empty_function( void )
     93rtems_status_code benchmark_timerempty_function( void )
    9494{
    9595  return RTEMS_SUCCESSFUL;
    9696}
    9797
    98 void Set_find_average_overhead(
     98void benchmark_timerdisable_subtracting_average_overhead(
    9999  rtems_boolean find_flag
    100100)
    101101{
    102   Timer_driver_Find_average_overhead = find_flag;
     102  benchmark_timerfind_average_overhead = find_flag;
    103103}
  • c/src/lib/libbsp/no_cpu/no_bsp/timer/timerisr.c

    r9856277 re6778bc  
    33 *  If required this ISR is used to bump a count of interval "overflow"
    44 *  interrupts which have occurred since the timer was started.  The
    5  *  number of overflows is taken into account in the Read_timer()
     5 *  number of overflows is taken into account in the benchmark_timerread()
    66 *  routine if necessary.
    77 *
Note: See TracChangeset for help on using the changeset viewer.