Changeset 7d6a5e2 in rtems


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

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

  • at91rm9200/timer/timer.c, lpc22xx/timer/timer.c, mc9328mxl/timer/timer.c, s3c2400/timer/timer.c, s3c24xx/timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
Location:
c/src/lib/libcpu/arm
Files:
6 edited

Legend:

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

    r4074e70b r7d6a5e2  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * at91rm9200/timer/timer.c, lpc22xx/timer/timer.c,
     4        mc9328mxl/timer/timer.c, s3c2400/timer/timer.c,
     5        s3c24xx/timer/timer.c: Rename timer driver methods to follow RTEMS
     6        programming conventions.
     7
    182008-08-27      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libcpu/arm/at91rm9200/timer/timer.c

    r4074e70b r7d6a5e2  
    1414 *  This file manages the benchmark timer used by the RTEMS Timing Test
    1515 *  Suite.  Each measured time period is demarcated by calls to
    16  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    17  *  the number of microseconds since Timer_initialize() exitted.
     16 *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
     17 *  the number of microseconds since benchmark_timerinitialize() exitted.
    1818 *
    1919 *  It is important that the timer start/stop overhead be determined
     
    2929
    3030uint16_t tstart;
    31 rtems_boolean Timer_driver_Find_average_overhead;
     31rtems_boolean benchmark_timerfind_average_overhead;
    3232uint32_t tick_time;
    3333/*
     
    3636 *   capture mode - this shouldn't matter
    3737 */
    38 void Timer_initialize( void )
     38void benchmark_timerinitialize( void )
    3939{
    4040    uint32_t tmr_freq;
     
    5353
    5454/*
    55  *  The following controls the behavior of Read_timer().
     55 *  The following controls the behavior of benchmark_timerread().
    5656 *
    5757 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    6767#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    6868
    69 int Read_timer( void )
     69int benchmark_timerread( void )
    7070{
    7171  uint16_t t;
     
    8181  total = t * tick_time;
    8282
    83   if ( Timer_driver_Find_average_overhead == 1 )
     83  if ( benchmark_timerfind_average_overhead == 1 )
    8484    return total;          /* in nanosecond units */
    8585  else {
     
    9898 */
    9999
    100 rtems_status_code Empty_function( void )
     100rtems_status_code benchmark_timerempty_function( void )
    101101{
    102102  return RTEMS_SUCCESSFUL;
    103103}
    104104
    105 void Set_find_average_overhead(
     105void benchmark_timerdisable_subtracting_average_overhead(
    106106  rtems_boolean find_flag
    107107)
    108108{
    109   Timer_driver_Find_average_overhead = find_flag;
     109  benchmark_timerfind_average_overhead = find_flag;
    110110}
    111111
  • c/src/lib/libcpu/arm/lpc22xx/timer/timer.c

    r4074e70b r7d6a5e2  
    1414 *  This file manages the benchmark timer used by the RTEMS Timing Test
    1515 *  Suite.  Each measured time period is demarcated by calls to
    16  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    17  *  the number of microseconds since Timer_initialize() exitted.
     16 *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
     17 *  the number of microseconds since benchmark_timerinitialize() exitted.
    1818 *
    1919 *  It is important that the timer start/stop overhead be determined
     
    3030uint32_t g_freq;
    3131
    32 rtems_boolean Timer_driver_Find_average_overhead;
     32rtems_boolean benchmark_timerfind_average_overhead;
    3333
    3434   
     
    3636 * Set up Timer 1
    3737 */
    38 void Timer_initialize( void )
     38void benchmark_timerinitialize( void )
    3939{
    4040       g_freq = LPC22xx_Fpclk / 1000;
     
    4242
    4343/*
    44  *  The following controls the behavior of Read_timer().
     44 *  The following controls the behavior of benchmark_timerread().
    4545 *
    4646 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    5656#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5757
    58 int Read_timer( void )
     58int benchmark_timerread( void )
    5959{
    6060  return (T0TC/(LPC22xx_Fpclk/1000000));
     
    7171 */
    7272
    73 rtems_status_code Empty_function( void )
     73rtems_status_code benchmark_timerempty_function( void )
    7474{
    7575  return RTEMS_SUCCESSFUL;
    7676}
    7777
    78 void Set_find_average_overhead(
     78void benchmark_timerdisable_subtracting_average_overhead(
    7979  rtems_boolean find_flag
    8080)
    8181{
    82   Timer_driver_Find_average_overhead = find_flag;
     82  benchmark_timerfind_average_overhead = find_flag;
    8383}
    8484
  • c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c

    r4074e70b r7d6a5e2  
    1515 *  This file manages the benchmark timer used by the RTEMS Timing Test
    1616 *  Suite.  Each measured time period is demarcated by calls to
    17  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    18  *  the number of microseconds since Timer_initialize() exitted.
     17 *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
     18 *  the number of microseconds since benchmark_timerinitialize() exitted.
    1919 *
    2020 *  It is important that the timer start/stop overhead be determined
     
    3131uint32_t g_freq;
    3232
    33 rtems_boolean Timer_driver_Find_average_overhead;
     33rtems_boolean benchmark_timerfind_average_overhead;
    3434
    3535   
     
    3737 * Set up Timer 1
    3838 */
    39 void Timer_initialize( void )
     39void benchmark_timerinitialize( void )
    4040{
    4141    MC9328MXL_TMR2_TCTL = (MC9328MXL_TMR_TCTL_CLKSRC_PCLK1 |
     
    5252
    5353/*
    54  *  The following controls the behavior of Read_timer().
     54 *  The following controls the behavior of benchmark_timerread().
    5555 *
    5656 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    6666#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    6767
    68 int Read_timer( void )
     68int benchmark_timerread( void )
    6969{
    7070  uint32_t t;
     
    8383  total = (total * 1000)/ g_freq;
    8484
    85   if ( Timer_driver_Find_average_overhead == 1 ) {
     85  if ( benchmark_timerfind_average_overhead == 1 ) {
    8686    return (int) total;
    8787  } else if ( total < LEAST_VALID ) {
     
    100100 */
    101101
    102 rtems_status_code Empty_function( void )
     102rtems_status_code benchmark_timerempty_function( void )
    103103{
    104104  return RTEMS_SUCCESSFUL;
    105105}
    106106
    107 void Set_find_average_overhead(
     107void benchmark_timerdisable_subtracting_average_overhead(
    108108  rtems_boolean find_flag
    109109)
    110110{
    111   Timer_driver_Find_average_overhead = find_flag;
     111  benchmark_timerfind_average_overhead = find_flag;
    112112}
    113113
  • c/src/lib/libcpu/arm/s3c2400/timer/timer.c

    r4074e70b r7d6a5e2  
    1212 *  This file manages the benchmark timer used by the RTEMS Timing Test
    1313 *  Suite.  Each measured time period is demarcated by calls to
    14  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    15  *  the number of microseconds since Timer_initialize() exitted.
     14 *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
     15 *  the number of microseconds since benchmark_timerinitialize() exitted.
    1616 *
    1717 *  It is important that the timer start/stop overhead be determined
     
    2828uint32_t g_freq;
    2929
    30 rtems_boolean Timer_driver_Find_average_overhead;
     30rtems_boolean benchmark_timerfind_average_overhead;
    3131
    3232   
     
    3434 * Set up Timer 1
    3535 */
    36 void Timer_initialize( void )
     36void benchmark_timerinitialize( void )
    3737{
    3838    uint32_t cr;
     
    5959
    6060/*
    61  *  The following controls the behavior of Read_timer().
     61 *  The following controls the behavior of benchmark_timerread().
    6262 *
    6363 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    7373#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    7474
    75 int Read_timer( void )
     75int benchmark_timerread( void )
    7676{
    7777    uint32_t t;
     
    9090    total = (total*1000) / g_freq;
    9191
    92     if ( Timer_driver_Find_average_overhead == 1 ) {
     92    if ( benchmark_timerfind_average_overhead == 1 ) {
    9393        return (int) total;
    9494    } else if ( total < LEAST_VALID ) {
     
    107107 */
    108108
    109 rtems_status_code Empty_function( void )
     109rtems_status_code benchmark_timerempty_function( void )
    110110{
    111111    return RTEMS_SUCCESSFUL;
    112112}
    113113
    114 void Set_find_average_overhead(
     114void benchmark_timerdisable_subtracting_average_overhead(
    115115  rtems_boolean find_flag
    116116)
    117117{
    118     Timer_driver_Find_average_overhead = find_flag;
     118    benchmark_timerfind_average_overhead = find_flag;
    119119}
    120120
  • c/src/lib/libcpu/arm/s3c24xx/timer/timer.c

    r4074e70b r7d6a5e2  
    1212 *  This file manages the benchmark timer used by the RTEMS Timing Test
    1313 *  Suite.  Each measured time period is demarcated by calls to
    14  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    15  *  the number of microseconds since Timer_initialize() exitted.
     14 *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
     15 *  the number of microseconds since benchmark_timerinitialize() exitted.
    1616 *
    1717 *  It is important that the timer start/stop overhead be determined
     
    2828uint32_t g_freq;
    2929
    30 rtems_boolean Timer_driver_Find_average_overhead;
     30rtems_boolean benchmark_timerfind_average_overhead;
    3131
    3232
     
    3434 * Set up Timer 1
    3535 */
    36 void Timer_initialize( void )
     36void benchmark_timerinitialize( void )
    3737{
    3838    uint32_t cr;
     
    5959
    6060/*
    61  *  The following controls the behavior of Read_timer().
     61 *  The following controls the behavior of benchmark_timerread().
    6262 *
    6363 *  AVG_OVEREHAD is the overhead for starting and stopping the timer.  It
     
    7373#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    7474
    75 int Read_timer( void )
     75int benchmark_timerread( void )
    7676{
    7777    uint32_t t;
     
    9090    total = (total*1000) / g_freq;
    9191
    92     if ( Timer_driver_Find_average_overhead == 1 ) {
     92    if ( benchmark_timerfind_average_overhead == 1 ) {
    9393        return (int) total;
    9494    } else if ( total < LEAST_VALID ) {
     
    107107 */
    108108
    109 rtems_status_code Empty_function( void )
     109rtems_status_code benchmark_timerempty_function( void )
    110110{
    111111    return RTEMS_SUCCESSFUL;
    112112}
    113113
    114 void Set_find_average_overhead(
     114void benchmark_timerdisable_subtracting_average_overhead(
    115115  rtems_boolean find_flag
    116116)
    117117{
    118     Timer_driver_Find_average_overhead = find_flag;
     118    benchmark_timerfind_average_overhead = find_flag;
    119119}
    120120
Note: See TracChangeset for help on using the changeset viewer.