source: rtems/cpukit/score/include/rtems/debug.h @ 484a769

4.104.114.95
Last change on this file since 484a769 was 484a769, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 4, 2008 at 5:46:39 PM

Convert to "bool".

  • 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-2006.
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 */
30typedef uint32_t   rtems_debug_control;
31
32/*
33 *  These constants represent various classes of debugging.
34 */
35
36/** Macro which indicates that all debugging modes are enabled */
37#define RTEMS_DEBUG_ALL_MASK 0xffffffff
38
39/** Macro which indicates that debugging for heaps/regions is enabled */
40#define RTEMS_DEBUG_REGION   0x00000001
41
42/**
43 *  This variable contains the current debug level.
44 */
45SCORE_EXTERN rtems_debug_control _Debug_Level;
46
47/**
48 *  This routine performs the initialization necessary for this manager.
49 */
50void _Debug_Manager_initialization( void );
51
52/**
53 *  This routine enables the specified types of debug checks.
54 */
55void rtems_debug_enable (
56  rtems_debug_control  to_be_enabled
57);
58
59/**
60 *  This routine disables the specified types of debug checks.
61 */
62void rtems_debug_disable (
63  rtems_debug_control  to_be_disabled
64);
65
66/**
67 *  This routine returns TRUE if the requested debug level is
68 *  enabled, and FALSE otherwise.
69 */
70bool _Debug_Is_enabled(
71  rtems_debug_control  level
72);
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
79/* end of include file */
Note: See TracBrowser for help on using the repository browser.