forked from Imagelibrary/rtems
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* timer/timer.c: Eliminate empty function from every benchmark timer
|
||||||
|
driver. Fix spelling.
|
||||||
|
|
||||||
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* timer/timer.c: Rename timer driver methods to follow RTEMS
|
* timer/timer.c: Rename timer driver methods to follow RTEMS
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
#include <nds.h>
|
#include <nds.h>
|
||||||
|
|
||||||
bool benchmark_timerfind_average_overhead;
|
bool benchmark_timer_find_average_overhead;
|
||||||
|
|
||||||
void
|
void
|
||||||
benchmark_timerinitialize (void)
|
benchmark_timer_initialize (void)
|
||||||
{
|
{
|
||||||
TIMER_CR (1) = 0x0000;
|
TIMER_CR (1) = 0x0000;
|
||||||
TIMER_CR (2) = 0x0000;
|
TIMER_CR (2) = 0x0000;
|
||||||
@@ -36,7 +36,7 @@ benchmark_timerinitialize (void)
|
|||||||
#define LEAST_VALID 1
|
#define LEAST_VALID 1
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
benchmark_timerread (void)
|
benchmark_timer_read (void)
|
||||||
{
|
{
|
||||||
uint32_t ticks;
|
uint32_t ticks;
|
||||||
|
|
||||||
@@ -49,14 +49,8 @@ benchmark_timerread (void)
|
|||||||
return ticks;
|
return ticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_status_code
|
|
||||||
benchmark_timerempty_function (void)
|
|
||||||
{
|
|
||||||
return RTEMS_SUCCESSFUL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
benchmark_timerdisable_subtracting_average_overhead (bool find_flag)
|
benchmark_timer_disable_subtracting_average_overhead (bool find_flag)
|
||||||
{
|
{
|
||||||
benchmark_timerfind_average_overhead = find_flag;
|
benchmark_timer_find_average_overhead = find_flag;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user