source: rtems/c/src/exec/score/include/rtems/debug.h @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 1.8 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-1998.
9 *  On-Line Applications Research Corporation (OAR).
10 *  Copyright assigned to U.S. Government, 1994.
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.OARcorp.com/rtems/license.html.
15 *
16 *  $Id$
17 */
18
19#ifndef __RTEMS_DEBUG_h
20#define __RTEMS_DEBUG_h
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/*
27 *  The following type is used to manage the debug mask.
28 */
29
30typedef unsigned32 rtems_debug_control;
31
32/*
33 *  These constants represent various classes of debugging.
34 */
35
36#define RTEMS_DEBUG_ALL_MASK 0xffffffff
37#define RTEMS_DEBUG_REGION   0x00000001
38
39/*
40 *  This variable contains the current debug level.
41 */
42
43SCORE_EXTERN rtems_debug_control _Debug_Level;
44
45/*
46 *  _Debug_Manager_initialization
47 *
48 *  DESCRIPTION:
49 *
50 *  This routine performs the initialization necessary for this manager.
51 */
52
53void _Debug_Manager_initialization( void );
54
55/*
56 *  rtems_debug_enable
57 *
58 *  DESCRIPTION:
59 *
60 *  This routine enables the specified types of debug checks.
61 */
62
63void rtems_debug_enable (
64  rtems_debug_control  to_be_enabled
65);
66
67/*
68 *  rtems_debug_disable
69 *
70 *  DESCRIPTION:
71 *
72 *  This routine disables the specified types of debug checks.
73 */
74 
75void rtems_debug_disable (
76  rtems_debug_control  to_be_disabled
77);
78 
79/*
80 *
81 *  _Debug_Is_enabled
82 *
83 *  DESCRIPTION:
84 *
85 *  This routine returns TRUE if the requested debug level is
86 *  enabled, and FALSE otherwise.
87 */
88
89boolean _Debug_Is_enabled(
90  rtems_debug_control  level
91);
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
98/* end of include file */
Note: See TracBrowser for help on using the repository browser.