forked from Imagelibrary/rtems
Convert to "bool".
This commit is contained in:
@@ -68,7 +68,7 @@ extern rtems_isr timerisr(void);
|
||||
|
||||
static uint32_t Timer_interrupts;
|
||||
|
||||
rtems_boolean benchmark_timer_find_average_overhead;
|
||||
bool benchmark_timer_find_average_overhead;
|
||||
|
||||
static uint32_t Timer_HZ ;
|
||||
|
||||
@@ -181,9 +181,7 @@ int benchmark_timer_read( void )
|
||||
}
|
||||
}
|
||||
|
||||
void benchmark_timer_disable_subtracting_average_overhead(
|
||||
rtems_boolean find_flag
|
||||
)
|
||||
void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
|
||||
{
|
||||
benchmark_timer_find_average_overhead = find_flag;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ extern rtems_isr timerisr(void);
|
||||
|
||||
static uint32_t Timer_interrupts;
|
||||
|
||||
rtems_boolean benchmark_timer_find_average_overhead;
|
||||
bool benchmark_timer_find_average_overhead;
|
||||
|
||||
static uint32_t Timer_MHZ ;
|
||||
|
||||
@@ -177,9 +177,7 @@ int benchmark_timer_read( void )
|
||||
}
|
||||
}
|
||||
|
||||
void benchmark_timer_disable_subtracting_average_overhead(
|
||||
rtems_boolean find_flag
|
||||
)
|
||||
void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
|
||||
{
|
||||
benchmark_timer_find_average_overhead = find_flag;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ static uint32_t microseconds_divider;
|
||||
/* Interrupt period in microseconds */
|
||||
static uint32_t microseconds_per_int;
|
||||
|
||||
rtems_boolean benchmark_timer_find_average_overhead;
|
||||
bool benchmark_timer_find_average_overhead;
|
||||
|
||||
/* benchmark_timer_initialize --
|
||||
* Initialize Timer 1 to operate as a RTEMS benchmark timer:
|
||||
@@ -246,13 +246,13 @@ benchmark_timer_read(void)
|
||||
* timer.
|
||||
*
|
||||
* PARAMETERS:
|
||||
* find_flag - boolean flag, TRUE if overhead must not be subtracted.
|
||||
* find_flag - boolean flag, true if overhead must not be subtracted.
|
||||
*
|
||||
* RETURNS:
|
||||
* none
|
||||
*/
|
||||
void
|
||||
benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
|
||||
benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
|
||||
{
|
||||
benchmark_timer_find_average_overhead = find_flag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user