source: rtems/cpukit/rtems/macros/rtems/rtems/attr.inl @ d964f79

4.104.114.84.95
Last change on this file since d964f79 was d964f79, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/02/04 at 09:56:13

Add doxygen preamble.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file rtems/rtems/attr.inl
3 */
4
5/*
6 *  This include file contains all of the inlined routines associated
7 *  with attributes.
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef __MACROS_ATTRIBUTES_h
20#define __MACROS_ATTRIBUTES_h
21
22/*PAGE
23 *
24 *  _Attributes_Set
25 */
26
27#define _Attributes_Set( _new_attributes, _attribute_set ) \
28  ( (_attribute_set) | (_new_attributes) )
29
30/*PAGE
31 *
32 *  _Attributes_Clear
33 */
34
35#define _Attributes_Clear( _attribute_set, _mask ) \
36  ( (_attribute_set) & ~(_mask) )
37
38/*PAGE
39 *
40 *  _Attributes_Is_floating_point
41 *
42 */
43
44#define _Attributes_Is_floating_point( _attribute_set ) \
45  ( (_attribute_set) & RTEMS_FLOATING_POINT )
46
47/*PAGE
48 *
49 *  _Attributes_Is_global
50 *
51 */
52
53#if defined(RTEMS_MULTIPROCESSING)
54#define _Attributes_Is_global( _attribute_set ) \
55  ( (_attribute_set) & RTEMS_GLOBAL )
56#endif
57
58/*PAGE
59 *
60 *  _Attributes_Is_priority
61 *
62 */
63
64#define _Attributes_Is_priority( _attribute_set ) \
65  ( (_attribute_set) & RTEMS_PRIORITY )
66
67/*PAGE
68 *
69 *  _Attributes_Is_binary_semaphore
70 *
71 */
72
73#define _Attributes_Is_binary_semaphore( _attribute_set ) \
74  (((_attribute_set) & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE)
75
76/*PAGE
77 *
78 *  _Attributes_Is_simple_binary_semaphore
79 *
80 */
81
82#define _Attributes_Is_simple_binary_semaphore( _attribute_set ) \
83  (((_attribute_set) & RTEMS_SEMAPHORE_CLASS) == RTEMS_SIMPLE_BINARY_SEMAPHORE)
84
85/*PAGE
86 *
87 *  _Attributes_Is_counting_semaphore
88 *
89 */
90
91#define _Attributes_Is_counting_semaphore( _attribute_set ) \
92  (((_attribute_set) & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE)
93
94/*PAGE
95 *
96 *  _Attributes_Is_inherit_priority
97 *
98 */
99
100#define _Attributes_Is_inherit_priority( _attribute_set ) \
101  ( (_attribute_set) & RTEMS_INHERIT_PRIORITY )
102
103/*PAGE
104 *
105 *  _Attributes_Is_priority_ceiling
106 *
107 */
108 
109#define _Attributes_Is_priority_ceiling( _attribute_set ) \
110  ( (_attribute_set) & RTEMS_PRIORITY_CEILING )
111
112/*PAGE
113 *
114 *  _Attributes_Is_system_task
115 *
116 */
117 
118#define _Attributes_Is_system_task( _attribute_set ) \
119  ( (_attribute_set) & RTEMS_SYSTEM_TASK )
120
121#endif
122/* end of include file */
Note: See TracBrowser for help on using the repository browser.