4.104.114.95
Line | |
---|
1 | /* |
---|
2 | * Debug Manager |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1999. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #if HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <rtems/system.h> |
---|
19 | #include <rtems/debug.h> |
---|
20 | |
---|
21 | /*PAGE |
---|
22 | * |
---|
23 | * _Debug_Manager_initialization |
---|
24 | */ |
---|
25 | |
---|
26 | void _Debug_Manager_initialization( void ) |
---|
27 | { |
---|
28 | rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); |
---|
29 | } |
---|
30 | |
---|
31 | /*PAGE |
---|
32 | * |
---|
33 | * rtems_debug_enable |
---|
34 | */ |
---|
35 | |
---|
36 | void rtems_debug_enable ( |
---|
37 | rtems_debug_control to_be_enabled |
---|
38 | ) |
---|
39 | { |
---|
40 | _Debug_Level |= to_be_enabled; |
---|
41 | } |
---|
42 | |
---|
43 | /*PAGE |
---|
44 | * |
---|
45 | * rtems_debug_disable |
---|
46 | */ |
---|
47 | |
---|
48 | void rtems_debug_disable ( |
---|
49 | rtems_debug_control to_be_disabled |
---|
50 | ) |
---|
51 | { |
---|
52 | _Debug_Level &= ~to_be_disabled; |
---|
53 | } |
---|
54 | |
---|
55 | /*PAGE |
---|
56 | * |
---|
57 | * _Debug_Is_enabled |
---|
58 | */ |
---|
59 | |
---|
60 | bool _Debug_Is_enabled( |
---|
61 | rtems_debug_control level |
---|
62 | ) |
---|
63 | { |
---|
64 | return (_Debug_Level & level) ? true : false; |
---|
65 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.