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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [include/] [rtems/] [debug.h] - Blame information for rev 666

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

Line No. Rev Author Line
1 30 unneback
/*  debug.h
2
 *
3
 *  This include file contains the information pertaining to the debug
4
 *  support within RTEMS.  It is currently cast in the form of a
5
 *  Manager since it is externally accessible.
6
 *
7
 *
8
 *  COPYRIGHT (c) 1989-1999.
9
 *  On-Line Applications Research Corporation (OAR).
10
 *
11
 *  The license and distribution terms for this file may be
12
 *  found in the file LICENSE in this distribution or at
13
 *  http://www.OARcorp.com/rtems/license.html.
14
 *
15
 *  $Id: debug.h,v 1.2 2001-09-27 11:59:32 chris Exp $
16
 */
17
 
18
#ifndef __RTEMS_DEBUG_h
19
#define __RTEMS_DEBUG_h
20
 
21
#ifdef __cplusplus
22
extern "C" {
23
#endif
24
 
25
/*
26
 *  The following type is used to manage the debug mask.
27
 */
28
 
29
typedef unsigned32 rtems_debug_control;
30
 
31
/*
32
 *  These constants represent various classes of debugging.
33
 */
34
 
35
#define RTEMS_DEBUG_ALL_MASK 0xffffffff
36
#define RTEMS_DEBUG_REGION   0x00000001
37
 
38
/*
39
 *  This variable contains the current debug level.
40
 */
41
 
42
SCORE_EXTERN rtems_debug_control _Debug_Level;
43
 
44
/*
45
 *  _Debug_Manager_initialization
46
 *
47
 *  DESCRIPTION:
48
 *
49
 *  This routine performs the initialization necessary for this manager.
50
 */
51
 
52
void _Debug_Manager_initialization( void );
53
 
54
/*
55
 *  rtems_debug_enable
56
 *
57
 *  DESCRIPTION:
58
 *
59
 *  This routine enables the specified types of debug checks.
60
 */
61
 
62
void rtems_debug_enable (
63
  rtems_debug_control  to_be_enabled
64
);
65
 
66
/*
67
 *  rtems_debug_disable
68
 *
69
 *  DESCRIPTION:
70
 *
71
 *  This routine disables the specified types of debug checks.
72
 */
73
 
74
void rtems_debug_disable (
75
  rtems_debug_control  to_be_disabled
76
);
77
 
78
/*
79
 *
80
 *  _Debug_Is_enabled
81
 *
82
 *  DESCRIPTION:
83
 *
84
 *  This routine returns TRUE if the requested debug level is
85
 *  enabled, and FALSE otherwise.
86
 */
87
 
88
boolean _Debug_Is_enabled(
89
  rtems_debug_control  level
90
);
91
 
92
#ifdef __cplusplus
93
}
94
#endif
95
 
96
#endif
97
/* end of include file */

powered by: WebSVN 2.1.0

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