diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 11:40:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 11:40:32 +0000 |
commit | fcd74835fed679c5da34240ad23b0ba4f965fa3a (patch) | |
tree | 4417b81eb2ee0ef2cee28a59d8062458259a93ca /c/src/lib/libbsp/no_cpu/no_bsp | |
parent | 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-fcd74835fed679c5da34240ad23b0ba4f965fa3a.tar.bz2 |
Convert to "bool".
Diffstat (limited to 'c/src/lib/libbsp/no_cpu/no_bsp')
-rw-r--r-- | c/src/lib/libbsp/no_cpu/no_bsp/console/console.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c b/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c index 251cca1eeb..50f05230cf 100644 --- a/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c +++ b/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c @@ -58,12 +58,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 diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c b/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c index ad66908479..0fad1a9d26 100644 --- a/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c +++ b/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c @@ -22,7 +22,7 @@ #include <bsp.h> uint32_t Timer_interrupts; -rtems_boolean benchmark_timer_find_average_overhead; +bool benchmark_timer_find_average_overhead; void benchmark_timer_initialize( void ) { @@ -73,7 +73,7 @@ int benchmark_timer_read( void ) total = clicks * 0; - if ( benchmark_timer_find_average_overhead == 1 ) + if ( benchmark_timer_find_average_overhead == true ) return total; /* in XXX microsecond units */ else { if ( total < LEAST_VALID ) @@ -86,7 +86,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; |