18#ifndef _RTEMS_SCORE_SYSSTATE_H
19#define _RTEMS_SCORE_SYSSTATE_H
63#define SYSTEM_STATE_CODES_FIRST SYSTEM_STATE_BEFORE_INITIALIZATION
65#define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_TERMINATED
67#if defined(RTEMS_MULTIPROCESSING)
68extern bool _System_state_Is_multiprocessing;
82 _System_state_Current = state;
92 return _System_state_Current;
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
RTEMS_INLINE_ROUTINE System_state_Codes _System_state_Get(void)
Gets the current system state.
Definition: sysstate.h:90
RTEMS_INLINE_ROUTINE bool _System_state_Is_before_multitasking(System_state_Codes state)
Checks if the state is before multitasking.
Definition: sysstate.h:118
RTEMS_INLINE_ROUTINE bool _System_state_Is_before_initialization(System_state_Codes state)
Checks if the state is before initialization.
Definition: sysstate.h:103
System_state_Codes
System states.
Definition: sysstate.h:40
RTEMS_INLINE_ROUTINE bool _System_state_Is_up(System_state_Codes state)
Checks if the state is up.
Definition: sysstate.h:133
RTEMS_INLINE_ROUTINE void _System_state_Set(System_state_Codes state)
Sets the current system state to the given state.
Definition: sysstate.h:78
RTEMS_INLINE_ROUTINE bool _System_state_Is_terminated(System_state_Codes state)
Checks if the state is terminated.
Definition: sysstate.h:148
@ SYSTEM_STATE_TERMINATED
The system reached its terminal state.
Definition: sysstate.h:60
@ SYSTEM_STATE_UP
The system is up and operating normally.
Definition: sysstate.h:55
@ SYSTEM_STATE_BEFORE_MULTITASKING
The system is between end of the first phase of initialization but before multitasking is started.
Definition: sysstate.h:50
@ SYSTEM_STATE_BEFORE_INITIALIZATION
The system is before the end of the first phase of initialization.
Definition: sysstate.h:44