18 #ifndef _RTEMS_RTEMS_ATTR_INL 19 #define _RTEMS_RTEMS_ATTR_INL 22 #include <rtems/score/cpu.h> 42 #define ATTRIBUTES_NOT_SUPPORTED 0 48 #if ( CPU_ALL_TASKS_ARE_FP == TRUE ) 49 #define ATTRIBUTES_REQUIRED RTEMS_FLOATING_POINT 51 #define ATTRIBUTES_REQUIRED 0 65 return attribute_set | new_attributes;
80 return attribute_set & ~mask;
97 #if defined(RTEMS_MULTIPROCESSING) 197 return ( attribute_set & ( attribute_set - 1 ) ) == 0;
#define RTEMS_BINARY_SEMAPHORE
This attribute constant indicates that the Classic API Semaphore instance created will be a proper bi...
Definition: attr.h:106
uint32_t rtems_attribute
This defines the type used to contain Classic API attributes.
Definition: attr.h:44
#define RTEMS_FLOATING_POINT
This attribute constant indicates that the task will use the floating point hardware.
Definition: attr.h:86
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(rtems_attribute attribute_set)
Checks if the priority attribute is enabled in the attribute_set.
Definition: attrimpl.h:119
RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point(rtems_attribute attribute_set)
Checks if the floating point attribute is enabled in the attribute_set.
Definition: attrimpl.h:90
RTEMS_INLINE_ROUTINE bool _Attributes_Is_simple_binary_semaphore(rtems_attribute attribute_set)
Checks if the simple binary semaphore attribute is enabled in the attribute_set.
Definition: attrimpl.h:147
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
#define RTEMS_SIMPLE_BINARY_SEMAPHORE
This attribute constant indicates that the Classic API Semaphore instance created will be a simple bi...
Definition: attr.h:112
RTEMS_INLINE_ROUTINE bool _Attributes_Is_system_task(rtems_attribute attribute_set)
Checks if the system task attribute is enabled in the attribute_set.
Definition: attrimpl.h:249
#define RTEMS_COUNTING_SEMAPHORE
This attribute constant indicates that the Classic API Semaphore instance created will be a counting ...
Definition: attr.h:100
#define RTEMS_PRIORITY
This is the attribute constant which reflects that blocking tasks will be managed using task priority...
Definition: attr.h:70
RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Set(rtems_attribute new_attributes, rtems_attribute attribute_set)
Sets the requested new_attributes in the attribute_set passed in.
Definition: attrimpl.h:60
RTEMS_INLINE_ROUTINE bool _Attributes_Is_multiprocessor_resource_sharing(rtems_attribute attribute_set)
Checks if the Multiprocessor Resource Sharing Protocol attribute is enabled in the attribute_set...
Definition: attrimpl.h:221
#define RTEMS_PRIORITY_CEILING
This attribute constant indicates that the Classic API Semaphore instance created will use the Priori...
Definition: attr.h:140
#define RTEMS_GLOBAL
This is the attribute constant to indicate global resource.
Definition: attr.h:58
RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic(rtems_attribute attribute_set)
Checks if the barrier automatic release attribute is enabled in the attribute_set.
Definition: attrimpl.h:235
#define RTEMS_SEMAPHORE_CLASS
This is the mask for the attribute bits associated with the Classic API Semaphore Manager...
Definition: attr.h:94
#define RTEMS_INHERIT_PRIORITY
This attribute constant indicates that the Classic API Semaphore instance created will use the Priori...
Definition: attr.h:126
#define RTEMS_BARRIER_AUTOMATIC_RELEASE
This attribute constant indicates that the Classic API Barrier instance created will use an automatic...
Definition: attr.h:162
RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Clear(rtems_attribute attribute_set, rtems_attribute mask)
Clears the requested new_attributes in the attribute_set passed in.
Definition: attrimpl.h:75
#define RTEMS_SYSTEM_TASK
This attribute constant indicates that the task was created by RTEMS as a support task...
Definition: attr.h:182
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(rtems_attribute attribute_set)
Checks if the counting semaphore attribute is enabled in the attribute_set.
Definition: attrimpl.h:162
#define RTEMS_MULTIPROCESSOR_RESOURCE_SHARING
This attribute constant indicates that the Classic API Semaphore instance created will use the Multip...
Definition: attr.h:154
RTEMS_INLINE_ROUTINE bool _Attributes_Has_at_most_one_protocol(rtems_attribute attribute_set)
Returns true if the attribute set has at most one protocol, and false otherwise.
Definition: attrimpl.h:190
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(rtems_attribute attribute_set)
Checks if the binary semaphore attribute is enabled in the attribute_set.
Definition: attrimpl.h:133
RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(rtems_attribute attribute_set)
Checks if the priority inheritance attribute is enabled in the attribute_set.
Definition: attrimpl.h:176
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(rtems_attribute attribute_set)
Checks if the priority ceiling attribute is enabled in the attribute_set.
Definition: attrimpl.h:207