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) 68 extern bool _System_state_Is_multiprocessing;
82 _System_state_Current = state;
92 return _System_state_Current;
The system is before the end of the first phase of initialization.
The system reached its terminal state.
System_state_Codes
System states.
static __inline__ bool _System_state_Is_up(System_state_Codes state)
Checks if the state is up.
static __inline__ void _System_state_Set(System_state_Codes state)
Sets the current system state to the given state.
static __inline__ bool _System_state_Is_before_multitasking(System_state_Codes state)
Checks if the state is before multitasking.
The system is up and operating normally.
static __inline__ bool _System_state_Is_before_initialization(System_state_Codes state)
Checks if the state is before initialization.
static __inline__ System_state_Codes _System_state_Get(void)
Gets the current system state.
The system is between end of the first phase of initialization but before multitasking is started...
static __inline__ bool _System_state_Is_terminated(System_state_Codes state)
Checks if the state is terminated.
This header file provides basic definitions used by the API and the implementation.
#define RTEMS_INLINE_ROUTINE
Gives a hint to the compiler in a function declaration to inline this function.