source: rtems/cpukit/sapi/src/debug.c @ a4203273

4.115
Last change on this file since a4203273 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 861 bytes
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.org/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
27void _Debug_Manager_initialization( void )
28{
29  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
30}
31
32void rtems_debug_enable (
33  rtems_debug_control  to_be_enabled
34)
35{
36  _Debug_Level |= to_be_enabled;
37}
38
39void rtems_debug_disable (
40  rtems_debug_control  to_be_disabled
41)
42{
43  _Debug_Level &= ~to_be_disabled;
44}
45
46bool 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.