Changeset 0ccb2bb in rtems for c/src/lib/libbsp/m68k/gen68302


Ignore:
Timestamp:
Aug 31, 2008, 3:54:43 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
9856277
Parents:
b642940
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/gen68302
Files:
3 edited

Legend:

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

    rb642940 r0ccb2bb  
     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/gen68302/timer/timer.c

    rb642940 r0ccb2bb  
    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/gen68302/timer/timerisr.S

    rb642940 r0ccb2bb  
    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.