source: rtems/cpukit/sapi/src/debug.c @ 5c753ea6

4.104.114.95
Last change on this file since 5c753ea6 was 5c753ea6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/02/08 at 09:21:35

2008-09-02 Ralf Corsépius <ralf.corsepius@…>

PR 1301/cpukit

  • sapi/src/debug.c: Let _Debug_Is_enabled return TRUE|FALSE.
  • Property mode set to 100644
File size: 961 bytes
RevLine 
[ac7d5ef0]1/*
2 *  Debug Manager
3 *
[08311cc3]4 *  COPYRIGHT (c) 1989-1999.
[ac7d5ef0]5 *  On-Line Applications Research Corporation (OAR).
6 *
[98e4ebf5]7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
[2ba508b]9 *  http://www.rtems.com/license/LICENSE.
[ac7d5ef0]10 *
11 *  $Id$
12 */
13
[16351f7a]14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
[ac7d5ef0]18#include <rtems/system.h>
19#include <rtems/debug.h>
20
21/*PAGE
22 *
23 *  _Debug_Manager_initialization
24 */
[8486081]25
[ac7d5ef0]26void _Debug_Manager_initialization( void )
27{
28  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
29}
[8486081]30
[ac7d5ef0]31/*PAGE
32 *
33 *  rtems_debug_enable
34 */
[8486081]35
[ac7d5ef0]36void rtems_debug_enable (
37  rtems_debug_control  to_be_enabled
38)
39{
40  _Debug_Level |= to_be_enabled;
41}
[8486081]42
[ac7d5ef0]43/*PAGE
44 *
45 *  rtems_debug_disable
46 */
[8486081]47
[ac7d5ef0]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{
[5c753ea6]64  return (_Debug_Level & level) ? TRUE : FALSE;
[ac7d5ef0]65}
Note: See TracBrowser for help on using the repository browser.