Changeset f002800e in rtems for cpukit/libi2c


Ignore:
Timestamp:
Sep 4, 2008, 2:20:51 PM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f5b3ec91
Parents:
5b708c1
Message:

Use bool instead of boolean.

Location:
cpukit/libi2c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libi2c/libi2c.c

    r5b708c1 rf002800e  
    105105rtems_device_major_number rtems_libi2c_major;
    106106
    107 static boolean            is_initialized = FALSE;
     107static bool is_initialized = false;
    108108
    109109static struct i2cbus
     
    224224
    225225  if ( RTEMS_SUCCESSFUL == rval ) {
    226         is_initialized     = TRUE;
     226        is_initialized     = true;
    227227        rtems_libi2c_major = major;
    228228  } else {
     
    374374        rtems_semaphore_delete (libmutex);
    375375    libmutex = 0;
    376         is_initialized = FALSE;
     376        is_initialized = false;
    377377    return -1;
    378378  }
     
    577577  int sc = 0;
    578578  void *args;
    579   rtems_boolean is_started = FALSE;
     579  bool is_started = false;
    580580  DECL_CHECKED_BH (busno, bush, minor, -)
    581581   
  • cpukit/libi2c/libi2c.h

    r5b708c1 rf002800e  
    438438                           /* only valid for SPI drivers:           */
    439439  uint8_t  bits_per_char;  /* how many bits per byte/word/longword? */
    440   boolean  lsb_first;      /* TRUE: send LSB first                  */
    441   boolean  clock_inv;      /* TRUE: inverted clock (high active)    */
    442   boolean  clock_phs;      /* TRUE: clock starts toggling at start of data tfr */
    443   uint32_t  idle_char;      /* This character will be continuously transmitted in read only functions */
     440  bool     lsb_first;      /* true: send LSB first                  */
     441  bool     clock_inv;      /* true: inverted clock (high active)    */
     442  bool     clock_phs;      /* true: clock starts toggling at start of data tfr */
     443  uint32_t  idle_char;     /* This character will be continuously transmitted in read only functions */
    444444} rtems_libi2c_tfr_mode_t;
    445445
Note: See TracChangeset for help on using the changeset viewer.