source: rtems/cpukit/sapi/src/debug.c @ 88d594a

4.104.114.84.95
Last change on this file since 88d594a was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  Debug Manager
3 *
4 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
5 *  On-Line Applications Research Corporation (OAR).
6 *  All rights assigned to U.S. Government, 1994.
7 *
8 *  This material may be reproduced by or for the U.S. Government pursuant
9 *  to the copyright license under the clause at DFARS 252.227-7013.  This
10 *  notice must appear in all copies of this file and its derivatives.
11 *
12 *  $Id$
13 */
14
15#include <rtems/system.h>
16#include <rtems/debug.h>
17
18/*PAGE
19 *
20 *  _Debug_Manager_initialization
21 */
22 
23void _Debug_Manager_initialization( void )
24{
25  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
26}
27 
28/*PAGE
29 *
30 *  rtems_debug_enable
31 */
32 
33void rtems_debug_enable (
34  rtems_debug_control  to_be_enabled
35)
36{
37  _Debug_Level |= to_be_enabled;
38}
39 
40/*PAGE
41 *
42 *  rtems_debug_disable
43 */
44 
45void rtems_debug_disable (
46  rtems_debug_control  to_be_disabled
47)
48{
49  _Debug_Level &= ~to_be_disabled;
50}
51
52/*PAGE
53 *
54 *  _Debug_Is_enabled
55 */
56
57boolean _Debug_Is_enabled(
58  rtems_debug_control  level
59)
60{
61  return (_Debug_Level & level);
62}
Note: See TracBrowser for help on using the repository browser.