source: rtems/c/src/exec/sapi/src/debug.c @ e810408

4.104.114.84.95
Last change on this file since e810408 was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 959 bytes
Line 
1/*
2 *  Debug Manager
3 *
4 *  COPYRIGHT (c) 1989-1997.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems/system.h>
16#include <rtems/debug.h>
17
18/*PAGE
19 *
20 *  _Debug_Manager_initialization
21 */
22 
23void _Debug_Manager_initialization( void )
24{
25  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
26}
27 
28/*PAGE
29 *
30 *  rtems_debug_enable
31 */
32 
33void rtems_debug_enable (
34  rtems_debug_control  to_be_enabled
35)
36{
37  _Debug_Level |= to_be_enabled;
38}
39 
40/*PAGE
41 *
42 *  rtems_debug_disable
43 */
44 
45void rtems_debug_disable (
46  rtems_debug_control  to_be_disabled
47)
48{
49  _Debug_Level &= ~to_be_disabled;
50}
51
52/*PAGE
53 *
54 *  _Debug_Is_enabled
55 */
56
57boolean _Debug_Is_enabled(
58  rtems_debug_control  level
59)
60{
61  return (_Debug_Level & level);
62}
Note: See TracBrowser for help on using the repository browser.