From 39046f766f170748acdb7f55f79a681a09552698 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Jul 2013 11:09:23 +0200 Subject: score: Merge sysstate API into one file --- cpukit/score/inline/rtems/score/sysstate.inl | 99 ---------------------------- cpukit/score/inline/rtems/score/thread.inl | 1 - 2 files changed, 100 deletions(-) delete mode 100644 cpukit/score/inline/rtems/score/sysstate.inl (limited to 'cpukit/score/inline') diff --git a/cpukit/score/inline/rtems/score/sysstate.inl b/cpukit/score/inline/rtems/score/sysstate.inl deleted file mode 100644 index 3fa534ce17..0000000000 --- a/cpukit/score/inline/rtems/score/sysstate.inl +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @file - * - * @brief System State Handler API - */ - -/* - * COPYRIGHT (c) 1989-2004. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#ifndef _RTEMS_SCORE_SYSSTATE_H -# error "Never use directly; include instead." -#endif - -#ifndef _RTEMS_SCORE_SYSSTATE_INL -#define _RTEMS_SCORE_SYSSTATE_INL - -/** - * @addtogroup ScoreSysState - */ -/**@{**/ - -RTEMS_INLINE_ROUTINE void _System_state_Set ( - System_state_Codes state -) -{ - _System_state_Current = state; -} - -RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization ( -#if defined(RTEMS_MULTIPROCESSING) - bool is_multiprocessing -#else - bool is_multiprocessing __attribute__((unused)) -#endif -) -{ - _System_state_Set( SYSTEM_STATE_BEFORE_INITIALIZATION ); -#if defined(RTEMS_MULTIPROCESSING) - _System_state_Is_multiprocessing = is_multiprocessing; -#endif -} - -RTEMS_INLINE_ROUTINE System_state_Codes _System_state_Get ( void ) -{ - return _System_state_Current; -} - -RTEMS_INLINE_ROUTINE bool _System_state_Is_before_initialization ( - System_state_Codes state -) -{ - return (state == SYSTEM_STATE_BEFORE_INITIALIZATION); -} - -RTEMS_INLINE_ROUTINE bool _System_state_Is_before_multitasking ( - System_state_Codes state -) -{ - return (state == SYSTEM_STATE_BEFORE_MULTITASKING); -} - -RTEMS_INLINE_ROUTINE bool _System_state_Is_begin_multitasking ( - System_state_Codes state -) -{ - return (state == SYSTEM_STATE_BEGIN_MULTITASKING); -} - -RTEMS_INLINE_ROUTINE bool _System_state_Is_shutdown ( - System_state_Codes state -) -{ - return (state == SYSTEM_STATE_SHUTDOWN); -} - -RTEMS_INLINE_ROUTINE bool _System_state_Is_up ( - System_state_Codes state -) -{ - return (state == SYSTEM_STATE_UP); -} - -RTEMS_INLINE_ROUTINE bool _System_state_Is_failed ( - System_state_Codes state -) -{ - return (state == SYSTEM_STATE_FAILED); -} - -/** @} */ - -#endif -/* end of include file */ diff --git a/cpukit/score/inline/rtems/score/thread.inl b/cpukit/score/inline/rtems/score/thread.inl index 88438d66bc..9c0aecb01a 100644 --- a/cpukit/score/inline/rtems/score/thread.inl +++ b/cpukit/score/inline/rtems/score/thread.inl @@ -23,7 +23,6 @@ #ifndef _RTEMS_SCORE_THREAD_INL #define _RTEMS_SCORE_THREAD_INL -#include #include /** -- cgit v1.2.3