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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [include/] [rtems/] [debug.h] - Rev 1779

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

/*  debug.h
 *
 *  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-1999.
 *  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.OARcorp.com/rtems/license.html.
 *
 *  debug.h,v 1.8 1999/11/17 17:50:34 joel Exp
 */
 
#ifndef __RTEMS_DEBUG_h
#define __RTEMS_DEBUG_h
 
#ifdef __cplusplus
extern "C" {
#endif
 
/*
 *  The following type is used to manage the debug mask.
 */
 
typedef unsigned32 rtems_debug_control;
 
/*
 *  These constants represent various classes of debugging.
 */
 
#define RTEMS_DEBUG_ALL_MASK 0xffffffff
#define RTEMS_DEBUG_REGION   0x00000001
 
/*
 *  This variable contains the current debug level.
 */
 
SCORE_EXTERN rtems_debug_control _Debug_Level;
 
/*
 *  _Debug_Manager_initialization
 *
 *  DESCRIPTION:
 *
 *  This routine performs the initialization necessary for this manager.
 */
 
void _Debug_Manager_initialization( void );
 
/*
 *  rtems_debug_enable
 *
 *  DESCRIPTION:
 *
 *  This routine enables the specified types of debug checks.
 */
 
void rtems_debug_enable (
  rtems_debug_control  to_be_enabled
);
 
/*
 *  rtems_debug_disable
 *
 *  DESCRIPTION:
 *
 *  This routine disables the specified types of debug checks.
 */
 
void rtems_debug_disable (
  rtems_debug_control  to_be_disabled
);
 
/*
 *
 *  _Debug_Is_enabled
 *
 *  DESCRIPTION:
 *
 *  This routine returns TRUE if the requested debug level is
 *  enabled, and FALSE otherwise.
 */
 
boolean _Debug_Is_enabled(
  rtems_debug_control  level
);
 
#ifdef __cplusplus
}
#endif
 
#endif
/* end of include file */
 

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

powered by: WebSVN 2.1.0

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