OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [macros/] [rtems/] [rtems/] [attr.inl] - Blame information for rev 757

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.