OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [inline/] [rtems/] [rtems/] [status.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  inline/status.inl
2
 *
3
 *  This include file contains the implementations of the inlined
4
 *  routines for the status package.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: status.inl,v 1.2 2001-09-27 11:59:18 chris Exp $
14
 */
15
 
16
#ifndef __INLINE_STATUS_inl
17
#define __INLINE_STATUS_inl
18
 
19
/*PAGE
20
 *
21
 *  rtems_is_status_successful
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
26
 *  and FALSE otherwise.
27
 */
28
 
29
RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
30
  rtems_status_code code
31
)
32
{
33
  return (code == RTEMS_SUCCESSFUL);
34
}
35
 
36
/*PAGE
37
 *
38
 *  rtems_are_statuses_equal
39
 *
40
 *  DESCRIPTION:
41
 *
42
 *  This function returns TRUE if the status code1 is equal to code2,
43
 *  and FALSE otherwise.
44
 */
45
 
46
RTEMS_INLINE_ROUTINE boolean rtems_are_statuses_equal(
47
  rtems_status_code code1,
48
  rtems_status_code code2
49
)
50
{
51
   return (code1 == code2);
52
}
53
 
54
#endif
55
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.