Changeset 86432056 in rtems


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".

Location:
c/src/lib/libbsp/sparc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/console/console.c

    rf44b668 r86432056  
    7272
    7373Ring_buffer_t  TX_Buffer[ 2 ];
    74 boolean        Is_TX_active[ 2 ];
     74bool           Is_TX_active[ 2 ];
    7575
    7676void *console_termios_data[ 2 ];
     
    111111      ERC32_MEC.UART_Channel_A = (uint32_t) ch;
    112112    } else
    113      Is_TX_active[ 0 ] = FALSE;
     113     Is_TX_active[ 0 ] = false;
    114114  }
    115115
     
    152152      ERC32_MEC.UART_Channel_B = (uint32_t) ch;
    153153    } else
    154      Is_TX_active[ 1 ] = FALSE;
     154     Is_TX_active[ 1 ] = false;
    155155  }
    156156
     
    229229  Ring_buffer_Initialize( &TX_Buffer[ 1 ] );
    230230
    231   Is_TX_active[ 0 ] = FALSE;
    232   Is_TX_active[ 1 ] = FALSE;
     231  Is_TX_active[ 0 ] = false;
     232  Is_TX_active[ 1 ] = false;
    233233
    234234  atexit( console_exit );
     
    264264   */
    265265
    266   if ( Is_TX_active[ port ] == FALSE ) {
    267     Is_TX_active[ port ] = TRUE;
     266  if ( Is_TX_active[ port ] == false ) {
     267    Is_TX_active[ port ] = true;
    268268    console_outbyte_polled( port, ch );
    269269    return;
  • c/src/lib/libbsp/sparc/erc32/timer/timer.c

    rf44b668 r86432056  
    2525bool benchmark_timer_find_average_overhead;
    2626
    27 bool benchmark_timer_is_initialized = FALSE;
     27bool benchmark_timer_is_initialized = false;
    2828
    2929void benchmark_timer_initialize(void)
     
    3333   */
    3434
    35   if ( benchmark_timer_is_initialized == FALSE ) {
     35  if ( benchmark_timer_is_initialized == false ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     benchmark_timer_is_initialized = TRUE;
     42    benchmark_timer_is_initialized = true;
    4343  }
    4444
     
    7272  total = 0xffffffff - total;
    7373
    74   if ( benchmark_timer_find_average_overhead == 1 )
     74  if ( benchmark_timer_find_average_overhead == true )
    7575    return total;          /* in one microsecond units */
    7676
  • c/src/lib/libbsp/sparc/leon2/console/console.c

    rf44b668 r86432056  
    7373 
    7474Ring_buffer_t  TX_Buffer[ 2 ];
    75 boolean        Is_TX_active[ 2 ];
     75bool           Is_TX_active[ 2 ];
    7676 
    7777void *console_termios_data[ 2 ];
     
    111111      LEON_REG.UART_Channel_1 = (uint32_t) ch;
    112112    } else
    113      Is_TX_active[ 0 ] = FALSE;
     113     Is_TX_active[ 0 ] = false;
    114114  }
    115115 
     
    151151      LEON_REG.UART_Channel_2 = (uint32_t) ch;
    152152    } else
    153      Is_TX_active[ 1 ] = FALSE;
     153     Is_TX_active[ 1 ] = false;
    154154  }
    155155
     
    234234  Ring_buffer_Initialize( &TX_Buffer[ 1 ] );
    235235
    236   Is_TX_active[ 0 ] = FALSE;
    237   Is_TX_active[ 1 ] = FALSE;
     236  Is_TX_active[ 0 ] = false;
     237  Is_TX_active[ 1 ] = false;
    238238
    239239  atexit( console_exit );
     
    272272   */
    273273
    274   if ( Is_TX_active[ port ] == FALSE ) {
    275     Is_TX_active[ port ] = TRUE;
     274  if ( Is_TX_active[ port ] == false ) {
     275    Is_TX_active[ port ] = true;
    276276    console_outbyte_polled( port, ch );
    277277    return;
  • c/src/lib/libbsp/sparc/leon2/timer/timer.c

    rf44b668 r86432056  
    2525bool benchmark_timer_find_average_overhead;
    2626
    27 bool benchmark_timer_is_initialized = FALSE;
     27bool benchmark_timer_is_initialized = false;
    2828
    2929void benchmark_timer_initialize(void)
     
    3333   */
    3434
    35   if ( benchmark_timer_is_initialized == FALSE ) {
     35  if ( benchmark_timer_is_initialized == false ) {
    3636
    3737    /* approximately 1 us per countdown */
     
    4040
    4141  } else {
    42     benchmark_timer_is_initialized = TRUE;
     42    benchmark_timer_is_initialized = true;
    4343  }
    4444
     
    6262  total = 0xffffff - total;
    6363
    64   if ( benchmark_timer_find_average_overhead == 1 )
     64  if ( benchmark_timer_find_average_overhead == true )
    6565    return total;          /* in one microsecond units */
    6666
  • 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.