1 | /** |
---|
2 | * @file rtems/rtems/options.h |
---|
3 | * |
---|
4 | * @brief Information Which Defines the Options Available on Many Directives. |
---|
5 | * |
---|
6 | * This include file contains information which defines the |
---|
7 | * options available on many directives. |
---|
8 | */ |
---|
9 | |
---|
10 | /* COPYRIGHT (c) 1989-2008. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef _RTEMS_RTEMS_OPTIONS_H |
---|
19 | #define _RTEMS_RTEMS_OPTIONS_H |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | /** |
---|
26 | * @defgroup ClassicOptions Classic API Options |
---|
27 | * |
---|
28 | * This encapsulates functionality which XXX |
---|
29 | */ |
---|
30 | /**@{*/ |
---|
31 | |
---|
32 | /** |
---|
33 | * The following type defines the control block used to manage |
---|
34 | * option sets. |
---|
35 | */ |
---|
36 | typedef uint32_t rtems_option; |
---|
37 | |
---|
38 | /** |
---|
39 | * The following constants define the individual options which may |
---|
40 | * be used to compose an option set. |
---|
41 | */ |
---|
42 | #define RTEMS_DEFAULT_OPTIONS 0x00000000 |
---|
43 | |
---|
44 | /** |
---|
45 | * This option constants indicates that the task is to wait on resource. |
---|
46 | */ |
---|
47 | #define RTEMS_WAIT 0x00000000 |
---|
48 | /** |
---|
49 | * This option constants indicates that the task is to not wait on |
---|
50 | * the resource. If it is not available, return immediately with |
---|
51 | * a status to indicate unsatisfied. |
---|
52 | */ |
---|
53 | #define RTEMS_NO_WAIT 0x00000001 |
---|
54 | |
---|
55 | /** |
---|
56 | * This option constants indicates that the task wishes to wait until |
---|
57 | * all events of interest are available. |
---|
58 | */ |
---|
59 | #define RTEMS_EVENT_ALL 0x00000000 |
---|
60 | |
---|
61 | /** |
---|
62 | * This option constants indicates that the task wishes to wait until |
---|
63 | * ANY events of interest are available. |
---|
64 | */ |
---|
65 | #define RTEMS_EVENT_ANY 0x00000002 |
---|
66 | |
---|
67 | #ifndef __RTEMS_APPLICATION__ |
---|
68 | #include <rtems/rtems/options.inl> |
---|
69 | #endif |
---|
70 | |
---|
71 | #ifdef __cplusplus |
---|
72 | } |
---|
73 | #endif |
---|
74 | |
---|
75 | /**@}*/ |
---|
76 | |
---|
77 | #endif |
---|
78 | /* end of include file */ |
---|