Convert to "bool".

This commit is contained in:
Ralf Corsepius
2008-09-05 05:03:36 +00:00
parent 34bd389315
commit e53fbe8ddd
5 changed files with 13 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
#include <bsp.h>
rtems_boolean benchmark_timer_find_average_overhead;
bool benchmark_timer_find_average_overhead;
uint32_t tstart;
void benchmark_timer_initialize(void)
@@ -41,7 +41,7 @@ int benchmark_timer_read(void)
total = (total * 1000) / 396; /* convert to nanoseconds */
if ( benchmark_timer_find_average_overhead == 1 )
if ( benchmark_timer_find_average_overhead == true )
return total; /* in one microsecond units */
if ( total < LEAST_VALID )
@@ -51,7 +51,7 @@ int benchmark_timer_read(void)
}
void benchmark_timer_disable_subtracting_average_overhead(
rtems_boolean find_flag
bool find_flag
)
{
benchmark_timer_find_average_overhead = find_flag;

View File

@@ -15,7 +15,7 @@
#include <bsp.h>
rtems_boolean benchmark_timer_find_average_overhead;
bool benchmark_timer_find_average_overhead;
#if defined(USE_TIMER2_FOR_CLOCK)
#define TIMER_BASE MONGOOSEV_TIMER1_BASE
@@ -75,7 +75,7 @@ int benchmark_timer_read(void)
if ( tcr & MONGOOSEV_TIMER_CONTROL_TIMEOUT )
printk( "MG5 timer overran\n" );
if ( benchmark_timer_find_average_overhead == 1 )
if ( benchmark_timer_find_average_overhead == true )
return total; /* in cycle units */
if ( total < LEAST_VALID )
@@ -85,7 +85,7 @@ int benchmark_timer_read(void)
}
void benchmark_timer_disable_subtracting_average_overhead(
rtems_boolean find_flag
bool find_flag
)
{
benchmark_timer_find_average_overhead = find_flag;

View File

@@ -79,12 +79,12 @@ rtems_device_driver console_initialize(
* Return values:
*/
rtems_boolean is_character_ready(
bool is_character_ready(
char *ch
)
{
*ch = '\0'; /* return NULL for no particular reason */
return(TRUE);
return true;
}
/* inbyte

View File

@@ -17,7 +17,7 @@
#include <bsp.h>
rtems_boolean benchmark_timer_find_average_overhead;
bool benchmark_timer_find_average_overhead;
void benchmark_timer_initialize(void)
{
@@ -51,7 +51,7 @@ int benchmark_timer_read(void)
total = TX3904_TIMER_READ( TX3904_TIMER1_BASE, TX3904_TIMER_TRR );
if ( benchmark_timer_find_average_overhead == 1 )
if ( benchmark_timer_find_average_overhead == true )
return total; /* in one microsecond units */
if ( total < LEAST_VALID )
@@ -61,7 +61,7 @@ int benchmark_timer_read(void)
}
void benchmark_timer_disable_subtracting_average_overhead(
rtems_boolean find_flag
bool find_flag
)
{
benchmark_timer_find_average_overhead = find_flag;

View File

@@ -90,12 +90,12 @@ rtems_device_driver console_initialize(
* Return values:
*/
rtems_boolean is_character_ready(
bool is_character_ready(
char *ch
)
{
*ch = '\0'; /* return NULL for no particular reason */
return(TRUE);
return true;
}
/* inbyte