RTEMS  5.0.0
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
23 extern "C" {
24 #endif
25 
41  rtems_option option_set
42 )
43 {
44  return (option_set & RTEMS_NO_WAIT) ? true : false;
45 }
46 
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 */
#define RTEMS_EVENT_ANY
Definition: options.h:71
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
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
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
uint32_t rtems_option
Definition: options.h:42
#define RTEMS_NO_WAIT
Definition: options.h:59