forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user