source: rtems/c/src/ada/rtems-debug.adb @ 4778c6e0

4.115
Last change on this file since 4778c6e0 was 1987020, checked in by Joel Sherrill <joel.sherrill@…>, on 02/16/11 at 15:52:29

2011-02-16 Joel Sherrill <joel.sherrill@…>

  • ada/Makefile.am, ada/preinstall.am, ada/rtems.adb, ada/rtems.ads: Split RTEMS Ada95 binding into a master package and a child package per Manager. This is better Ada style.
  • ada/rtems-barrier.adb, ada/rtems-barrier.ads, ada/rtems-clock.adb, ada/rtems-clock.ads, ada/rtems-cpu_usage.ads, ada/rtems-debug.adb, ada/rtems-debug.ads, ada/rtems-event.adb, ada/rtems-event.ads, ada/rtems-extension.adb, ada/rtems-extension.ads, ada/rtems-fatal.adb, ada/rtems-fatal.ads, ada/rtems-interrupt.ads, ada/rtems-io.adb, ada/rtems-io.ads, ada/rtems-message_queue.adb, ada/rtems-message_queue.ads, ada/rtems-object.adb, ada/rtems-object.ads, ada/rtems-partition.adb, ada/rtems-partition.ads, ada/rtems-port.adb, ada/rtems-port.ads, ada/rtems-rate_monotonic.adb, ada/rtems-rate_monotonic.ads, ada/rtems-region.adb, ada/rtems-region.ads, ada/rtems-semaphore.adb, ada/rtems-semaphore.ads, ada/rtems-signal.adb, ada/rtems-signal.ads, ada/rtems-stack_checker.ads, ada/rtems-tasks.adb, ada/rtems-tasks.ads, ada/rtems-timer.adb, ada/rtems-timer.ads: New files.
  • 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.com/license/LICENSE.
19--
20--  $Id$
21--
22
23package body RTEMS.Debug is
24
25   --
26   -- Debug Manager
27   --
28
29   procedure Enable (To_Be_Enabled : in Set) is
30      procedure Enable_Base (To_Be_Enabled : Set);
31      pragma Import (C, Enable_Base, "rtems_debug_enable");
32   begin
33
34      Enable_Base (To_Be_Enabled);
35
36   end Enable;
37
38   procedure Disable (To_Be_Disabled : in Set) is
39      procedure Disable_Base (To_Be_Disabled : Set);
40      pragma Import (C, Disable_Base, "rtems_debug_disable");
41   begin
42
43      Disable_Base (To_Be_Disabled);
44
45   end Disable;
46
47   function Is_Enabled
48     (Level : in Set)
49      return  RTEMS.Boolean
50   is
51      function Is_Enabled_Base
52        (Level : Set)
53         return  RTEMS.Boolean;
54      pragma Import (C, Is_Enabled_Base, "rtems_debug_is_enabled");
55   begin
56
57      return Is_Enabled_Base (Level);
58
59   end Is_Enabled;
60
61end RTEMS.Debug;
Note: See TracBrowser for help on using the repository browser.