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 |
---|
24 | extern "C" { |
---|
25 | #endif |
---|
26 | |
---|
27 | /** |
---|
28 | * The following type is used to manage the debug mask. |
---|
29 | */ |
---|
30 | typedef 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 | */ |
---|
45 | SCORE_EXTERN rtems_debug_control _Debug_Level; |
---|
46 | |
---|
47 | /** |
---|
48 | * This routine performs the initialization necessary for this manager. |
---|
49 | */ |
---|
50 | void _Debug_Manager_initialization( void ); |
---|
51 | |
---|
52 | /** |
---|
53 | * This routine enables the specified types of debug checks. |
---|
54 | */ |
---|
55 | void rtems_debug_enable( |
---|
56 | rtems_debug_control to_be_enabled |
---|
57 | ); |
---|
58 | |
---|
59 | /** |
---|
60 | * This routine disables the specified types of debug checks. |
---|
61 | */ |
---|
62 | void 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 | */ |
---|
70 | bool 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 */ |
---|