diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 05:47:15 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 05:47:15 +0000 |
commit | 864320562db94e546fb0b6e84278cfb80b83219b (patch) | |
tree | 32b746790e41da1f53948de26671eba0e0541a97 /c/src/lib/libbsp/sparc/leon3/timer/timer.c | |
parent | 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-864320562db94e546fb0b6e84278cfb80b83219b.tar.bz2 |
Convert to "bool".
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/timer/timer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/timer/timer.c b/c/src/lib/libbsp/sparc/leon3/timer/timer.c index 5f27a7d8ac..03d7536db0 100644 --- a/c/src/lib/libbsp/sparc/leon3/timer/timer.c +++ b/c/src/lib/libbsp/sparc/leon3/timer/timer.c @@ -32,7 +32,7 @@ bool benchmark_timer_find_average_overhead; -bool benchmark_timer_is_initialized = FALSE; +bool benchmark_timer_is_initialized = false; extern volatile LEON3_Timer_Regs_Map *LEON3_Timer_Regs; @@ -42,12 +42,12 @@ void benchmark_timer_initialize(void) * Timer runs long and accurate enough not to require an interrupt. */ if (LEON3_Timer_Regs) { - if ( benchmark_timer_is_initialized == FALSE ) { + if ( benchmark_timer_is_initialized == false ) { /* approximately 1 us per countdown */ LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].reload = 0xffffff; LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].value = 0xffffff; } else { - benchmark_timer_is_initialized = TRUE; + benchmark_timer_is_initialized = true; } LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].conf = LEON3_GPTIMER_EN | LEON3_GPTIMER_LD; } @@ -66,7 +66,7 @@ int benchmark_timer_read(void) total = 0xffffff - 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 ) |