mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 19:35:42 +08:00
Convert to "bool".
This commit is contained in:
@@ -16,13 +16,13 @@
|
||||
#ifndef _RTEMS_ITRON_MBOX_H
|
||||
#define _RTEMS_ITRON_MBOX_H
|
||||
|
||||
#include <rtems/itron/object.h>
|
||||
#include <rtems/score/coremsg.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems/itron/object.h>
|
||||
#include <rtems/score/coremsg.h>
|
||||
|
||||
/*
|
||||
* The following defines the control block used to manage each mailbox.
|
||||
*/
|
||||
@@ -30,7 +30,7 @@ extern "C" {
|
||||
typedef struct {
|
||||
ITRON_Objects_Control Object;
|
||||
uint32_t count;
|
||||
boolean do_message_priority;
|
||||
bool do_message_priority;
|
||||
CORE_message_queue_Control message_queue;
|
||||
} ITRON_Mailbox_Control;
|
||||
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
#ifndef _RTEMS_ITRON_MSGBUFFER_H
|
||||
#define _RTEMS_ITRON_MSGBUFFER_H
|
||||
|
||||
#include <rtems/itron/object.h>
|
||||
#include <rtems/score/coremsg.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems/itron/object.h>
|
||||
#include <rtems/score/coremsg.h>
|
||||
|
||||
/*
|
||||
* The following defines the control block used to manage each
|
||||
* message buffer.
|
||||
@@ -30,7 +30,7 @@ extern "C" {
|
||||
|
||||
typedef struct {
|
||||
ITRON_Objects_Control Object;
|
||||
boolean is_priority_blocking;
|
||||
bool is_priority_blocking;
|
||||
CORE_message_queue_Control message_queue;
|
||||
} ITRON_Message_buffer_Control;
|
||||
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
#ifndef _RTEMS_ITRON_SEMAPHORE_H
|
||||
#define _RTEMS_ITRON_SEMAPHORE_H
|
||||
|
||||
#include <rtems/itron/object.h>
|
||||
#include <rtems/score/coresem.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems/itron/object.h>
|
||||
#include <rtems/score/coresem.h>
|
||||
|
||||
/*
|
||||
* The following defines the control block used to manage each semaphore.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
ITRON_Objects_Control Object;
|
||||
boolean is_priority_blocking;
|
||||
bool is_priority_blocking;
|
||||
CORE_semaphore_Control semaphore;
|
||||
} ITRON_Semaphore_Control;
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Eventflags_Control *_ITRON_Eventflags_Get (
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Eventflags_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Eventflags_Is_null (
|
||||
ITRON_Eventflags_Control *the_eventflags
|
||||
)
|
||||
{
|
||||
|
||||
@@ -146,7 +146,7 @@ RTEMS_INLINE_ROUTINE ITRON_Fixed_memory_pool_Control
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Fixed_memory_pool_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Fixed_memory_pool_Is_null (
|
||||
ITRON_Fixed_memory_pool_Control *the_fixed_memory_pool
|
||||
)
|
||||
{
|
||||
|
||||
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Mailbox_Control *_ITRON_Mailbox_Get (
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Mailbox_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Mailbox_Is_null (
|
||||
ITRON_Mailbox_Control *the_mailbox
|
||||
)
|
||||
{
|
||||
|
||||
@@ -144,7 +144,7 @@ RTEMS_INLINE_ROUTINE ITRON_Message_buffer_Control *_ITRON_Message_buffer_Get (
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Message_buffer_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Message_buffer_Is_null (
|
||||
ITRON_Message_buffer_Control *the_message_buffer
|
||||
)
|
||||
{
|
||||
|
||||
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Port_Control *_ITRON_Port_Get (
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Port_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Port_Is_null (
|
||||
ITRON_Port_Control *the_port
|
||||
)
|
||||
{
|
||||
|
||||
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Semaphore_Control *_ITRON_Semaphore_Get (
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Semaphore_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Semaphore_Is_null (
|
||||
ITRON_Semaphore_Control *the_semaphore
|
||||
)
|
||||
{
|
||||
|
||||
@@ -145,7 +145,7 @@ RTEMS_INLINE_ROUTINE Thread_Control *_ITRON_Task_Get (
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Task_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Task_Is_null (
|
||||
Thread_Control *the_task
|
||||
)
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ RTEMS_INLINE_ROUTINE ITRON_Variable_memory_pool_Control
|
||||
* FALSE - otherwise
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE boolean _ITRON_Variable_memory_pool_Is_null (
|
||||
RTEMS_INLINE_ROUTINE bool _ITRON_Variable_memory_pool_Is_null (
|
||||
ITRON_Variable_memory_pool_Control *the_variable_memory_pool
|
||||
)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user