RTEMS CPU Kit with SuperCore  4.11.2
debug.h
Go to the documentation of this file.
1 
11 /*
12  * COPYRIGHT (c) 1989-2009.
13  * On-Line Applications Research Corporation (OAR).
14  *
15  * The license and distribution terms for this file may be
16  * found in the file LICENSE in this distribution or at
17  * http://www.rtems.org/license/LICENSE.
18  */
19 
20 #ifndef _RTEMS_DEBUG_H
21 #define _RTEMS_DEBUG_H
22 
23 #include <rtems/score/basedefs.h>
24 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
39 typedef uint32_t rtems_debug_control;
40 
41 /*
42  * These constants represent various classes of debugging.
43  */
44 
46 #define RTEMS_DEBUG_ALL_MASK 0xffffffff
47 
49 #define RTEMS_DEBUG_REGION 0x00000001
50 
54 SCORE_EXTERN rtems_debug_control _Debug_Level;
55 
60 
65  rtems_debug_control to_be_enabled
66 );
67 
72  rtems_debug_control to_be_disabled
73 );
74 
82  rtems_debug_control level
83 );
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 
90 #endif
91 /* end of include file */
uint32_t rtems_debug_control
The following type is used to manage the debug mask.
Definition: debug.h:39
SCORE_EXTERN rtems_debug_control _Debug_Level
This variable contains the current debug level.
Definition: debug.h:54
void _Debug_Manager_initialization(void)
Initialize debug manager.
Definition: debug.c:27
bool rtems_debug_is_enabled(rtems_debug_control level)
Check if debug is enabled.
Definition: debug.c:46
void rtems_debug_enable(rtems_debug_control to_be_enabled)
Enable debugging.
Definition: debug.c:32
Basic Definitions.
void rtems_debug_disable(rtems_debug_control to_be_disabled)
Disable debugging.
Definition: debug.c:39
#define SCORE_EXTERN
The following ensures that all data is declared in the space of the initialization routine for either...
Definition: basedefs.h:81