source: rtems/cpukit/sapi/src/debug.c @ 16351f7a

4.104.114.84.9
Last change on this file since 16351f7a was 16351f7a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 2:04:21 AM

2005-01-28 Ralf Corsepius <ralf.corsepius@…>

  • sapi/src/debug.c, sapi/src/exinit.c, sapi/src/extension.c, sapi/src/extensioncreate.c, sapi/src/extensiondelete.c, sapi/src/extensionident.c, sapi/src/fatal.c, sapi/src/io.c, sapi/src/itronapi.c, sapi/src/posixapi.c, sapi/src/rtemsapi.c: Include config.h.
  • Property mode set to 100644
File size: 946 bytes
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
26void _Debug_Manager_initialization( void )
27{
28  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
29}
30
31/*PAGE
32 *
33 *  rtems_debug_enable
34 */
35
36void 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
48void 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
60boolean _Debug_Is_enabled(
61  rtems_debug_control  level
62)
63{
64  return (_Debug_Level & level);
65}
Note: See TracBrowser for help on using the repository browser.