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.3 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file rtems/rtems/support.inl |
---|
3 | * |
---|
4 | * This include file contains the static inline implementation of all |
---|
5 | * of the inlined routines specific to the RTEMS API. |
---|
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_SUPPORT_H |
---|
19 | # error "Never use <rtems/rtems/support.inl> directly; include <rtems/rtems/support.h> instead." |
---|
20 | #endif |
---|
21 | |
---|
22 | #ifndef _RTEMS_RTEMS_SUPPORT_INL |
---|
23 | #define _RTEMS_RTEMS_SUPPORT_INL |
---|
24 | |
---|
25 | /** |
---|
26 | * @addtogroup ClassicSupport |
---|
27 | * @{ |
---|
28 | */ |
---|
29 | |
---|
30 | /** |
---|
31 | * rtems_is_name_valid |
---|
32 | * |
---|
33 | * This function returns TRUE if the name is valid, and FALSE otherwise. |
---|
34 | */ |
---|
35 | RTEMS_INLINE_ROUTINE rtems_boolean rtems_is_name_valid ( |
---|
36 | rtems_name name |
---|
37 | ) |
---|
38 | { |
---|
39 | return ( name != 0 ); |
---|
40 | } |
---|
41 | |
---|
42 | /** |
---|
43 | * rtems_name_to_characters |
---|
44 | * |
---|
45 | * This function breaks the object name into the four component |
---|
46 | * characters C1, C2, C3, and C4. |
---|
47 | */ |
---|
48 | RTEMS_INLINE_ROUTINE void rtems_name_to_characters( |
---|
49 | rtems_name name, |
---|
50 | char *c1, |
---|
51 | char *c2, |
---|
52 | char *c3, |
---|
53 | char *c4 |
---|
54 | ) |
---|
55 | { |
---|
56 | *c1 = (name >> 24) & 0xff; |
---|
57 | *c2 = (name >> 16) & 0xff; |
---|
58 | *c3 = (name >> 8) & 0xff; |
---|
59 | *c4 = name & 0xff; |
---|
60 | } |
---|
61 | |
---|
62 | /**@}*/ |
---|
63 | |
---|
64 | #endif |
---|
65 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.