summaryrefslogtreecommitdiffstats
path: root/cpukit/itron/src
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-04 16:04:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-04 16:04:00 +0000
commit22d66ab1af9cafec423a78692286c64b4da1c80b (patch)
treeae1d5b5934a07f5c4906d754f3acac4812e4a4a6 /cpukit/itron/src
parentConvert to "bool". (diff)
downloadrtems-22d66ab1af9cafec423a78692286c64b4da1c80b.tar.bz2
Convert to "bool".
Diffstat (limited to 'cpukit/itron/src')
-rw-r--r--cpukit/itron/src/cre_tsk.c4
-rw-r--r--cpukit/itron/src/sta_tsk.c2
-rw-r--r--cpukit/itron/src/task.c6
-rw-r--r--cpukit/itron/src/trcv_mbf.c6
-rw-r--r--cpukit/itron/src/trcv_mbx.c8
-rw-r--r--cpukit/itron/src/tsnd_mbf.c6
-rw-r--r--cpukit/itron/src/twai_sem.c6
7 files changed, 19 insertions, 19 deletions
diff --git a/cpukit/itron/src/cre_tsk.c b/cpukit/itron/src/cre_tsk.c
index 6c2047303a..a0939ee785 100644
--- a/cpukit/itron/src/cre_tsk.c
+++ b/cpukit/itron/src/cre_tsk.c
@@ -35,7 +35,7 @@ ER cre_tsk(
)
{
register Thread_Control *the_thread;
- boolean status;
+ bool status;
Priority_Control core_priority;
Objects_Name name;
@@ -117,7 +117,7 @@ ER cre_tsk(
* NOTE: Since the thread starts with all unblocked, this is necessary.
*/
- the_thread->do_post_task_switch_extension = TRUE;
+ the_thread->do_post_task_switch_extension = true;
the_thread->Start.entry_point = (Thread_Entry) pk_ctsk->task;
diff --git a/cpukit/itron/src/sta_tsk.c b/cpukit/itron/src/sta_tsk.c
index 8b7f73fca2..f7d1a12a07 100644
--- a/cpukit/itron/src/sta_tsk.c
+++ b/cpukit/itron/src/sta_tsk.c
@@ -35,7 +35,7 @@ ER sta_tsk(
{
register Thread_Control *the_thread;
Objects_Locations location;
- boolean status;
+ bool status;
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
diff --git a/cpukit/itron/src/task.c b/cpukit/itron/src/task.c
index 2d1f5ef59a..b52663d160 100644
--- a/cpukit/itron/src/task.c
+++ b/cpukit/itron/src/task.c
@@ -35,7 +35,7 @@
* area.
*/
-boolean _ITRON_Task_Create_extension(
+bool _ITRON_Task_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
@@ -50,7 +50,7 @@ boolean _ITRON_Task_Create_extension(
api = _Workspace_Allocate( sizeof( ITRON_API_Control ) );
if ( !api )
- return FALSE;
+ return false;
created->API_Extensions[ THREAD_API_ITRON ] = api;
#else
@@ -61,7 +61,7 @@ boolean _ITRON_Task_Create_extension(
* Initialize the ITRON API extension
*/
- return TRUE;
+ return true;
}
/*
diff --git a/cpukit/itron/src/trcv_mbf.c b/cpukit/itron/src/trcv_mbf.c
index ef3e5372d9..1aee879682 100644
--- a/cpukit/itron/src/trcv_mbf.c
+++ b/cpukit/itron/src/trcv_mbf.c
@@ -34,15 +34,15 @@ ER trcv_mbf(
ITRON_Message_buffer_Control *the_message_buffer;
Objects_Locations location;
CORE_message_queue_Status status;
- boolean wait;
+ bool wait;
Watchdog_Interval interval;
size_t msgsz;
interval = 0;
if (tmout == TMO_POL) {
- wait = FALSE;
+ wait = false;
} else {
- wait = TRUE;
+ wait = true;
if (tmout != TMO_FEVR)
interval = TOD_MILLISECONDS_TO_TICKS(tmout);
}
diff --git a/cpukit/itron/src/trcv_mbx.c b/cpukit/itron/src/trcv_mbx.c
index 8b8dec0168..156b3b004d 100644
--- a/cpukit/itron/src/trcv_mbx.c
+++ b/cpukit/itron/src/trcv_mbx.c
@@ -32,18 +32,18 @@ ER trcv_msg(
{
register ITRON_Mailbox_Control *the_mailbox;
Watchdog_Interval interval;
- boolean wait;
+ bool wait;
Objects_Locations location;
- uint32_t size;
+ size_t size;
if (!ppk_msg)
return E_PAR;
interval = 0;
if ( tmout == TMO_POL ) {
- wait = FALSE;
+ wait = false;
} else {
- wait = TRUE;
+ wait = true;
if ( tmout != TMO_FEVR )
interval = TOD_MILLISECONDS_TO_TICKS(tmout);
}
diff --git a/cpukit/itron/src/tsnd_mbf.c b/cpukit/itron/src/tsnd_mbf.c
index bd6cc33fbf..c6df538572 100644
--- a/cpukit/itron/src/tsnd_mbf.c
+++ b/cpukit/itron/src/tsnd_mbf.c
@@ -36,7 +36,7 @@ ER tsnd_mbf(
ITRON_Message_buffer_Control *the_message_buffer;
Objects_Locations location;
Watchdog_Interval interval;
- boolean wait;
+ bool wait;
CORE_message_queue_Status msg_status;
if (msgsz <= 0 || !msg)
@@ -44,9 +44,9 @@ ER tsnd_mbf(
interval = 0;
if ( tmout == TMO_POL ) {
- wait = FALSE;
+ wait = false;
} else {
- wait = TRUE;
+ wait = true;
if ( tmout != TMO_FEVR )
interval = TOD_MILLISECONDS_TO_TICKS(tmout);
}
diff --git a/cpukit/itron/src/twai_sem.c b/cpukit/itron/src/twai_sem.c
index 34d0694af2..e17de71e28 100644
--- a/cpukit/itron/src/twai_sem.c
+++ b/cpukit/itron/src/twai_sem.c
@@ -33,13 +33,13 @@ ER twai_sem(
ITRON_Semaphore_Control *the_semaphore;
Objects_Locations location;
Watchdog_Interval interval;
- boolean blocking;
+ bool blocking;
interval = 0;
if ( tmout == TMO_POL ) {
- blocking = FALSE;
+ blocking = false;
} else {
- blocking = TRUE;
+ blocking = true;
if ( tmout != TMO_FEVR )
interval = TOD_MILLISECONDS_TO_TICKS(tmout);