source: rtems/cpukit/sapi/src/debug.c @ 23de794d

4.11
Last change on this file since 23de794d was 4c98a3e, checked in by Christopher Kerl <zargyyoyo@…>, on Dec 7, 2012 at 2:49:54 PM

sapi misc: Clean up Doxygen GCI task #1

http://www.google-melange.com/gci/task/view/google/gci2012/8011204

  • 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.com/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.