summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/erc32/timer/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/timer/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/timer/timer.c b/c/src/lib/libbsp/sparc/erc32/timer/timer.c
index 1a1b2387f1..39a0bc2b48 100644
--- a/c/src/lib/libbsp/sparc/erc32/timer/timer.c
+++ b/c/src/lib/libbsp/sparc/erc32/timer/timer.c
@@ -24,7 +24,7 @@
bool benchmark_timer_find_average_overhead;
-bool benchmark_timer_is_initialized = FALSE;
+bool benchmark_timer_is_initialized = false;
void benchmark_timer_initialize(void)
{
@@ -32,14 +32,14 @@ void benchmark_timer_initialize(void)
* Timer runs long and accurate enough not to require an interrupt.
*/
- if ( benchmark_timer_is_initialized == FALSE ) {
+ if ( benchmark_timer_is_initialized == false ) {
/* approximately 1 us per countdown */
ERC32_MEC.General_Purpose_Timer_Scalar = CLOCK_SPEED - 1;
ERC32_MEC.General_Purpose_Timer_Counter = 0xffffffff;
} else {
- benchmark_timer_is_initialized = TRUE;
+ benchmark_timer_is_initialized = true;
}
ERC32_MEC_Set_General_Purpose_Timer_Control(
@@ -71,7 +71,7 @@ int benchmark_timer_read(void)
total = 0xffffffff - total;
- if ( benchmark_timer_find_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == true )
return total; /* in one microsecond units */
if ( total < LEAST_VALID )