Convert to "bool".

This commit is contained in:
Ralf Corsepius
2008-09-05 12:11:47 +00:00
parent 1fb90150e5
commit 3942ccef56
9 changed files with 20 additions and 28 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}