summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen5200/tod
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-06 17:36:55 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-06 17:36:55 +0000
commit39d08d55e94d63aa0d4dd7281764a170382ae930 (patch)
tree19514ed39634459e482decfd2cfcb778bfcdc77e /c/src/lib/libbsp/powerpc/gen5200/tod
parent2008-09-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-39d08d55e94d63aa0d4dd7281764a170382ae930.tar.bz2
Convert to "bool".
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen5200/tod')
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/tod/todcfg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen5200/tod/todcfg.c b/c/src/lib/libbsp/powerpc/gen5200/tod/todcfg.c
index ea5f7e7e4f..5baac6ca67 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/tod/todcfg.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/tod/todcfg.c
@@ -40,7 +40,7 @@
#include "../tod/pcf8563.h"
/* Forward function declaration */
-boolean mpc5200_pcf8563_probe(int minor);
+bool mpc5200_pcf8563_probe(int minor);
extern rtc_fns pcf8563_fns;
@@ -77,7 +77,7 @@ rtems_device_minor_number RTC_Minor;
* RETURNS:
* TRUE, if RTC device is present
*/
-boolean
+bool
mpc5200_pcf8563_probe(int minor)
{
int try = 0;
@@ -87,7 +87,7 @@ mpc5200_pcf8563_probe(int minor)
i2c_address addr;
if (minor >= NUM_RTCS)
- return FALSE;
+ return false;
rtc = RTC_Table + minor;
@@ -96,11 +96,11 @@ mpc5200_pcf8563_probe(int minor)
do {
status = i2c_wrbyte(bus, addr, 0);
if (status == I2C_NO_DEVICE)
- return FALSE;
+ return false;
try++;
} while ((try < 15) && (status != I2C_SUCCESSFUL));
if (status == I2C_SUCCESSFUL)
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}