forked from Imagelibrary/rtems
@@ -31,7 +31,6 @@
|
||||
#include <rtems/rtems/types.h>
|
||||
|
||||
#include <rtems/config.h>
|
||||
#include <rtems/debug.h>
|
||||
#include <rtems/init.h>
|
||||
#include <rtems/rtems/options.h>
|
||||
#include <rtems/rtems/tasks.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <rtems/score/heapimpl.h>
|
||||
#include <rtems/score/objectimpl.h>
|
||||
#include <rtems/score/threadqimpl.h>
|
||||
#include <rtems/debug.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -26,7 +26,7 @@ include_rtems_HEADERS += include/rtems/timespec.h
|
||||
EXTRA_DIST = include/rtems/README
|
||||
|
||||
noinst_LIBRARIES = libsapi.a
|
||||
libsapi_a_SOURCES = src/debug.c src/extension.c src/extensioncreate.c \
|
||||
libsapi_a_SOURCES = src/extension.c src/extensioncreate.c \
|
||||
src/extensiondelete.c src/extensionident.c src/fatal.c src/exinit.c \
|
||||
src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c src/iodata.c \
|
||||
src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \
|
||||
|
||||
@@ -24,8 +24,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems/config.h>
|
||||
|
||||
#include <rtems/debug.h>
|
||||
#include <rtems/fatal.h>
|
||||
#include <rtems/init.h>
|
||||
#include <rtems/io.h>
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Debug Manager
|
||||
*
|
||||
* @ingroup ClassicDebug
|
||||
*/
|
||||
|
||||
/*
|
||||
* Debug Manager
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* 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.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/debug.h>
|
||||
|
||||
void _Debug_Manager_initialization( void )
|
||||
{
|
||||
rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
|
||||
}
|
||||
|
||||
void rtems_debug_enable (
|
||||
rtems_debug_control to_be_enabled
|
||||
)
|
||||
{
|
||||
_Debug_Level |= to_be_enabled;
|
||||
}
|
||||
|
||||
void rtems_debug_disable (
|
||||
rtems_debug_control to_be_disabled
|
||||
)
|
||||
{
|
||||
_Debug_Level &= ~to_be_disabled;
|
||||
}
|
||||
|
||||
bool rtems_debug_is_enabled(
|
||||
rtems_debug_control level
|
||||
)
|
||||
{
|
||||
return (_Debug_Level & level) ? true : false;
|
||||
}
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/config.h>
|
||||
#include <rtems/debug.h>
|
||||
#include <rtems/extensionimpl.h>
|
||||
#include <rtems/init.h>
|
||||
#include <rtems/score/sysstate.h>
|
||||
@@ -102,12 +101,6 @@ void rtems_initialize_data_structures(void)
|
||||
_Objects_MP_Handler_early_initialization();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do this as early as possible to ensure no debugging output
|
||||
* is even attempted to be printed.
|
||||
*/
|
||||
_Debug_Manager_initialization();
|
||||
|
||||
_API_extensions_Initialization();
|
||||
|
||||
_Thread_Dispatch_initialization();
|
||||
|
||||
@@ -16,7 +16,7 @@ include_sys_HEADERS += include/sys/timex.h
|
||||
|
||||
include_rtemsdir = $(includedir)/rtems
|
||||
|
||||
include_rtems_HEADERS = include/rtems/debug.h
|
||||
include_rtems_HEADERS =
|
||||
include_rtems_HEADERS += include/rtems/system.h
|
||||
include_rtems_HEADERS += include/rtems/seterr.h
|
||||
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
/**
|
||||
* @file rtems/debug.h
|
||||
*
|
||||
* @brief Information Related to the Debug Support Within RTEMS
|
||||
*
|
||||
* This include file contains the information pertaining to the debug
|
||||
* support within RTEMS. It is currently cast in the form of a
|
||||
* Manager since it is externally accessible.
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* 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.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef _RTEMS_DEBUG_H
|
||||
#define _RTEMS_DEBUG_H
|
||||
|
||||
#include <rtems/score/basedefs.h>
|
||||
|
||||
/**
|
||||
* @defgroup ScoreDebug Debug Information
|
||||
*
|
||||
* @ingroup Score
|
||||
*/
|
||||
/**@{*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The following type is used to manage the debug mask.
|
||||
*/
|
||||
typedef uint32_t rtems_debug_control;
|
||||
|
||||
/*
|
||||
* These constants represent various classes of debugging.
|
||||
*/
|
||||
|
||||
/** Macro which indicates that all debugging modes are enabled */
|
||||
#define RTEMS_DEBUG_ALL_MASK 0xffffffff
|
||||
|
||||
/** Macro which indicates that debugging for heaps/regions is enabled */
|
||||
#define RTEMS_DEBUG_REGION 0x00000001
|
||||
|
||||
/**
|
||||
* This variable contains the current debug level.
|
||||
*/
|
||||
SCORE_EXTERN rtems_debug_control _Debug_Level;
|
||||
|
||||
/**
|
||||
* @brief Initialize debug manager.
|
||||
*/
|
||||
void _Debug_Manager_initialization( void );
|
||||
|
||||
/**
|
||||
* @brief Enable debugging.
|
||||
*/
|
||||
void rtems_debug_enable(
|
||||
rtems_debug_control to_be_enabled
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief Disable debugging.
|
||||
*/
|
||||
void rtems_debug_disable(
|
||||
rtems_debug_control to_be_disabled
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief Check if debug is enabled.
|
||||
*
|
||||
* This routine returns TRUE if the requested debug level is
|
||||
* enabled, and FALSE otherwise.
|
||||
*/
|
||||
bool rtems_debug_is_enabled(
|
||||
rtems_debug_control level
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/**@}*/
|
||||
#endif
|
||||
/* end of include file */
|
||||
@@ -43,10 +43,6 @@ $(PROJECT_INCLUDE)/rtems/$(dirstamp):
|
||||
@: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
|
||||
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
|
||||
|
||||
$(PROJECT_INCLUDE)/rtems/debug.h: include/rtems/debug.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/debug.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/debug.h
|
||||
|
||||
$(PROJECT_INCLUDE)/rtems/system.h: include/rtems/system.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/system.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/system.h
|
||||
|
||||
Reference in New Issue
Block a user