source: rtems/cpukit/score/include/rtems/debug.h @ 76a670b

4.104.115
Last change on this file since 76a670b was 76a670b, checked in by Joel Sherrill <joel.sherrill@…>, on 08/05/09 at 15:27:01

2009-08-05 Joel Sherrill <joel.sherrill@…>

  • rtems/include/rtems/rtems/region.h: Use new name.
  • score/include/rtems/debug.h: Fix spacing.
  • 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-2009.
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 rtems_is_debug_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.