Changeset 907bf4b8 in rtems


Ignore:
Timestamp:
Sep 5, 2008, 8:46:27 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
e16fcaa3
Parents:
a65f9a22
Message:

Convert to "bool".

Location:
c/src/lib/libbsp/m68k
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/av5282/timer/timer.c

    ra65f9a22 r907bf4b8  
    2929
    3030void
    31 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     31benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    3232{
    3333}
  • c/src/lib/libbsp/m68k/gen68302/console/console.c

    ra65f9a22 r907bf4b8  
    105105 */
    106106
    107 rtems_boolean is_character_ready(
     107bool is_character_ready(
    108108  char *ch                              /* -> character  */
    109109)
     
    114114    for (;;) {
    115115        if (RXS & RBIT_HDLC_EMPTY_BIT)
    116             return FALSE;
     116            return false;
    117117
    118118        *ch = RXD;
    119119        RXS = RBIT_HDLC_EMPTY_BIT | RBIT_HDLC_WRAP_BIT;
    120120        if ( *ch >= ' ' &&  *ch <= '~' )
    121             return TRUE;
     121            return true;
    122122    }
    123123}
  • c/src/lib/libbsp/m68k/gen68302/timer/timer.c

    ra65f9a22 r907bf4b8  
    4141uint32_t         Timer_interrupts;
    4242
    43 rtems_boolean benchmark_timer_find_average_overhead;
     43bool benchmark_timer_find_average_overhead;
    4444
    4545rtems_isr timerisr(void);
     
    9696  total = (Timer_interrupts * TRR2_VAL) + clicks;
    9797
    98   if ( benchmark_timer_find_average_overhead == 1 )
     98  if ( benchmark_timer_find_average_overhead == true )
    9999    return total;          /* in XXX microsecond units */
    100100
     
    110110
    111111void benchmark_timer_disable_subtracting_average_overhead(
    112   rtems_boolean find_flag
     112  bool find_flag
    113113)
    114114{
  • c/src/lib/libbsp/m68k/gen68340/timer/timer.c

    ra65f9a22 r907bf4b8  
    270270 *****************************************************/
    271271void
    272 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
    273 {
    274 }
     272benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
     273{
     274}
  • c/src/lib/libbsp/m68k/gen68360/spi/m360_spi.c

    ra65f9a22 r907bf4b8  
    8686 m360_spi_softc_t *softc_ptr,            /* handle                         */
    8787 uint32_t bits_per_char,                 /* bits per character             */
    88  boolean  lsb_first,                     /* TRUE: send LSB first           */
     88 bool     lsb_first,                     /* TRUE: send LSB first           */
    8989 uint16_t *spimode                       /* result value                   */
    9090)
  • c/src/lib/libbsp/m68k/gen68360/timer/timer.c

    ra65f9a22 r907bf4b8  
    8080
    8181void
    82 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     82benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    8383{
    8484}
  • c/src/lib/libbsp/m68k/genmcf548x/timer/timer.c

    ra65f9a22 r907bf4b8  
    5555#include <mcf548x/mcf548x.h>
    5656
    57 rtems_boolean benchmark_timer_find_average_overhead;
     57bool benchmark_timer_find_average_overhead;
    5858static uint32_t microsecond_timer_value = 0;
    5959
    6060void benchmark_timer_initialize(void)
    6161{
    62 MCF548X_SLT_SLTCNT1 = 0xFFFFFFFF;
    63 MCF548X_SLT_SCR1 |= (MCF548X_SLT_SCR_TEN | MCF548X_SLT_SCR_RUN);
     62    MCF548X_SLT_SLTCNT1 = 0xFFFFFFFF;
     63    MCF548X_SLT_SCR1 |= (MCF548X_SLT_SCR_TEN | MCF548X_SLT_SCR_RUN);
    6464}
    6565
     
    7171benchmark_timer_read(void)
    7272{
    73         microsecond_timer_value = (0xFFFFFFFF - MCF548X_SLT_SCNT1)/100;
     73    microsecond_timer_value = (0xFFFFFFFF - MCF548X_SLT_SCNT1)/100;
     74
    7475    return microsecond_timer_value;
    7576}
    7677
    7778void
    78 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     79benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    7980{
    80 benchmark_timer_find_average_overhead = find_flag;
     81    benchmark_timer_find_average_overhead = find_flag;
    8182}
  • c/src/lib/libbsp/m68k/idp/console/console.c

    ra65f9a22 r907bf4b8  
    8686 */
    8787
    88 rtems_boolean is_character_ready(
     88bool is_character_ready(
    8989  char *ch,
    9090  int   port
     
    9292{
    9393  if ( Ring_buffer_Is_empty( &Console_Buffer[ port ] ) )
    94     return FALSE;
     94    return false;
    9595
    9696  Ring_buffer_Remove_character( &Console_Buffer[ port ], *ch );
    97   return TRUE;
     97  return true;
    9898}
    9999
     
    110110 */
    111111
    112 rtems_boolean quick_char_check(
     112bool quick_char_check(
    113113  int   port
    114114)
    115115{
    116116  if ( Ring_buffer_Is_empty( &Console_Buffer[ port ] ) )
    117     return FALSE;
    118 
    119   return TRUE;
     117    return false;
     118
     119  return true;
    120120}
    121121
  • c/src/lib/libbsp/m68k/idp/timer/timer.c

    ra65f9a22 r907bf4b8  
    3333
    3434int Ttimer_val;
    35 rtems_boolean benchmark_timer_find_average_overhead;
     35bool benchmark_timer_find_average_overhead;
    3636
    3737rtems_isr timerisr(void);
     
    9494
    9595  /* do not restore old vector */
    96   if ( benchmark_timer_find_average_overhead == 1 )
     96  if ( benchmark_timer_find_average_overhead == true )
    9797    return total;          /* in countdown units */
    9898
     
    107107
    108108void benchmark_timer_disable_subtracting_average_overhead(
    109   rtems_boolean find_flag
     109  bool find_flag
    110110)
    111111{
  • c/src/lib/libbsp/m68k/mcf52235/timer/timer.c

    ra65f9a22 r907bf4b8  
    3434}
    3535
    36 void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     36void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    3737{
    3838}
  • c/src/lib/libbsp/m68k/mcf5235/timer/timer.c

    ra65f9a22 r907bf4b8  
    2929
    3030void
    31 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     31benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    3232{
    3333}
  • c/src/lib/libbsp/m68k/mcf5329/timer/timer.c

    ra65f9a22 r907bf4b8  
    3535}
    3636
    37 void benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     37void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    3838{
    3939}
  • c/src/lib/libbsp/m68k/mrm332/timer/timer.c

    ra65f9a22 r907bf4b8  
    2222#include <bsp.h>
    2323
    24 rtems_boolean benchmark_timer_find_average_overhead;
     24bool benchmark_timer_find_average_overhead;
    2525
    2626extern rtems_isr Clock_isr(void);
     
    5555  total = 0;
    5656
    57   if ( benchmark_timer_find_average_overhead == 1 )
     57  if ( benchmark_timer_find_average_overhead == true )
    5858    return total;          /* in XXX microsecond units */
    5959
     
    6565
    6666void benchmark_timer_disable_subtracting_average_overhead(
    67   rtems_boolean find_flag
     67  bool find_flag
    6868)
    6969{
  • c/src/lib/libbsp/m68k/mvme136/console/console.c

    ra65f9a22 r907bf4b8  
    6262 */
    6363
    64 rtems_boolean is_character_ready(
     64bool is_character_ready(
    6565  char *ch
    6666)
    6767{
    6868  if ( !(_Read_m681->srb & RXRDYB) )
    69     return(FALSE);
     69    return false;
    7070
    7171  *ch = _Read_m681->rbb;
    72   return(TRUE);
     72  return true;
    7373}
    7474
  • c/src/lib/libbsp/m68k/mvme136/timer/timer.c

    ra65f9a22 r907bf4b8  
    3030
    3131int Ttimer_val;
    32 rtems_boolean benchmark_timer_find_average_overhead;
     32bool benchmark_timer_find_average_overhead;
    3333
    3434rtems_isr timerisr(void);
     
    8383  total = (Ttimer_val * 0x10000) + remaining;
    8484
    85   if ( benchmark_timer_find_average_overhead == 1 )
     85  if ( benchmark_timer_find_average_overhead == true )
    8686    return total;          /* in one-half microsecond units */
    8787
     
    9494
    9595void benchmark_timer_disable_subtracting_average_overhead(
    96   rtems_boolean find_flag
     96  bool find_flag
    9797)
    9898{
  • c/src/lib/libbsp/m68k/mvme147/console/console.c

    ra65f9a22 r907bf4b8  
    6666 */
    6767
    68 rtems_boolean is_character_ready(
     68bool is_character_ready(
    6969  char *ch
    7070)
     
    7575    Z8x30_READ_CONTROL( CONSOLE_CONTROL, RR_0, rr_0 );
    7676    if ( !(rr_0 & RR_0_RX_DATA_AVAILABLE) )
    77       return( FALSE );
     77      return false;
    7878
    7979    Z8x30_READ_DATA( CONSOLE_DATA, *ch );
    80     return( TRUE );
     80    return true;
    8181  }
    8282}
  • c/src/lib/libbsp/m68k/mvme147/timer/timer.c

    ra65f9a22 r907bf4b8  
    3333
    3434int Ttimer_val;
    35 rtems_boolean benchmark_timer_find_average_overhead;
     35bool benchmark_timer_find_average_overhead;
    3636
    3737rtems_isr timerisr(void);
     
    7272
    7373void benchmark_timer_disable_subtracting_average_overhead(
    74   rtems_boolean find_flag
     74  bool find_flag
    7575)
    7676{
  • c/src/lib/libbsp/m68k/mvme162/console/console.c

    ra65f9a22 r907bf4b8  
    111111 */
    112112
    113 rtems_boolean char_ready(int port, char *ch)
     113bool char_ready(int port, char *ch)
    114114{
    115115  if ( Ring_buffer_Is_empty( &Console_Buffer[port] ) )
    116     return FALSE;
     116    return false;
    117117
    118118  Ring_buffer_Remove_character( &Console_Buffer[port], *ch );
    119119
    120   return TRUE;
     120  return false;
    121121}
    122122
  • c/src/lib/libbsp/m68k/mvme162/include/bsp.h

    ra65f9a22 r907bf4b8  
    128128enum {portB, portA};
    129129
    130 rtems_boolean char_ready(int port, char *ch);
    131 char char_wait(int port);
    132 void char_put(int port, char ch);
     130extern bool char_ready(int port, char *ch);
     131extern char char_wait(int port);
     132extern void char_put(int port, char ch);
    133133
    134134#define TX_BUFFER_EMPTY   0x04
  • c/src/lib/libbsp/m68k/mvme162/timer/timer.c

    ra65f9a22 r907bf4b8  
    3939
    4040uint32_t            Ttimer_val;
    41 rtems_boolean       benchmark_timer_find_average_overhead;
     41bool                benchmark_timer_find_average_overhead;
    4242
    4343rtems_isr timerisr(void);
     
    7070  total = (Ttimer_val * TICK_INTERVAL) + lcsr->timer_cnt_1;
    7171
    72   if ( benchmark_timer_find_average_overhead == 1 )
     72  if ( benchmark_timer_find_average_overhead == true )
    7373    return total;          /* in one-half microsecond units */
    7474
     
    8080
    8181void benchmark_timer_disable_subtracting_average_overhead(
    82   rtems_boolean find_flag
     82  bool find_flag
    8383)
    8484{
  • c/src/lib/libbsp/m68k/mvme167/console/console.c

    ra65f9a22 r907bf4b8  
    139139uint16_t         cd2401_bitrate_divisor( uint32_t         clkrate, uint32_t        * bitrate );
    140140void cd2401_initialize( void );
    141 void cd2401_interrupts_initialize( rtems_boolean enable );
     141void cd2401_interrupts_initialize( bool enable );
    142142
    143143/* ISRs */
     
    411411 */
    412412void cd2401_interrupts_initialize(
    413   rtems_boolean enable
     413  bool enable
    414414)
    415415{
  • c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c

    ra65f9a22 r907bf4b8  
    6464User_extensions_routine bsp_fatal_error_occurred(
    6565  Internal_errors_Source  the_source,
    66   rtems_boolean           is_internal,
     66  bool                    is_internal,
    6767  uint32_t                the_error
    6868)
  • c/src/lib/libbsp/m68k/mvme167/include/fatal.h

    ra65f9a22 r907bf4b8  
    1515User_extensions_routine bsp_fatal_error_occurred(
    1616  Internal_errors_Source  the_source,
    17   rtems_boolean           is_internal,
     17  bool                    is_internal,
    1818  uint32_t                the_error
    1919);
  • c/src/lib/libbsp/m68k/mvme167/timer/timer.c

    ra65f9a22 r907bf4b8  
    4343
    4444/*
    45  *  Set to TRUE to return raw value. Normally zero. Depends on being allocated
     45 *  Set to true to return raw value. Normally zero. Depends on being allocated
    4646 *  in the .bss section and on that section being explicitly zeroed at boot
    4747 *  time.
    4848 */
    49 rtems_boolean      benchmark_timer_find_average_overhead;
     49bool benchmark_timer_find_average_overhead;
    5050
    5151rtems_isr timerisr(void);
     
    130130 */
    131131void benchmark_timer_disable_subtracting_average_overhead(
    132   rtems_boolean find_flag
     132  bool find_flag
    133133)
    134134{
  • c/src/lib/libbsp/m68k/ods68302/console/console.c

    ra65f9a22 r907bf4b8  
    6565 */
    6666
    67 rtems_boolean is_character_ready(
     67bool is_character_ready(
    6868  char *ch                              /* -> character  */
    6969)
     
    7272  {
    7373    *ch = debug_port_in();
    74     return TRUE;
     74    return true;
    7575  }
    76   return FALSE;
     76  return false;
    7777}
    7878
  • c/src/lib/libbsp/m68k/ods68302/timer/timer.c

    ra65f9a22 r907bf4b8  
    4141uint32_t         Timer_interrupts;
    4242
    43 rtems_boolean benchmark_timer_find_average_overhead;
     43bool benchmark_timer_find_average_overhead;
    4444
    4545rtems_isr timerisr(void);
     
    9696  total = (Timer_interrupts * TRR2_VAL) + clicks;
    9797
    98   if ( benchmark_timer_find_average_overhead == 1 )
     98  if ( benchmark_timer_find_average_overhead == true )
    9999    return total;          /* in XXX microsecond units */
    100100
     
    110110
    111111void benchmark_timer_disable_subtracting_average_overhead(
    112   rtems_boolean find_flag
     112  bool find_flag
    113113)
    114114{
  • c/src/lib/libbsp/m68k/uC5282/timer/timer.c

    ra65f9a22 r907bf4b8  
    4242
    4343void
    44 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     44benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    4545{
    4646}
Note: See TracChangeset for help on using the changeset viewer.