diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-02 12:55:44 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-02 12:55:44 +0000 |
commit | 9a73f42181a3726e9b9387823660a6c8314efcbc (patch) | |
tree | 9b4a53ca2b2c12ef118e28f25a09685ec4158d65 /c/src/lib/libcpu/powerpc/ppc403 | |
parent | 2008-09-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-9a73f42181a3726e9b9387823660a6c8314efcbc.tar.bz2 |
Eliminate rtems_boolean.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/powerpc/ppc403/clock/clock.c | 10 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c index 945ffddccb..7c30022fab 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c +++ b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c @@ -66,7 +66,7 @@ volatile uint32_t Clock_driver_ticks; static uint32_t pit_value, tick_time; -static rtems_boolean auto_restart; +static bool auto_restart; void Clock_exit( void ); @@ -243,13 +243,13 @@ void ClockOn( if ((pvr & 0xff00) == 0x0000) /* 403GA */ #if 0 /* FIXME: in which processor versions will "autoload" work properly? */ - auto_restart = (pvr & 0x00f0) > 0x0000 ? 1 : 0; + auto_restart = (pvr & 0x00f0) > 0x0000 ? true : false; #else /* no known chip version supports auto restart of timer... */ - auto_restart = 0; + auto_restart = false; #endif else if ((pvr & 0xff00) == 0x0100) /* 403GB */ - auto_restart = 1; + auto_restart = true; #else /* ppc405 */ asm volatile ("mfdcr %0, 0x0b2" : "=r" (iocr)); /*405GP CPC0_CR1 */ @@ -265,7 +265,7 @@ void ClockOn( * Enable auto restart */ - auto_restart=1; + auto_restart=true; #endif /* ppc405 */ pit_value = rtems_configuration_get_microseconds_per_tick() * diff --git a/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled b/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled index a90da86432..8b0c421f96 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled +++ b/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled @@ -193,7 +193,7 @@ rtems_device_driver console_initialize( * Return values: */ -rtems_boolean is_character_ready( +bool is_character_ready( char *ch ) { @@ -202,7 +202,7 @@ rtems_boolean is_character_ready( if ((status = port->SPLS) & LSRDataReady) { *ch = port->SPRB; - return(TRUE); + return true; } /* Clean any dodgy status */ @@ -213,7 +213,7 @@ rtems_boolean is_character_ready( LSRBreakInterrupt); } - return FALSE; + return false; } /* inbyte |