source: rtems/c/src/exec/score/include/rtems/debug.h @ 3a96054

4.104.114.84.95
Last change on this file since 3a96054 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  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$
16 */
17
18#ifndef __RTEMS_DEBUG_h
19#define __RTEMS_DEBUG_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*
26 *  The following type is used to manage the debug mask.
27 */
28
29typedef 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
42SCORE_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
52void _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
62void 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 
74void 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
88boolean _Debug_Is_enabled(
89  rtems_debug_control  level
90);
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif
97/* end of include file */
Note: See TracBrowser for help on using the repository browser.