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/m68k/mvme147 | |
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/m68k/mvme147')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme147/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme147/timer/timer.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme147/ChangeLog b/c/src/lib/libbsp/m68k/mvme147/ChangeLog index ca28ade299..8fe93f9d02 100644 --- a/c/src/lib/libbsp/m68k/mvme147/ChangeLog +++ b/c/src/lib/libbsp/m68k/mvme147/ChangeLog @@ -1,3 +1,8 @@ +2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> + + * timer/timer.c: Rename timer driver methods to follow RTEMS + programming conventions. + 2008-08-19 Ralf Corsépius <ralf.corsepius@rtems.org> * startup/bspclean.c, timer/timer.c: Add missing prototypes. diff --git a/c/src/lib/libbsp/m68k/mvme147/timer/timer.c b/c/src/lib/libbsp/m68k/mvme147/timer/timer.c index 1990584425..c6c1f32221 100644 --- a/c/src/lib/libbsp/m68k/mvme147/timer/timer.c +++ b/c/src/lib/libbsp/m68k/mvme147/timer/timer.c @@ -32,11 +32,11 @@ /* Each tick is 6.25 us */ int Ttimer_val; -rtems_boolean Timer_driver_Find_average_overhead; +rtems_boolean benchmark_timerfind_average_overhead; rtems_isr timerisr(void); -void Timer_initialize(void) +void benchmark_timerinitialize(void) { (void) set_vector(timerisr, TIMER_1_VECTOR, 0); /* install ISR */ @@ -56,7 +56,7 @@ void Timer_initialize(void) synchronized whith the counter updates*/ #define LEAST_VALID 10 /* Don't trust a value lower than this */ -int Read_timer(void) +int benchmark_timerread(void) { uint32_t total; uint16_t counter_value; @@ -70,14 +70,14 @@ int Read_timer(void) } -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; } |