source: rtems/cpukit/include/rtems/rtems/options.h @ 8de874b

Last change on this file since 8de874b was 8de874b, checked in by Sebastian Huber <sebastian.huber@…>, on 06/04/20 at 17:50:25

rtems: Generate <rtems/rtems/options.h>

Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.

  • Property mode set to 100644
File size: 4.1 KB
Line 
1/* SPDX-License-Identifier: BSD-2-Clause */
2
3/**
4 * @file
5 *
6 * @brief This header file provides the Classic API directive options.
7 */
8
9/*
10 * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
11 * Copyright (C) 1989, 2008 On-Line Applications Research Corporation (OAR)
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 * 1. Redistributions of source code must retain the above copyright
17 *    notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 *    notice, this list of conditions and the following disclaimer in the
20 *    documentation and/or other materials provided with the distribution.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 */
34
35/*
36 * This file is part of the RTEMS quality process and was automatically
37 * generated.  If you find something that needs to be fixed or
38 * worded better please post a report or patch to an RTEMS mailing list
39 * or raise a bug report:
40 *
41 * https://docs.rtems.org/branches/master/user/support/bugs.html
42 *
43 * For information on updating and regenerating please refer to:
44 *
45 * https://docs.rtems.org/branches/master/eng/req/howto.html
46 */
47
48/* Generated from spec:/rtems/option/if/header */
49
50#ifndef _RTEMS_RTEMS_OPTIONS_H
51#define _RTEMS_RTEMS_OPTIONS_H
52
53#include <stdint.h>
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
59/* Generated from spec:/rtems/option/if/group */
60
61/**
62 * @defgroup RTEMSAPIClassicOptions Directive Options
63 *
64 * @ingroup RTEMSAPIClassic
65 *
66 * @brief This group contains the Classic API directive options.
67 */
68
69/* Generated from spec:/rtems/option/if/default */
70
71/**
72 * @ingroup RTEMSAPIClassicOptions
73 *
74 * @brief This option constant represents the default option set.
75 */
76#define RTEMS_DEFAULT_OPTIONS 0x00000000
77
78/* Generated from spec:/rtems/option/if/event-all */
79
80/**
81 * @ingroup RTEMSAPIClassicOptions
82 *
83 * @brief This option constant indicates that the task wishes to wait until all
84 *   events of interest are available in rtems_event_receive() and
85 *   rtems_event_system_receive().
86 */
87#define RTEMS_EVENT_ALL 0x00000000
88
89/* Generated from spec:/rtems/option/if/event-any */
90
91/**
92 * @ingroup RTEMSAPIClassicOptions
93 *
94 * @brief This option constant indicates that the task wishes to wait until at
95 *   least one of the events of interest is available in rtems_event_receive()
96 *   and rtems_event_system_receive().
97 */
98#define RTEMS_EVENT_ANY 0x00000002
99
100/* Generated from spec:/rtems/option/if/no-wait */
101
102/**
103 * @ingroup RTEMSAPIClassicOptions
104 *
105 * @brief This option constant indicates that the task does not want to wait on
106 *   the resource.
107 *
108 * If the resource is not available, then the directives shall return
109 * immediately with a status to indicate that the request is unsatisfied.
110 */
111#define RTEMS_NO_WAIT 0x00000001
112
113/* Generated from spec:/rtems/option/if/option */
114
115/**
116 * @ingroup RTEMSAPIClassicOptions
117 *
118 * @brief This type represents a Classic API directive option set.
119 */
120typedef uint32_t rtems_option;
121
122/* Generated from spec:/rtems/option/if/wait */
123
124/**
125 * @ingroup RTEMSAPIClassicOptions
126 *
127 * @brief This option constant indicates that the task wants to wait on the
128 *   resource.
129 *
130 * If the resource is not available, then the task shall block and wait for
131 * request completion.
132 */
133#define RTEMS_WAIT 0x00000000
134
135#ifdef __cplusplus
136}
137#endif
138
139#endif /* _RTEMS_RTEMS_OPTIONS_H */
Note: See TracBrowser for help on using the repository browser.