Changeset 674a980 in rtems


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

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

  • timer/timer.c, timer/timerisr.S: Rename timer driver methods to follow RTEMS programming conventions.
Location:
c/src/lib/libbsp/m68k
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme167/ChangeLog

    r35f52a6 r674a980  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c, timer/timerisr.S: Rename timer driver methods to
     4        follow RTEMS programming conventions.
     5
    162008-08-19      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/m68k/mvme167/timer/timer.c

    r35f52a6 r674a980  
    22 *
    33 *  This file manages the benchmark timer used by the RTEMS Timing Test Suite.
    4  *  Each measured time period is demarcated by calls to Timer_initialize() and
    5  *  Read_timer().  Read_timer() usually returns the number of microseconds
    6  *  since Timer_initialize() exitted.
     4 *  Each measured time period is demarcated by calls to benchmark_timerinitialize() and
     5 *  benchmark_timerread().  benchmark_timerread() usually returns the number of microseconds
     6 *  since benchmark_timerinitialize() exitted.
    77 *
    88 *  These functions are prototyped in rtems/c/src/lib/include/timerdrv.h and
     
    4747 *  time.
    4848 */
    49 rtems_boolean       Timer_driver_Find_average_overhead;
     49rtems_boolean       benchmark_timerfind_average_overhead;
    5050
    5151rtems_isr timerisr(void);
     
    7171 *  prescaler value should be 0xE7 (page 2-63).
    7272 */
    73 void Timer_initialize(void)
     73void benchmark_timerinitialize(void)
    7474{
    7575  (void) set_vector( timerisr, TIMER_VECTOR, 0 );
     
    106106 *  below this are "noise" and zero is returned.
    107107 */
    108 int Read_timer(void)
     108int benchmark_timerread(void)
    109109{
    110110  uint32_t            total;
     
    112112  total = (Ttimer_val * TICK_INTERVAL) + lcsr->timer_cnt_1;
    113113
    114   if ( Timer_driver_Find_average_overhead )
     114  if ( benchmark_timerfind_average_overhead )
    115115    return total;          /* in one microsecond units */
    116116
     
    129129 *  Output parameters:  time in microseconds
    130130 */
    131 rtems_status_code Empty_function( void )
     131rtems_status_code benchmark_timerempty_function( void )
    132132{
    133133  return RTEMS_SUCCESSFUL;
     
    135135
    136136/*
    137  *  This routine sets the Timer_driver_Find_average_overhead flag in this
     137 *  This routine sets the benchmark_timerfind_average_overhead flag in this
    138138 *  module.
    139139 *
     
    142142 *  Output parameters:  time in microseconds
    143143 */
    144 void Set_find_average_overhead(
     144void benchmark_timerdisable_subtracting_average_overhead(
    145145  rtems_boolean find_flag
    146146)
    147147{
    148   Timer_driver_Find_average_overhead = find_flag;
     148  benchmark_timerfind_average_overhead = find_flag;
    149149}
  • c/src/lib/libbsp/m68k/mvme167/timer/timerisr.S

    r35f52a6 r674a980  
    33 *  This ISR is used to bump a count of interval "overflow" interrupts which
    44 *  have occurred since the timer was started. The number of overflows is taken
    5  *  into account in the Read_timer() routine.
     5 *  into account in the benchmark_timerread() routine.
    66 *
    77 *  Input parameters:  NONE
  • c/src/lib/libbsp/m68k/ods68302/ChangeLog

    r35f52a6 r674a980  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * timer/timer.c, timer/timerisr.S: Rename timer driver methods to
     4        follow RTEMS programming conventions.
     5
    162008-08-19      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/m68k/ods68302/timer/timer.c

    r35f52a6 r674a980  
    4141uint32_t         Timer_interrupts;
    4242
    43 rtems_boolean Timer_driver_Find_average_overhead;
     43rtems_boolean benchmark_timerfind_average_overhead;
    4444
    4545rtems_isr timerisr(void);
    4646
    47 void Timer_initialize( void )
     47void benchmark_timerinitialize( void )
    4848{
    4949    m302.reg.tmr2 = 0;                  /* disable timer */
     
    5757
    5858/*
    59  *  The following controls the behavior of Read_timer().
     59 *  The following controls the behavior of benchmark_timerread().
    6060 *
    6161 *  FIND_AVG_OVERHEAD *  instructs the routine to return the "raw" count.
     
    7676 * Return timer value in 1/2-microsecond units
    7777 */
    78 int Read_timer( void )
     78int benchmark_timerread( void )
    7979{
    8080  uint16_t         clicks;
     
    9696  total = (Timer_interrupts * TRR2_VAL) + clicks;
    9797
    98   if ( Timer_driver_Find_average_overhead == 1 )
     98  if ( benchmark_timerfind_average_overhead == 1 )
    9999    return total;          /* in XXX microsecond units */
    100100
     
    114114 */
    115115
    116 rtems_status_code Empty_function(void)
     116rtems_status_code benchmark_timerempty_function(void)
    117117{
    118118    return RTEMS_SUCCESSFUL;
    119119}
    120120
    121 void Set_find_average_overhead(
     121void benchmark_timerdisable_subtracting_average_overhead(
    122122  rtems_boolean find_flag
    123123)
    124124{
    125   Timer_driver_Find_average_overhead = find_flag;
     125  benchmark_timerfind_average_overhead = find_flag;
    126126}
  • c/src/lib/libbsp/m68k/ods68302/timer/timerisr.S

    r35f52a6 r674a980  
    55 * accuracy of RTEMS' timing test suite.
    66 *
    7  * See also:    Read_timer()
     7 * See also:    benchmark_timerread()
    88 *
    99 * To reduce overhead this is best to be the "rawest" hardware interupt
Note: See TracChangeset for help on using the changeset viewer.