blob: 3abec5f22a14bf5e775f3f93f0941b2835aa0748 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/**
* @file rtems/debug.h
*
* @brief Information Related to the Debug Support Within RTEMS
*
* This include file contains the information pertaining to the debug
* support within RTEMS. It is currently cast in the form of a
* Manager since it is externally accessible.
*/
/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#ifndef _RTEMS_DEBUG_H
#define _RTEMS_DEBUG_H
#include <rtems/score/basedefs.h>
/**
* @defgroup ScoreDebug Debug Information
*
* @ingroup Score
*/
/**@{*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* The following type is used to manage the debug mask.
*/
typedef uint32_t rtems_debug_control;
/*
* These constants represent various classes of debugging.
*/
/** Macro which indicates that all debugging modes are enabled */
#define RTEMS_DEBUG_ALL_MASK 0xffffffff
/** Macro which indicates that debugging for heaps/regions is enabled */
#define RTEMS_DEBUG_REGION 0x00000001
/**
* This variable contains the current debug level.
*/
SCORE_EXTERN rtems_debug_control _Debug_Level;
/**
* @brief Initialize debug manager.
*/
void _Debug_Manager_initialization( void );
/**
* @brief Enable debugging.
*/
void rtems_debug_enable(
rtems_debug_control to_be_enabled
);
/**
* @brief Disable debugging.
*/
void rtems_debug_disable(
rtems_debug_control to_be_disabled
);
/**
* @brief Check if debug is enabled.
*
* This routine returns TRUE if the requested debug level is
* enabled, and FALSE otherwise.
*/
bool rtems_debug_is_enabled(
rtems_debug_control level
);
#ifdef __cplusplus
}
#endif
/**@}*/
#endif
/* end of include file */
|