Ignore:
Timestamp:
Sep 5, 2008, 5:47:15 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bd66046
Parents:
f44b668
Message:

Convert to "bool".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/timer/timer.c

    rf44b668 r86432056  
    3333bool benchmark_timer_find_average_overhead;
    3434
    35 bool benchmark_timer_is_initialized = FALSE;
     35bool benchmark_timer_is_initialized = false;
    3636
    3737extern volatile LEON3_Timer_Regs_Map *LEON3_Timer_Regs;
     
    4343   */
    4444  if (LEON3_Timer_Regs) {
    45     if ( benchmark_timer_is_initialized == FALSE ) {
     45    if ( benchmark_timer_is_initialized == false ) {
    4646      /* approximately 1 us per countdown */
    4747      LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].reload = 0xffffff;
    4848      LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].value = 0xffffff;
    4949    } else {
    50       benchmark_timer_is_initialized = TRUE;
     50      benchmark_timer_is_initialized = true;
    5151    }
    5252    LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].conf = LEON3_GPTIMER_EN | LEON3_GPTIMER_LD;
     
    6767    total = 0xffffff - total;
    6868   
    69     if ( benchmark_timer_find_average_overhead == 1 )
     69    if ( benchmark_timer_find_average_overhead == true )
    7070      return total;          /* in one microsecond units */
    7171   
Note: See TracChangeset for help on using the changeset viewer.