4.115
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Debug Manager |
---|
5 | * |
---|
6 | * @ingroup ClassicDebug |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Debug Manager |
---|
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.com/license/LICENSE. |
---|
18 | */ |
---|
19 | |
---|
20 | #if HAVE_CONFIG_H |
---|
21 | #include "config.h" |
---|
22 | #endif |
---|
23 | |
---|
24 | #include <rtems/system.h> |
---|
25 | #include <rtems/debug.h> |
---|
26 | |
---|
27 | void _Debug_Manager_initialization( void ) |
---|
28 | { |
---|
29 | rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); |
---|
30 | } |
---|
31 | |
---|
32 | void rtems_debug_enable ( |
---|
33 | rtems_debug_control to_be_enabled |
---|
34 | ) |
---|
35 | { |
---|
36 | _Debug_Level |= to_be_enabled; |
---|
37 | } |
---|
38 | |
---|
39 | void rtems_debug_disable ( |
---|
40 | rtems_debug_control to_be_disabled |
---|
41 | ) |
---|
42 | { |
---|
43 | _Debug_Level &= ~to_be_disabled; |
---|
44 | } |
---|
45 | |
---|
46 | bool rtems_debug_is_enabled( |
---|
47 | rtems_debug_control level |
---|
48 | ) |
---|
49 | { |
---|
50 | return (_Debug_Level & level) ? true : false; |
---|
51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.