summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/ts_386ex
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:07:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:07:58 +0000
commit35f52a69829e2a1e3180949ca38592d2b13034de (patch)
tree30d9b664d846d95d42d7f86d17ddf0c0bd6e4744 /c/src/lib/libbsp/i386/ts_386ex
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/i386/ts_386ex')
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/ChangeLog5
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/timer/timer.c20
2 files changed, 15 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/i386/ts_386ex/ChangeLog b/c/src/lib/libbsp/i386/ts_386ex/ChangeLog
index 5033020ecc..5cf2bee835 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/ChangeLog
+++ b/c/src/lib/libbsp/i386/ts_386ex/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-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* clock/ckinit.c, startup/bspstart.c, timer/timer.c:
diff --git a/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c b/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
index 9a5c6304c5..0746869648 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
volatile uint32_t Ttimer_val; /* Updated from ISR!!! */
-rtems_boolean Timer_driver_Find_average_overhead;
+rtems_boolean benchmark_timerfind_average_overhead;
extern void timerisr(void);
@@ -96,7 +96,7 @@ void Timer_exit(void)
}
}
-void Timer_initialize(void)
+void benchmark_timerinitialize(void)
{
static rtems_boolean First = TRUE;
@@ -106,18 +106,18 @@ void Timer_initialize(void)
First = FALSE;
if (!i386_get_current_idt_entry (&old_raw_irq_data)) {
- printk("Timer_initialize: failed to get old raw irq entry.\n");
+ printk("benchmark_timerinitialize: failed to get old raw irq entry.\n");
rtems_fatal_error_occurred(1);
}
if (!i386_delete_idt_entry (&old_raw_irq_data)) {
- printk("Timer_initialize: failed to delete old raw irq entry.\n");
+ printk("benchmark_timerinitialize: failed to delete old raw irq entry.\n");
rtems_fatal_error_occurred(1);
}
atexit(Timer_exit); /* Try not to hose the system at exit. */
if (!i386_set_idt_entry (&timer_raw_irq_data)) {
- printk("Timer_initialize: raw handler installation failed.\n");
+ printk("benchmark_timerinitialize: raw handler installation failed.\n");
rtems_fatal_error_occurred(1);
}
}
@@ -133,7 +133,7 @@ void Timer_initialize(void)
/* (3 ticks) to start/stop the timer. */
#define LEAST_VALID 4 /* Don't trust a value lower than this */
-int Read_timer(void)
+int benchmark_timerread(void)
{
register uint32_t clicks, total;
register uint8_t lsb, msb;
@@ -155,7 +155,7 @@ int Read_timer(void)
clicks = (msb << 8) | lsb;
total = Ttimer_val * US_PER_ISR + (US_PER_ISR - clicks);
- if ( Timer_driver_Find_average_overhead == 1 )
+ if ( benchmark_timerfind_average_overhead == 1 )
return total; /* in one microsecond units */
else if ( total < LEAST_VALID )
return 0; /* below timer resolution */
@@ -163,16 +163,16 @@ 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;
}
/*