RTEMS CPU Kit with SuperCore  4.11.3
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
This option constants indicates that the task wishes to wait until ANY events of interest are availab...
Definition: options.h:74
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
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
The following type defines the control block used to manage option sets.
Definition: options.h:45
#define RTEMS_NO_WAIT
This option constants indicates that the task is to not wait on the resource.
Definition: options.h:62