From f002800eafeeaa5a66f32ca13c2c50fe90660b93 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 4 Sep 2008 14:20:51 +0000 Subject: Use bool instead of boolean. --- cpukit/libi2c/libi2c.c | 8 ++++---- cpukit/libi2c/libi2c.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'cpukit/libi2c') diff --git a/cpukit/libi2c/libi2c.c b/cpukit/libi2c/libi2c.c index 096f8cc1c5..db0a4fc121 100644 --- a/cpukit/libi2c/libi2c.c +++ b/cpukit/libi2c/libi2c.c @@ -104,7 +104,7 @@ rtems_device_major_number rtems_libi2c_major; -static boolean is_initialized = FALSE; +static bool is_initialized = false; static struct i2cbus { @@ -223,7 +223,7 @@ rtems_i2c_init (rtems_device_major_number major, rtems_device_minor_number minor rval = mutexCreate (rtems_build_name ('l', 'I', '2', 'C'), &libmutex); if ( RTEMS_SUCCESSFUL == rval ) { - is_initialized = TRUE; + is_initialized = true; rtems_libi2c_major = major; } else { libmutex = 0; @@ -373,7 +373,7 @@ rtems_libi2c_initialize (void) if ( libmutex ) rtems_semaphore_delete (libmutex); libmutex = 0; - is_initialized = FALSE; + is_initialized = false; return -1; } @@ -576,7 +576,7 @@ rtems_libi2c_ioctl (rtems_device_minor_number minor, va_list ap; int sc = 0; void *args; - rtems_boolean is_started = FALSE; + bool is_started = false; DECL_CHECKED_BH (busno, bush, minor, -) va_start(ap, cmd); diff --git a/cpukit/libi2c/libi2c.h b/cpukit/libi2c/libi2c.h index fc1c57e423..8e52ec3e3e 100644 --- a/cpukit/libi2c/libi2c.h +++ b/cpukit/libi2c/libi2c.h @@ -437,10 +437,10 @@ typedef struct { uint32_t baudrate; /* maximum bits per second */ /* only valid for SPI drivers: */ uint8_t bits_per_char; /* how many bits per byte/word/longword? */ - boolean lsb_first; /* TRUE: send LSB first */ - boolean clock_inv; /* TRUE: inverted clock (high active) */ - boolean clock_phs; /* TRUE: clock starts toggling at start of data tfr */ - uint32_t idle_char; /* This character will be continuously transmitted in read only functions */ + bool lsb_first; /* true: send LSB first */ + bool clock_inv; /* true: inverted clock (high active) */ + bool clock_phs; /* true: clock starts toggling at start of data tfr */ + uint32_t idle_char; /* This character will be continuously transmitted in read only functions */ } rtems_libi2c_tfr_mode_t; typedef struct { -- cgit v1.2.3