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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [macros/] [rtems/] [score/] [sysstate.inl] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  sysstates.inl
2
 *
3
 *  This file contains the macro implementation of routines regarding the
4
 *  system state.
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: sysstate.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __SYSTEM_STATE_inl
17
#define __SYSTEM_STATE_inl
18
 
19
/*PAGE
20
 *
21
 *  _System_state_Handler_initialization
22
 */
23
 
24
#define _System_state_Handler_initialization( _is_multiprocessing ) \
25
  do { \
26
    _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; \
27
    _System_state_Is_multiprocessing = (_is_multiprocessing); \
28
  } while ( 0 )
29
 
30
/*PAGE
31
 *
32
 *  _System_state_Set
33
 */
34
 
35
#define _System_state_Set( _state ) \
36
  do { \
37
    _System_state_Current = (_state); \
38
  } while ( 0 )
39
 
40
/*PAGE
41
 *
42
 *  _System_state_Get
43
 */
44
 
45
#define _System_state_Get() \
46
  (_System_state_Current)
47
 
48
/*PAGE
49
 *
50
 *  _System_state_Is_before_initialization
51
 */
52
 
53
#define _System_state_Is_before_initialization( _state ) \
54
  ((_state) == SYSTEM_STATE_BEFORE_INITIALIZATION)
55
 
56
/*PAGE
57
 *
58
 *  _System_state_Is_before_multitasking
59
 */
60
 
61
#define _System_state_Is_before_multitasking( _state ) \
62
  ((_state) == SYSTEM_STATE_BEFORE_MULTITASKING)
63
 
64
/*PAGE
65
 *
66
 *  _System_state_Is_begin_multitasking
67
 */
68
 
69
#define _System_state_Is_begin_multitasking( _state ) \
70
  ((_state) == SYSTEM_STATE_BEGIN_MULTITASKING)
71
 
72
/*PAGE
73
 *
74
 *  _System_state_Is_up
75
 */
76
 
77
#define _System_state_Is_up( _state ) \
78
  ((_state) == SYSTEM_STATE_UP)
79
 
80
/*PAGE
81
 *
82
 *  _System_state_Is_failed
83
 */
84
 
85
#define _System_state_Is_failed( _state ) \
86
  ((_state) == SYSTEM_STATE_FAILED)
87
 
88
#endif
89
/* end of include file */

powered by: WebSVN 2.1.0

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