source: rtems/cpukit/rtems/inline/rtems/rtems/options.inl @ 4d24fccb

4.104.114.95
Last change on this file since 4d24fccb was 4d24fccb, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/19/08 at 12:09:40

Add header guard to force indirect inclusion.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file rtems/rtems/options.inl
3 *
4 *  This file contains the static inline implementation of the inlined
5 *  routines from the Options Handler.
6 */
7
8/*  COPYRIGHT (c) 1989-2008.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
16 */
17
18#ifndef _RTEMS_RTEMS_OPTIONS_H
19# error "Never use <rtems/rtems/options.inl> directly; include <rtems/rtems/options.h> instead."
20#endif
21
22#ifndef _RTEMS_RTEMS_OPTIONS_INL
23#define _RTEMS_RTEMS_OPTIONS_INL
24
25/**
26 *  @addtogroup ClassicOptions
27 *  @{
28 */
29
30/**
31 *  @brief Options_Is_no_wait
32 *
33 *  This function returns TRUE if the RTEMS_NO_WAIT option is enabled in
34 *  option_set, and FALSE otherwise.
35 */
36RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
37  rtems_option option_set
38)
39{
40   return (option_set & RTEMS_NO_WAIT);
41}
42
43/**
44 *  @brief Options_Is_any
45 *
46 *  This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in
47 *  OPTION_SET, and FALSE otherwise.
48 */
49RTEMS_INLINE_ROUTINE boolean _Options_Is_any (
50  rtems_option option_set
51)
52{
53   return (option_set & RTEMS_EVENT_ANY);
54}
55
56/**@}*/
57
58#endif
59/* end of include file */
Note: See TracBrowser for help on using the repository browser.