Changeset 18bfc42 in rtems


Ignore:
Timestamp:
Aug 31, 2008, 5:19:10 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
dbf4f17
Parents:
19b2223
Message:

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

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

Legend:

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

    r19b2223 r18bfc42  
     12008-08-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * arm/at91rm9200/timer/timer.c, arm/lpc22xx/timer/timer.c,
     4        arm/mc9328mxl/timer/timer.c, arm/s3c2400/timer/timer.c,
     5        arm/s3c24xx/timer/timer.c, bfin/timer/timer.c,
     6        m68k/mcf5206/timer/timer.c, m68k/mcf5272/timer/timer.c: Rename timer
     7        driver methods to follow RTEMS programming conventions.
     8
    192006-08-09      Kolja Waschk <waschk@telos.de>
    210
  • c/src/lib/libcpu/arm/at91rm9200/timer/timer.c

    r19b2223 r18bfc42  
    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  *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
    17  *  the number of microseconds since benchmark_timerinitialize() exitted.
     16 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     17 *  the number of microseconds since benchmark_timer_initialize() exitted.
    1818 *
    1919 *  It is important that the timer start/stop overhead be determined
     
    2929
    3030uint16_t tstart;
    31 rtems_boolean benchmark_timerfind_average_overhead;
     31rtems_boolean benchmark_timer_find_average_overhead;
    3232uint32_t tick_time;
    3333/*
     
    3636 *   capture mode - this shouldn't matter
    3737 */
    38 void benchmark_timerinitialize( void )
     38void benchmark_timer_initialize( void )
    3939{
    4040    uint32_t tmr_freq;
     
    5353
    5454/*
    55  *  The following controls the behavior of benchmark_timerread().
     55 *  The following controls the behavior of benchmark_timer_read().
    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 benchmark_timerread( void )
     69int benchmark_timer_read( void )
    7070{
    7171  uint16_t t;
     
    8181  total = t * tick_time;
    8282
    83   if ( benchmark_timerfind_average_overhead == 1 )
     83  if ( benchmark_timer_find_average_overhead == 1 )
    8484    return total;          /* in nanosecond units */
    8585  else {
     
    9393}
    9494
    95 /*
    96  *  Empty function call used in loops to measure basic cost of looping
    97  *  in Timing Test Suite.
    98  */
    99 
    100 rtems_status_code benchmark_timerempty_function( void )
    101 {
    102   return RTEMS_SUCCESSFUL;
    103 }
    104 
    105 void benchmark_timerdisable_subtracting_average_overhead(
     95void benchmark_timer_disable_subtracting_average_overhead(
    10696  rtems_boolean find_flag
    10797)
    10898{
    109   benchmark_timerfind_average_overhead = find_flag;
     99  benchmark_timer_find_average_overhead = find_flag;
    110100}
    111101
  • c/src/lib/libcpu/arm/lpc22xx/timer/timer.c

    r19b2223 r18bfc42  
    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  *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
    17  *  the number of microseconds since benchmark_timerinitialize() exitted.
     16 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     17 *  the number of microseconds since benchmark_timer_initialize() exitted.
    1818 *
    1919 *  It is important that the timer start/stop overhead be determined
     
    3030uint32_t g_freq;
    3131
    32 rtems_boolean benchmark_timerfind_average_overhead;
     32rtems_boolean benchmark_timer_find_average_overhead;
    3333
    3434   
     
    3636 * Set up Timer 1
    3737 */
    38 void benchmark_timerinitialize( void )
     38void benchmark_timer_initialize( void )
    3939{
    4040       g_freq = LPC22xx_Fpclk / 1000;
     
    4242
    4343/*
    44  *  The following controls the behavior of benchmark_timerread().
     44 *  The following controls the behavior of benchmark_timer_read().
    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 benchmark_timerread( void )
     58int benchmark_timer_read( void )
    5959{
    6060  return (T0TC/(LPC22xx_Fpclk/1000000));
     
    6666}
    6767
    68 /*
    69  *  Empty function call used in loops to measure basic cost of looping
    70  *  in Timing Test Suite.
    71  */
    72 
    73 rtems_status_code benchmark_timerempty_function( void )
    74 {
    75   return RTEMS_SUCCESSFUL;
    76 }
    77 
    78 void benchmark_timerdisable_subtracting_average_overhead(
     68void benchmark_timer_disable_subtracting_average_overhead(
    7969  rtems_boolean find_flag
    8070)
    8171{
    82   benchmark_timerfind_average_overhead = find_flag;
     72  benchmark_timer_find_average_overhead = find_flag;
    8373}
    8474
  • c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c

    r19b2223 r18bfc42  
    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  *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
    18  *  the number of microseconds since benchmark_timerinitialize() exitted.
     17 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     18 *  the number of microseconds since benchmark_timer_initialize() exitted.
    1919 *
    2020 *  It is important that the timer start/stop overhead be determined
     
    3131uint32_t g_freq;
    3232
    33 rtems_boolean benchmark_timerfind_average_overhead;
     33rtems_boolean benchmark_timer_find_average_overhead;
    3434
    3535   
     
    3737 * Set up Timer 1
    3838 */
    39 void benchmark_timerinitialize( void )
     39void benchmark_timer_initialize( void )
    4040{
    4141    MC9328MXL_TMR2_TCTL = (MC9328MXL_TMR_TCTL_CLKSRC_PCLK1 |
     
    5252
    5353/*
    54  *  The following controls the behavior of benchmark_timerread().
     54 *  The following controls the behavior of benchmark_timer_read().
    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 benchmark_timerread( void )
     68int benchmark_timer_read( void )
    6969{
    7070  uint32_t t;
     
    8383  total = (total * 1000)/ g_freq;
    8484
    85   if ( benchmark_timerfind_average_overhead == 1 ) {
     85  if ( benchmark_timer_find_average_overhead == 1 ) {
    8686    return (int) total;
    8787  } else if ( total < LEAST_VALID ) {
     
    9595}
    9696
    97 /*
    98  *  Empty function call used in loops to measure basic cost of looping
    99  *  in Timing Test Suite.
    100  */
    101 
    102 rtems_status_code benchmark_timerempty_function( void )
    103 {
    104   return RTEMS_SUCCESSFUL;
    105 }
    106 
    107 void benchmark_timerdisable_subtracting_average_overhead(
     97void benchmark_timer_disable_subtracting_average_overhead(
    10898  rtems_boolean find_flag
    10999)
    110100{
    111   benchmark_timerfind_average_overhead = find_flag;
     101  benchmark_timer_find_average_overhead = find_flag;
    112102}
    113103
  • c/src/lib/libcpu/arm/s3c2400/timer/timer.c

    r19b2223 r18bfc42  
    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  *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
    15  *  the number of microseconds since benchmark_timerinitialize() exitted.
     14 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     15 *  the number of microseconds since benchmark_timer_initialize() exitted.
    1616 *
    1717 *  It is important that the timer start/stop overhead be determined
     
    2828uint32_t g_freq;
    2929
    30 rtems_boolean benchmark_timerfind_average_overhead;
     30rtems_boolean benchmark_timer_find_average_overhead;
    3131
    3232   
     
    3434 * Set up Timer 1
    3535 */
    36 void benchmark_timerinitialize( void )
     36void benchmark_timer_initialize( void )
    3737{
    3838    uint32_t cr;
     
    5959
    6060/*
    61  *  The following controls the behavior of benchmark_timerread().
     61 *  The following controls the behavior of benchmark_timer_read().
    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 benchmark_timerread( void )
     75int benchmark_timer_read( void )
    7676{
    7777    uint32_t t;
     
    9090    total = (total*1000) / g_freq;
    9191
    92     if ( benchmark_timerfind_average_overhead == 1 ) {
     92    if ( benchmark_timer_find_average_overhead == 1 ) {
    9393        return (int) total;
    9494    } else if ( total < LEAST_VALID ) {
     
    102102}
    103103
    104 /*
    105  *  Empty function call used in loops to measure basic cost of looping
    106  *  in Timing Test Suite.
    107  */
    108 
    109 rtems_status_code benchmark_timerempty_function( void )
    110 {
    111     return RTEMS_SUCCESSFUL;
    112 }
    113 
    114 void benchmark_timerdisable_subtracting_average_overhead(
     104void benchmark_timer_disable_subtracting_average_overhead(
    115105  rtems_boolean find_flag
    116106)
    117107{
    118     benchmark_timerfind_average_overhead = find_flag;
     108    benchmark_timer_find_average_overhead = find_flag;
    119109}
    120110
  • c/src/lib/libcpu/arm/s3c24xx/timer/timer.c

    r19b2223 r18bfc42  
    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  *  benchmark_timerinitialize() and benchmark_timerread().  benchmark_timerread() usually returns
    15  *  the number of microseconds since benchmark_timerinitialize() exitted.
     14 *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
     15 *  the number of microseconds since benchmark_timer_initialize() exitted.
    1616 *
    1717 *  It is important that the timer start/stop overhead be determined
     
    2828uint32_t g_freq;
    2929
    30 rtems_boolean benchmark_timerfind_average_overhead;
     30rtems_boolean benchmark_timer_find_average_overhead;
    3131
    3232
     
    3434 * Set up Timer 1
    3535 */
    36 void benchmark_timerinitialize( void )
     36void benchmark_timer_initialize( void )
    3737{
    3838    uint32_t cr;
     
    5959
    6060/*
    61  *  The following controls the behavior of benchmark_timerread().
     61 *  The following controls the behavior of benchmark_timer_read().
    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 benchmark_timerread( void )
     75int benchmark_timer_read( void )
    7676{
    7777    uint32_t t;
     
    9090    total = (total*1000) / g_freq;
    9191
    92     if ( benchmark_timerfind_average_overhead == 1 ) {
     92    if ( benchmark_timer_find_average_overhead == 1 ) {
    9393        return (int) total;
    9494    } else if ( total < LEAST_VALID ) {
     
    102102}
    103103
    104 /*
    105  *  Empty function call used in loops to measure basic cost of looping
    106  *  in Timing Test Suite.
    107  */
    108 
    109 rtems_status_code benchmark_timerempty_function( void )
    110 {
    111     return RTEMS_SUCCESSFUL;
    112 }
    113 
    114 void benchmark_timerdisable_subtracting_average_overhead(
     104void benchmark_timer_disable_subtracting_average_overhead(
    115105  rtems_boolean find_flag
    116106)
    117107{
    118     benchmark_timerfind_average_overhead = find_flag;
     108    benchmark_timer_find_average_overhead = find_flag;
    119109}
    120110
  • c/src/lib/libcpu/bfin/timer/timer.c

    r19b2223 r18bfc42  
    8989}
    9090
    91 /*
    92  *  Empty function call used in loops to measure basic cost of looping
    93  *  in Timing Test Suite.
    94  */
    95 
    96 rtems_status_code benchmark_timer_empty_function( void )
    97 {
    98   return RTEMS_SUCCESSFUL;
    99 }
    100 
    10191void benchmark_timer_disable_subtracting_average_overhead(
    10292  rtems_boolean find_flag
  • c/src/lib/libcpu/m68k/mcf5206/timer/timer.c

    r19b2223 r18bfc42  
    139139}
    140140
    141 
    142 /* benchmark_timer_empty_function --
    143  *     Empty function call used in loops to measure basic cost of looping
    144  *     in Timing Test Suite.
    145  *
    146  * PARAMETERS:
    147  *     none
    148  *
    149  * RETURNS:
    150  *     RTEMS_SUCCESSFUL
    151  */
    152 rtems_status_code
    153 benchmark_timer_empty_function(void)
    154 {
    155     return RTEMS_SUCCESSFUL;
    156 }
    157 
    158141/* benchmark_timer_disable_subtracting_average_overhead --
    159142 *     This routine is invoked by the "Check Timer" (tmck) test in the
  • c/src/lib/libcpu/m68k/mcf5272/timer/timer.c

    r19b2223 r18bfc42  
    141141}
    142142
    143 
    144 /* benchmark_timer_empty_function --
    145  *     Empty function call used in loops to measure basic cost of looping
    146  *     in Timing Test Suite.
    147  *
    148  * PARAMETERS:
    149  *     none
    150  *
    151  * RETURNS:
    152  *     RTEMS_SUCCESSFUL
    153  */
    154 rtems_status_code
    155 benchmark_timer_empty_function(void)
    156 {
    157     return RTEMS_SUCCESSFUL;
    158 }
    159 
    160143/* benchmark_timer_disable_subtracting_average_overhead --
    161144 *     This routine is invoked by the "Check Timer" (tmck) test in the
Note: See TracChangeset for help on using the changeset viewer.