source: rtems/cpukit/score/include/rtems/debug.h @ 11874561

4.104.114.84.95
Last change on this file since 11874561 was 11874561, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 07:17:38

Adjust doxygen @file.

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