Changeset 3551166d in rtems


Ignore:
Timestamp:
Sep 5, 2008, 11:55:58 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
3553085
Parents:
1e524b51
Message:

Convert to "bool".

Location:
c/src/lib
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/score603e/console/85c30.c

    r1e524b51 r3551166d  
    397397  volatile Console_Protocol *Protocol;
    398398  unsigned char              data;
    399   bool                       did_something = FALSE;
     399  bool                       did_something = false;
    400400
    401401  Protocol = Port->Protocol;
     
    413413    rtems_termios_enqueue_raw_characters( Port->Protocol->console_termios_data,
    414414       &data, 1 );
    415     did_something = TRUE;
     415    did_something = true;
    416416  }
    417417
     
    426426
    427427    } else {
    428       Protocol->Is_TX_active = FALSE;
     428      Protocol->Is_TX_active = false;
    429429      Write_85c30_register( Port->ctrl, STATUS_REGISTER, 0x28 );
    430430    }
    431431
    432     did_something = TRUE;
     432    did_something = true;
    433433  }
    434434
  • c/src/lib/libbsp/powerpc/score603e/console/console.c

    r1e524b51 r3551166d  
    175175    buffer = &protocol->TX_Buffer;
    176176    Ring_buffer_Initialize( buffer );
    177     protocol->Is_TX_active = FALSE;
     177    protocol->Is_TX_active = false;
    178178  }
    179179
     
    419419   */
    420420
    421   if ( protocol->Is_TX_active == FALSE ) {
     421  if ( protocol->Is_TX_active == false ) {
    422422
    423423    rtems_interrupt_disable( isrlevel );
    424     protocol->Is_TX_active = TRUE;
     424    protocol->Is_TX_active = true;
    425425    outbyte_polled_85c30( Port->ctrl, ch );
    426426    rtems_interrupt_enable( isrlevel );
  • c/src/lib/libbsp/powerpc/score603e/irq/FPGA.c

    r1e524b51 r3551166d  
    126126)
    127127{
    128   bool   result = FALSE;
     128  bool result = false;
    129129
    130130  switch(pmc_irq) {
    131131    case SCORE603E_85C30_4_IRQ:
    132       result = Is_PMC_85C30_4_IRQ( status_word );
     132      result = Is_PMC_85C30_4_IRQ( status_word ) ? true : false;
    133133      break;
    134134    case SCORE603E_85C30_2_IRQ:
    135       result = Is_PMC_85C30_2_IRQ( status_word );
     135      result = Is_PMC_85C30_2_IRQ( status_word ) ? true : false;
    136136      break;
    137137    case SCORE603E_85C30_5_IRQ:
    138       result = Is_PMC_85C30_5_IRQ( status_word );
     138      result = Is_PMC_85C30_5_IRQ( status_word ) ? true : false;
    139139      break;
    140140    case SCORE603E_85C30_3_IRQ:
    141       result = Is_PMC_85C30_3_IRQ( status_word );
     141      result = Is_PMC_85C30_3_IRQ( status_word ) ? true : false;
    142142      break;
    143143    default:
  • c/src/lib/libbsp/powerpc/score603e/timer/timer.c

    r1e524b51 r3551166d  
    6262  total = (uint32_t) total64;
    6363
    64   if ( benchmark_timer_find_average_overhead == 1 )
     64  if ( benchmark_timer_find_average_overhead == true )
    6565    return total;          /* in "clicks" of the decrementer units */
    6666
  • c/src/lib/libbsp/powerpc/score603e/tod/tod.c

    r1e524b51 r3551166d  
    108108  int year;
    109109  int usec;
    110   static bool init = TRUE;
     110  static bool init = true;
    111111
    112112  /* Initialize the clock at once prior to reading */
    113113  if (init ) {
    114114    ICM7170_SetField( imc1770_regs,  0x11, (0x0c | icm1770_freq) );
    115     init = FALSE;
     115    init = false;
    116116  }
    117117
  • c/src/lib/libcpu/arm/at91rm9200/timer/timer.c

    r1e524b51 r3551166d  
    2929
    3030uint16_t tstart;
    31 rtems_boolean benchmark_timer_find_average_overhead;
     31bool benchmark_timer_find_average_overhead;
    3232uint32_t tick_time;
    3333/*
     
    9393}
    9494
    95 void benchmark_timer_disable_subtracting_average_overhead(
    96   rtems_boolean find_flag
    97 )
     95void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    9896{
    9997  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/arm/lpc22xx/timer/timer.c

    r1e524b51 r3551166d  
    3030uint32_t g_freq;
    3131
    32 rtems_boolean benchmark_timer_find_average_overhead;
     32bool benchmark_timer_find_average_overhead;
    3333
    3434   
     
    6666}
    6767
    68 void benchmark_timer_disable_subtracting_average_overhead(
    69   rtems_boolean find_flag
    70 )
     68void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    7169{
    7270  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c

    r1e524b51 r3551166d  
    3131uint32_t g_freq;
    3232
    33 rtems_boolean benchmark_timer_find_average_overhead;
     33bool benchmark_timer_find_average_overhead;
    3434
    3535   
     
    9595}
    9696
    97 void benchmark_timer_disable_subtracting_average_overhead(
    98   rtems_boolean find_flag
    99 )
     97void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    10098{
    10199  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/arm/s3c2400/timer/timer.c

    r1e524b51 r3551166d  
    2828uint32_t g_freq;
    2929
    30 rtems_boolean benchmark_timer_find_average_overhead;
     30bool benchmark_timer_find_average_overhead;
    3131
    3232   
     
    102102}
    103103
    104 void benchmark_timer_disable_subtracting_average_overhead(
    105   rtems_boolean find_flag
    106 )
     104void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    107105{
    108106    benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/arm/s3c24xx/timer/timer.c

    r1e524b51 r3551166d  
    2828uint32_t g_freq;
    2929
    30 rtems_boolean benchmark_timer_find_average_overhead;
     30bool benchmark_timer_find_average_overhead;
    3131
    3232
     
    102102}
    103103
    104 void benchmark_timer_disable_subtracting_average_overhead(
    105   rtems_boolean find_flag
    106 )
     104void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    107105{
    108106    benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/bfin/network/ethernet.c

    r1e524b51 r3551166d  
    141141  dmaDescT data;
    142142  dmaDescT status;
    143   boolean inUse;
     143  bool    inUse;
    144144  union {
    145145    uint32_t dummy; /* try to force 32 bit alignment */
     
    286286}
    287287
    288 static boolean txFree(struct bfin_ethernetSoftc *sc, int index) {
    289   boolean freed;
     288static bool txFree(struct bfin_ethernetSoftc *sc, int index) {
     289  bool      freed;
    290290  txStatusT *status;
    291291
    292   freed = FALSE;
     292  freed = false;
    293293  if (sc->tx[index].inUse) {
    294294    status = (txStatusT *) sc->tx[index].status.addr;
     
    297297      /* update statistics */
    298298
    299       sc->tx[index].inUse = FALSE;
    300       freed = TRUE;
     299      sc->tx[index].inUse = false;
     300      freed = true;
    301301    }
    302302  }
     
    364364          status = (txStatusT *) sc->tx[head].status.addr;
    365365          status->status = 0;
    366           sc->tx[head].inUse = TRUE;
     366          sc->tx[head].inUse = true;
    367367          rtems_cache_flush_multiple_data_lines(status, sizeof(*status));
    368368
     
    692692    else
    693693      sc->tx[i].status.next = &(sc->tx[0].data);
    694     sc->tx[i].inUse = FALSE;
     694    sc->tx[i].inUse = false;
    695695    ptr += txStatusSize;
    696696  }
  • c/src/lib/libcpu/bfin/serial/twi.c

    r1e524b51 r3551166d  
    3838  uint8_t volatile *dataPtr;
    3939  int volatile count;
    40   boolean volatile masterActive;
     40  bool volatile masterActive;
    4141  rtems_status_code volatile masterResult;
    42   boolean volatile slaveActive;
     42  bool volatile slaveActive;
    4343} twi[N_BFIN_TWI];
    4444
     
    145145        BFIN_REG16(base, TWI_INT_STAT_OFFSET) = stat;
    146146        if ((stat & TWI_INT_STAT_SINIT) && !twi[i].slaveActive) {
    147           twi[i].slaveActive = TRUE;
     147          twi[i].slaveActive = true;
    148148          r = BFIN_REG16(base, TWI_FIFO_CTL_OFFSET);
    149149          BFIN_REG16(base, TWI_FIFO_CTL_OFFSET) = r | TWI_FIFO_CTL_XMTFLUSH;
     
    160160            r = BFIN_REG16(base, TWI_SLAVE_CTL_OFFSET);
    161161            BFIN_REG16(base, TWI_SLAVE_CTL_OFFSET) = r & ~TWI_SLAVE_CTL_STDVAL;
    162             twi[i].slaveActive = FALSE;
     162            twi[i].slaveActive = false;
    163163
    164164
     
    231231        }
    232232      }
    233       twi[channel].masterActive = TRUE;
     233      twi[channel].masterActive = true;
    234234      BFIN_REG16(base, TWI_MASTER_CTL_OFFSET) = masterMode;
    235235    } else {
    236       twi[channel].masterActive = FALSE;
     236      twi[channel].masterActive = false;
    237237      twi[channel].masterResult = -1; /* BISON (code should be equiv to lost arbitration) */
    238238    }
  • c/src/lib/libcpu/bfin/timer/timer.c

    r1e524b51 r3551166d  
    2323
    2424uint32_t         Timer_interrupts;
    25 rtems_boolean benchmark_timer_find_average_overhead;
     25bool benchmark_timer_find_average_overhead;
    2626
    2727/*
     
    8989}
    9090
    91 void benchmark_timer_disable_subtracting_average_overhead(
    92   rtems_boolean find_flag
    93 )
     91void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    9492{
    9593  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/m68k/mcf5206/timer/timer.c

    r1e524b51 r3551166d  
    3131uint32_t   Timer_interrupts;
    3232
    33 rtems_boolean benchmark_timer_find_average_overhead;
     33bool benchmark_timer_find_average_overhead;
    3434
    3535/* External assembler interrupt handler routine */
     
    146146 *
    147147 * PARAMETERS:
    148  *     find_flag - boolean flag, TRUE if overhead must not be subtracted.
     148 *     find_flag - boolean flag, true if overhead must not be subtracted.
    149149 *
    150150 * RETURNS:
     
    152152 */
    153153void
    154 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     154benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    155155{
    156156  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libcpu/m68k/mcf5272/timer/timer.c

    r1e524b51 r3551166d  
    3131uint32_t Timer_interrupts;
    3232
    33 rtems_boolean benchmark_timer_find_average_overhead;
     33bool benchmark_timer_find_average_overhead;
    3434
    3535/* External assembler interrupt handler routine */
     
    148148 *
    149149 * PARAMETERS:
    150  *     find_flag - boolean flag, TRUE if overhead must not be subtracted.
     150 *     find_flag - bool flag, true if overhead must not be subtracted.
    151151 *
    152152 * RETURNS:
     
    154154 */
    155155void
    156 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     156benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    157157{
    158158  benchmark_timer_find_average_overhead = find_flag;
Note: See TracChangeset for help on using the changeset viewer.