1 | /* attr.h |
---|
2 | * |
---|
3 | * This include file contains all information about the Object Attributes |
---|
4 | * Handler. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1997. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * Copyright assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.OARcorp.com/rtems/license.html. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __RTEMS_ATTRIBUTES_h |
---|
18 | #define __RTEMS_ATTRIBUTES_h |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
23 | |
---|
24 | /* types */ |
---|
25 | |
---|
26 | typedef unsigned32 rtems_attribute; |
---|
27 | |
---|
28 | /* constants */ |
---|
29 | |
---|
30 | #define RTEMS_DEFAULT_ATTRIBUTES 0x00000000 |
---|
31 | |
---|
32 | #define RTEMS_NO_FLOATING_POINT 0x00000000 /* don't use FP HW */ |
---|
33 | #define RTEMS_FLOATING_POINT 0x00000001 /* utilize coprocessor */ |
---|
34 | |
---|
35 | #define RTEMS_LOCAL 0x00000000 /* local resource */ |
---|
36 | #define RTEMS_GLOBAL 0x00000002 /* global resource */ |
---|
37 | |
---|
38 | #define RTEMS_FIFO 0x00000000 /* process RTEMS_FIFO */ |
---|
39 | #define RTEMS_PRIORITY 0x00000004 /* process by priority */ |
---|
40 | |
---|
41 | #define RTEMS_COUNTING_SEMAPHORE 0x00000000 |
---|
42 | #define RTEMS_BINARY_SEMAPHORE 0x00000010 |
---|
43 | |
---|
44 | #define RTEMS_NO_INHERIT_PRIORITY 0x00000000 |
---|
45 | #define RTEMS_INHERIT_PRIORITY 0x00000020 |
---|
46 | |
---|
47 | #define RTEMS_NO_PRIORITY_CEILING 0x00000000 |
---|
48 | #define RTEMS_PRIORITY_CEILING 0x00000040 |
---|
49 | |
---|
50 | #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) |
---|
51 | #define ATTRIBUTES_NOT_SUPPORTED 0 |
---|
52 | #else |
---|
53 | #define ATTRIBUTES_NOT_SUPPORTED RTEMS_FLOATING_POINT |
---|
54 | #endif |
---|
55 | |
---|
56 | #if ( CPU_ALL_TASKS_ARE_FP == TRUE ) |
---|
57 | #define ATTRIBUTES_REQUIRED RTEMS_FLOATING_POINT |
---|
58 | #else |
---|
59 | #define ATTRIBUTES_REQUIRED 0 |
---|
60 | #endif |
---|
61 | |
---|
62 | /* |
---|
63 | * _Attributes_Handler_initialization |
---|
64 | * |
---|
65 | * DESCRIPTION: |
---|
66 | * |
---|
67 | * This routine performs initialization for this handler. |
---|
68 | * |
---|
69 | * NOTE: There is no initialization required in C. Conditional compilation |
---|
70 | * takes care of this in C. |
---|
71 | */ |
---|
72 | |
---|
73 | #define _Attributes_Handler_initialization() |
---|
74 | |
---|
75 | #ifndef __RTEMS_APPLICATION__ |
---|
76 | #include <rtems/rtems/attr.inl> |
---|
77 | #endif |
---|
78 | |
---|
79 | #ifdef __cplusplus |
---|
80 | } |
---|
81 | #endif |
---|
82 | |
---|
83 | #endif |
---|
84 | /* end of include file */ |
---|