source: rtems/cpukit/sapi/src/debug.c @ 90e6d39

4.104.115
Last change on this file since 90e6d39 was 90e6d39, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 21, 2009 at 7:27:44 PM

2009-07-21 Joel Sherrill <joel.sherrill@…>

  • sapi/src/debug.c, score/include/rtems/debug.h: Rename _Debug_Is_enabled to rtems_is_debug_enabled.
  • Property mode set to 100644
File size: 946 bytes
Line 
1/*
2 *  Debug Manager
3 *
4 *  COPYRIGHT (c) 1989-2009.
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/*
22 *
23 *  _Debug_Manager_initialization
24 */
25void _Debug_Manager_initialization( void )
26{
27  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
28}
29
30/*PAGE
31 *
32 *  rtems_debug_enable
33 */
34void rtems_debug_enable (
35  rtems_debug_control  to_be_enabled
36)
37{
38  _Debug_Level |= to_be_enabled;
39}
40
41/*
42 *  rtems_debug_disable
43 */
44void rtems_debug_disable (
45  rtems_debug_control  to_be_disabled
46)
47{
48  _Debug_Level &= ~to_be_disabled;
49}
50
51/*
52 *  rtems_debug_is_enabled
53 */
54bool rtems_debug_is_enabled(
55  rtems_debug_control  level
56)
57{
58  return (_Debug_Level & level) ? true : false;
59}
Note: See TracBrowser for help on using the repository browser.