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

* console/console.c, include/m340timer.h, timer/timer.c: Eliminate
	empty function from every benchmark timer driver. Fix spelling.
This commit is contained in:
Joel Sherrill
2008-08-31 18:15:27 +00:00
parent e511e12626
commit 722ab6dd03
4 changed files with 15 additions and 24 deletions

View File

@@ -1,3 +1,8 @@
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* console/console.c, include/m340timer.h, timer/timer.c: Eliminate
empty function from every benchmark timer driver. Fix spelling.
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* console/console.c, include/m340timer.h, timer/timer.c: Rename timer

View File

@@ -553,7 +553,7 @@ rtems_device_driver console_initialize(
*/
Init_UART_Table();
dbugInitialise ();
Fifo_Full_benchmark_timerinitialize();
Fifo_Full_benchmark_timer_initialize();
/*
* Register the devices

View File

@@ -25,7 +25,7 @@
#ifndef __m340timer_H__
#define __m340timer_H__
extern void Fifo_Full_benchmark_timerinitialize (void);
extern void Fifo_Full_benchmark_timer_initialize (void);
extern void (*Restart_Fifo_Full_A_Timer)();
extern void (*Restart_Check_A_Timer)();

View File

@@ -113,12 +113,12 @@ void __do_nothing (void)
#define Fifo_Full_on_B (m340_uart_config[UART_CHANNEL_B].rx_mode==UART_FIFO_FULL && m340_uart_config[UART_CHANNEL_B].enable && m340_uart_config[UART_CHANNEL_B].mode==UART_INTERRUPTS)
/******************************************************
Name: Fifo_Full_benchmark_timerinitialize
Name: Fifo_Full_benchmark_timer_initialize
Input parameters: -
Output parameters: -
Description: initialize Timer 1 for FIFO full mode
*****************************************************/
void Fifo_Full_benchmark_timerinitialize (void)
void Fifo_Full_benchmark_timer_initialize (void)
{
float max_baud_rate;
int prescaler_output_tap = -1;
@@ -218,12 +218,12 @@ void Fifo_Full_benchmark_timerinitialize (void)
}
/******************************************************
Name: benchmark_timerinitialize
Name: benchmark_timer_initialize
Input parameters: -
Output parameters: -
Description: init Timer for timing test suites
*****************************************************/
void benchmark_timerinitialize (void)
void benchmark_timer_initialize (void)
{
/* Disable the timer */
TCR2 &= ~m340_SWR;
@@ -250,39 +250,25 @@ void benchmark_timerinitialize (void)
}
/******************************************************
Name: benchmark_timerread
Name: benchmark_timer_read
Input parameters: -
Output parameters: -
Description: Return timer value in microsecond units
*****************************************************/
int
benchmark_timerread (void)
benchmark_timer_read (void)
{
/* there's CLOCK_SPEED / 16 micro seconds between two timer register decrement */
return (((0xFFFF - TCNTR2) * CLOCK_SPEED) / 16);
}
/******************************************************
Name: benchmark_timerempty_function
Input parameters: -
Output parameters: -
Description: Empty function call used in loops to
measure basic cost of looping
in Timing Test Suite.
*****************************************************/
rtems_status_code
benchmark_timerempty_function (void)
{
return RTEMS_SUCCESSFUL;
}
/******************************************************
Name: benchmark_timerdisable_subtracting_average_overhead
Name: benchmark_timer_disable_subtracting_average_overhead
Input parameters: -
Output parameters: -
Description: -
*****************************************************/
void
benchmark_timerdisable_subtracting_average_overhead(rtems_boolean find_flag)
benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
{
}