Changeset a5cd2271 in rtems


Ignore:
Timestamp:
Aug 31, 2008, 4:59:23 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
a903b7b
Parents:
8c84731
Message:

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

  • mcf5206/timer/timer.c, mcf5206/timer/timerisr.S, mcf5272/timer/timer.c, mcf5272/timer/timerisr.S: Rename timer driver methods to follow RTEMS programming conventions.
Location:
c/src/lib/libcpu/m68k
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/m68k/ChangeLog

    r8c84731 ra5cd2271  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * mcf5206/timer/timer.c, mcf5206/timer/timerisr.S,
     4        mcf5272/timer/timer.c, mcf5272/timer/timerisr.S: Rename timer driver
     5        methods to follow RTEMS programming conventions.
     6
    172008-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libcpu/m68k/mcf5206/timer/timer.c

    r8c84731 ra5cd2271  
    3131uint32_t   Timer_interrupts;
    3232
    33 rtems_boolean Timer_driver_Find_average_overhead;
     33rtems_boolean benchmark_timer_find_average_overhead;
    3434
    3535/* External assembler interrupt handler routine */
     
    3737
    3838
    39 /* Timer_initialize --
     39/* benchmark_timer_initialize --
    4040 *     Initialize timer 2 for accurate time measurement.
    4141 *
     
    4747 */
    4848void
    49 Timer_initialize(void)
     49benchmark_timer_initialize(void)
    5050{
    5151    /* Catch timer2 interrupts */
     
    7878
    7979/*
    80  *  The following controls the behavior of Read_timer().
     80 *  The following controls the behavior of benchmark_timer_read().
    8181 *
    8282 *  FIND_AVG_OVERHEAD *  instructs the routine to return the "raw" count.
     
    9494#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    9595
    96 /* Read_timer --
     96/* benchmark_timer_read --
    9797 *     Read timer value in microsecond units since timer start.
    9898 *
     
    104104 */
    105105int
    106 Read_timer( void )
     106benchmark_timer_read( void )
    107107{
    108108    uint16_t   clicks;
     
    127127    total = (Timer_interrupts * TRR2_VAL) + clicks;
    128128
    129     if ( Timer_driver_Find_average_overhead == 1 )
     129    if ( benchmark_timer_find_average_overhead == 1 )
    130130        return total;          /* in XXX microsecond units */
    131131
     
    140140
    141141
    142 /* Empty_function --
     142/* benchmark_timer_empty_function --
    143143 *     Empty function call used in loops to measure basic cost of looping
    144144 *     in Timing Test Suite.
     
    151151 */
    152152rtems_status_code
    153 Empty_function(void)
     153benchmark_timer_empty_function(void)
    154154{
    155155    return RTEMS_SUCCESSFUL;
    156156}
    157157
    158 /* Set_find_average_overhead --
     158/* benchmark_timer_disable_subtracting_average_overhead --
    159159 *     This routine is invoked by the "Check Timer" (tmck) test in the
    160  *     RTEMS Timing Test Suite. It makes the Read_timer routine not
     160 *     RTEMS Timing Test Suite. It makes the benchmark_timer_read routine not
    161161 *     subtract the overhead required to initialize and read the benchmark
    162162 *     timer.
     
    169169 */
    170170void
    171 Set_find_average_overhead(rtems_boolean find_flag)
     171benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
    172172{
    173   Timer_driver_Find_average_overhead = find_flag;
     173  benchmark_timer_find_average_overhead = find_flag;
    174174}
  • c/src/lib/libcpu/m68k/mcf5206/timer/timerisr.S

    r8c84731 ra5cd2271  
    55 * accuracy of RTEMS' timing test suite.
    66 *
    7  * See also:    Read_timer()
     7 * See also:    benchmark_timer_read()
    88 *
    99 * To reduce overhead this is best to be the "rawest" hardware interupt
  • c/src/lib/libcpu/m68k/mcf5272/timer/timer.c

    r8c84731 ra5cd2271  
    3131uint32_t Timer_interrupts;
    3232
    33 rtems_boolean Timer_driver_Find_average_overhead;
     33rtems_boolean benchmark_timer_find_average_overhead;
    3434
    3535/* External assembler interrupt handler routine */
     
    3737
    3838
    39 /* Timer_initialize --
     39/* benchmark_timer_initialize --
    4040 *     Initialize timer 2 for accurate time measurement.
    4141 *
     
    4747 */
    4848void
    49 Timer_initialize(void)
     49benchmark_timer_initialize(void)
    5050{
    5151    uint32_t icr;
     
    8181
    8282/*
    83  *  The following controls the behavior of Read_timer().
     83 *  The following controls the behavior of benchmark_timer_read().
    8484 *
    8585 *  FIND_AVG_OVERHEAD *  instructs the routine to return the "raw" count.
     
    9797#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    9898
    99 /* Read_timer --
     99/* benchmark_timer_read --
    100100 *     Read timer value in microsecond units since timer start.
    101101 *
     
    107107 */
    108108int
    109 Read_timer( void )
     109benchmark_timer_read( void )
    110110{
    111111    uint16_t clicks;
     
    129129    total = (Timer_interrupts * TRR2_VAL) + clicks;
    130130
    131     if ( Timer_driver_Find_average_overhead == 1 )
     131    if ( benchmark_timer_find_average_overhead == 1 )
    132132        return total;          /* in XXX microsecond units */
    133133
     
    142142
    143143
    144 /* Empty_function --
     144/* benchmark_timer_empty_function --
    145145 *     Empty function call used in loops to measure basic cost of looping
    146146 *     in Timing Test Suite.
     
    153153 */
    154154rtems_status_code
    155 Empty_function(void)
     155benchmark_timer_empty_function(void)
    156156{
    157157    return RTEMS_SUCCESSFUL;
    158158}
    159159
    160 /* Set_find_average_overhead --
     160/* benchmark_timer_disable_subtracting_average_overhead --
    161161 *     This routine is invoked by the "Check Timer" (tmck) test in the
    162  *     RTEMS Timing Test Suite. It makes the Read_timer routine not
     162 *     RTEMS Timing Test Suite. It makes the benchmark_timer_read routine not
    163163 *     subtract the overhead required to initialize and read the benchmark
    164164 *     timer.
     
    171171 */
    172172void
    173 Set_find_average_overhead(rtems_boolean find_flag)
     173benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
    174174{
    175   Timer_driver_Find_average_overhead = find_flag;
     175  benchmark_timer_find_average_overhead = find_flag;
    176176}
  • c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S

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