- Timestamp:
- 06/03/97 15:11:39 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c1ef834
- Parents:
- 7d366f1c
- Location:
- c/src/ada
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ada/rtems.adb
r7d366f1c rd348ad96 10 10 -- 11 11 -- 12 -- COPYRIGHT (c) 19 89 - 1997.12 -- COPYRIGHT (c) 1997. 13 13 -- On-Line Applications Research Corporation (OAR). 14 14 -- 15 -- The license and distribution terms for this file may in 16 -- the file LICENSE in this distribution or at 17 -- http://www.OARcorp.com/rtems/license.html. 18 -- 19 -- $Id$ 20 -- 15 21 16 22 with Ada; 23 with Ada.Unchecked_Conversion; 17 24 with System; 18 25 with Interfaces; use Interfaces; … … 172 179 end Is_Status_Successful; 173 180 181 function Subtract ( 182 Left : in RTEMS.Address; 183 Right : in RTEMS.Address 184 ) return RTEMS.Unsigned32 is 185 function To_Unsigned32 is 186 new Ada.Unchecked_Conversion (System.Address, RTEMS.Unsigned32); 187 188 begin 189 return To_Unsigned32(Left) - To_Unsigned32(Right); 190 end Subtract; 191 174 192 -- 175 193 -- … … 823 841 824 842 procedure Semaphore_Create ( 825 Name : in RTEMS.Name; 826 Count : in RTEMS.Unsigned32; 827 Attribute_Set : in RTEMS.Attribute; 828 ID : out RTEMS.ID; 829 Result : out RTEMS.Status_Codes 843 Name : in RTEMS.Name; 844 Count : in RTEMS.Unsigned32; 845 Attribute_Set : in RTEMS.Attribute; 846 Priority_Ceiling : in RTEMS.Task_Priority; 847 ID : out RTEMS.ID; 848 Result : out RTEMS.Status_Codes 830 849 ) is 831 850 function Semaphore_Create_Base ( 832 Name : RTEMS.Name; 833 Count : RTEMS.Unsigned32; 834 Attribute_Set : RTEMS.Attribute; 835 ID : access RTEMS.ID 851 Name : RTEMS.Name; 852 Count : RTEMS.Unsigned32; 853 Attribute_Set : RTEMS.Attribute; 854 Priority_Ceiling : RTEMS.Task_Priority; 855 ID : access RTEMS.ID 836 856 ) return RTEMS.Status_Codes; 837 857 pragma Import (C, Semaphore_Create_Base, "rtems_semaphore_create"); … … 843 863 Count, 844 864 Attribute_Set, 865 Priority_Ceiling, 845 866 ID_Base'Unchecked_Access 846 867 ); … … 935 956 -- XXX broken 936 957 function Message_Queue_Create_Base ( 937 Name : RTEMS.Name; 938 Count : RTEMS.Unsigned32; 939 Attribute_Set : RTEMS.Attribute; 940 ID : access RTEMS.ID 958 Name : RTEMS.Name; 959 Count : RTEMS.Unsigned32; 960 Max_Message_Size : RTEMS.Unsigned32; 961 Attribute_Set : RTEMS.Attribute; 962 ID : access RTEMS.ID 941 963 ) return RTEMS.Status_Codes; 942 964 pragma Import (C, … … 948 970 Name, 949 971 Count, 972 Max_Message_Size, 950 973 Attribute_Set, 951 974 ID_Base'Unchecked_Access … … 1932 1955 ) is 1933 1956 function Rate_Monotonic_Period_Base ( 1934 ID : RTEMS.ID 1957 ID : RTEMS.ID; 1958 Length : RTEMS.Interval 1935 1959 ) return RTEMS.Status_Codes; 1936 1960 pragma Import (C, Rate_Monotonic_Period_Base, … … 1938 1962 begin 1939 1963 1940 Result := Rate_Monotonic_Period_base ( ID );1964 Result := Rate_Monotonic_Period_base ( ID, Length ); 1941 1965 1942 1966 end Rate_Monotonic_Period; -
c/src/ada/rtems.ads
r7d366f1c rd348ad96 10 10 -- 11 11 -- 12 -- COPYRIGHT (c) 19 89 - 1997.12 -- COPYRIGHT (c) 1997. 13 13 -- On-Line Applications Research Corporation (OAR). 14 -- 15 -- The license and distribution terms for this file may in 16 -- the file LICENSE in this distribution or at 17 -- http://www.OARcorp.com/rtems/license.html. 18 -- 19 -- $Id$ 14 20 -- 15 21 … … 21 27 package RTEMS is 22 28 23 Structure_Alignment : constant := 16;29 Structure_Alignment : constant := 8; 24 30 25 31 -- … … 74 80 subtype Option is RTEMS.Unsigned32; 75 81 subtype Task_Priority is RTEMS.Unsigned32; 76 subtype Notepad_Index is RTEMS.Unsigned32 ;82 subtype Notepad_Index is RTEMS.Unsigned32 range 0 .. 15; 77 83 78 84 subtype Event_Set is RTEMS.Unsigned32; … … 263 269 Yield_Processor : constant RTEMS.Interval := 0; 264 270 Current_Priority : constant RTEMS.Task_Priority := 0; 271 No_Priority : constant RTEMS.Task_Priority := 0; 265 272 266 273 … … 766 773 ) return Standard.Boolean; 767 774 775 function Subtract ( 776 Left : in RTEMS.Address; 777 Right : in RTEMS.Address 778 ) return RTEMS.Unsigned32; 779 768 780 -- 769 781 -- RTEMS API … … 999 1011 1000 1012 procedure Semaphore_Create ( 1001 Name : in RTEMS.Name; 1002 Count : in RTEMS.Unsigned32; 1003 Attribute_Set : in RTEMS.Attribute; 1004 ID : out RTEMS.ID; 1005 Result : out RTEMS.Status_Codes 1013 Name : in RTEMS.Name; 1014 Count : in RTEMS.Unsigned32; 1015 Attribute_Set : in RTEMS.Attribute; 1016 Priority_Ceiling : in RTEMS.Task_Priority; 1017 ID : out RTEMS.ID; 1018 Result : out RTEMS.Status_Codes 1006 1019 ); 1007 1020 … … 1385 1398 -- 1386 1399 1400 Debug_All_Mask : constant RTEMS.Debug_Set := 16#ffffffff#; 1401 Debug_Region : constant RTEMS.Debug_Set := 16#00000001#; 1402 1387 1403 procedure Debug_Enable ( 1388 1404 To_Be_Enabled : in RTEMS.Debug_Set
Note: See TracChangeset
for help on using the changeset viewer.