OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [sapi/] [src/] [debug.c] - Blame information for rev 532

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  Debug Manager
3
 *
4
 *  COPYRIGHT (c) 1989-1999.
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.OARcorp.com/rtems/license.html.
10
 *
11
 *  $Id: debug.c,v 1.2 2001-09-27 11:59:20 chris Exp $
12
 */
13
 
14
#include <rtems/system.h>
15
#include <rtems/debug.h>
16
 
17
/*PAGE
18
 *
19
 *  _Debug_Manager_initialization
20
 */
21
 
22
void _Debug_Manager_initialization( void )
23
{
24
  rtems_debug_disable( RTEMS_DEBUG_ALL_MASK );
25
}
26
 
27
/*PAGE
28
 *
29
 *  rtems_debug_enable
30
 */
31
 
32
void rtems_debug_enable (
33
  rtems_debug_control  to_be_enabled
34
)
35
{
36
  _Debug_Level |= to_be_enabled;
37
}
38
 
39
/*PAGE
40
 *
41
 *  rtems_debug_disable
42
 */
43
 
44
void rtems_debug_disable (
45
  rtems_debug_control  to_be_disabled
46
)
47
{
48
  _Debug_Level &= ~to_be_disabled;
49
}
50
 
51
/*PAGE
52
 *
53
 *  _Debug_Is_enabled
54
 */
55
 
56
boolean _Debug_Is_enabled(
57
  rtems_debug_control  level
58
)
59
{
60
  return (_Debug_Level & level);
61
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.