mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
Convert to "bool".
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user