source: rtems/c/src/ada/rtems-debug.adb @ 0afac6a

4.115
Last change on this file since 0afac6a 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: 1.2 KB
Line 
1--
2--  RTEMS / Body
3--
4--  DESCRIPTION:
5--
6--  This package provides the interface to the RTEMS API.
7--
8--
9--  DEPENDENCIES:
10--
11--
12--
13--  COPYRIGHT (c) 1997-2011.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.org/license/LICENSE.
19--
20
21package body RTEMS.Debug is
22
23   --
24   -- Debug Manager
25   --
26
27   procedure Enable (To_Be_Enabled : in Set) is
28      procedure Enable_Base (To_Be_Enabled : Set);
29      pragma Import (C, Enable_Base, "rtems_debug_enable");
30   begin
31
32      Enable_Base (To_Be_Enabled);
33
34   end Enable;
35
36   procedure Disable (To_Be_Disabled : in Set) is
37      procedure Disable_Base (To_Be_Disabled : Set);
38      pragma Import (C, Disable_Base, "rtems_debug_disable");
39   begin
40
41      Disable_Base (To_Be_Disabled);
42
43   end Disable;
44
45   function Is_Enabled
46     (Level : in Set)
47      return  RTEMS.Boolean
48   is
49      function Is_Enabled_Base
50        (Level : Set)
51         return  RTEMS.Boolean;
52      pragma Import (C, Is_Enabled_Base, "rtems_debug_is_enabled");
53   begin
54
55      return Is_Enabled_Base (Level);
56
57   end Is_Enabled;
58
59end RTEMS.Debug;
Note: See TracBrowser for help on using the repository browser.