RTEMS: cpukit/include/rtems/rtems/optionsimpl.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
optionsimpl.h
Go to the documentation of this file.
1
9/* COPYRIGHT (c) 1989-2008.
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.org/license/LICENSE.
15 */
16
17#ifndef _RTEMS_RTEMS_OPTIONSIMPL_H
18#define _RTEMS_RTEMS_OPTIONSIMPL_H
19
20#include <rtems/rtems/options.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
40 RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
41 rtems_option option_set
42)
43{
44 return (option_set & RTEMS_NO_WAIT) ? true : false;
45}
46
53 RTEMS_INLINE_ROUTINE bool _Options_Is_any (
54 rtems_option option_set
55)
56{
57 return (option_set & RTEMS_EVENT_ANY) ? true : false;
58}
59
62#ifdef __cplusplus
63}
64#endif
65
66#endif
67/* end of include file */
_Options_Is_any
RTEMS_INLINE_ROUTINE bool _Options_Is_any(rtems_option option_set)
Checks if the RTEMS_EVENT_ANY option is enabled in OPTION_SET.
Definition: optionsimpl.h:53
_Options_Is_no_wait
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait(rtems_option option_set)
Checks if the RTEMS_NO_WAIT option is enabled in option_set.
Definition: optionsimpl.h:40
RTEMS_EVENT_ANY
#define RTEMS_EVENT_ANY
Definition: options.h:71
rtems_option
uint32_t rtems_option
Definition: options.h:42
RTEMS_NO_WAIT
#define RTEMS_NO_WAIT
Definition: options.h:59
RTEMS_INLINE_ROUTINE
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
options.h