diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-31 16:07:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-31 16:07:58 +0000 |
commit | 35f52a69829e2a1e3180949ca38592d2b13034de (patch) | |
tree | 30d9b664d846d95d42d7f86d17ddf0c0bd6e4744 /c/src/lib/libbsp/mips/csb350/timer | |
parent | 2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-35f52a69829e2a1e3180949ca38592d2b13034de.tar.bz2 |
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Rename timer driver methods to follow RTEMS
programming conventions.
Diffstat (limited to 'c/src/lib/libbsp/mips/csb350/timer')
-rw-r--r-- | c/src/lib/libbsp/mips/csb350/timer/timer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/mips/csb350/timer/timer.c b/c/src/lib/libbsp/mips/csb350/timer/timer.c index c743311cbb..b02eefe58c 100644 --- a/c/src/lib/libbsp/mips/csb350/timer/timer.c +++ b/c/src/lib/libbsp/mips/csb350/timer/timer.c @@ -16,10 +16,10 @@ #include <bsp.h> -rtems_boolean Timer_driver_Find_average_overhead; +rtems_boolean benchmark_timerfind_average_overhead; uint32_t tstart; -void Timer_initialize(void) +void benchmark_timerinitialize(void) { asm volatile ("mfc0 %0, $9\n" : "=r" (tstart)); /* tick time in picooseconds */ @@ -30,7 +30,7 @@ void Timer_initialize(void) #define LEAST_VALID 1 /* Don't trust a value lower than this */ /* tx39 simulator can count instructions. :) */ -int Read_timer(void) +int benchmark_timerread(void) { uint32_t total; uint32_t cnt; @@ -41,7 +41,7 @@ int Read_timer(void) total = (total * 1000) / 396; /* convert to nanoseconds */ - if ( Timer_driver_Find_average_overhead == 1 ) + if ( benchmark_timerfind_average_overhead == 1 ) return total; /* in one microsecond units */ if ( total < LEAST_VALID ) @@ -50,14 +50,14 @@ int Read_timer(void) return total - AVG_OVERHEAD; } -rtems_status_code Empty_function( void ) +rtems_status_code benchmark_timerempty_function( void ) { return RTEMS_SUCCESSFUL; } -void Set_find_average_overhead( +void benchmark_timerdisable_subtracting_average_overhead( rtems_boolean find_flag ) { - Timer_driver_Find_average_overhead = find_flag; + benchmark_timerfind_average_overhead = find_flag; } |