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