summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-05 11:40:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-05 11:40:32 +0000
commitfcd74835fed679c5da34240ad23b0ba4f965fa3a (patch)
tree4417b81eb2ee0ef2cee28a59d8062458259a93ca /c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
parent2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-fcd74835fed679c5da34240ad23b0ba4f965fa3a.tar.bz2
Convert to "bool".
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c b/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
index 55773a479b..2ef856af99 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c
@@ -40,8 +40,8 @@ i2c_transfer_sema_done_func(uint32_t arg)
static void
i2c_transfer_poll_done_func(uint32_t arg)
{
- rtems_boolean *poll_done_flag = (rtems_boolean *)arg;
- *poll_done_flag = 1;
+ bool *poll_done_flag = (bool *)arg;
+ *poll_done_flag = true;
}
/* i2c_transfer_wait_sema --
@@ -98,14 +98,14 @@ i2c_transfer_wait_sema(i2c_bus_number bus, i2c_message *msg, int nmsg)
static rtems_status_code
i2c_transfer_wait_poll(i2c_bus_number bus, i2c_message *msg, int nmsg)
{
- volatile rtems_boolean poll_done_flag;
+ volatile bool poll_done_flag;
rtems_status_code sc;
- poll_done_flag = 0;
+ poll_done_flag = false;
sc = i2c_transfer(bus, nmsg, msg, i2c_transfer_poll_done_func,
(uint32_t)&poll_done_flag);
if (sc != RTEMS_SUCCESSFUL)
return sc;
- while (poll_done_flag == 0)
+ while (poll_done_flag == false)
{
i2c_poll(bus);
}