Changeset a8e724d6 in rtems for c/src/ada-tests/support
- Timestamp:
- Sep 29, 2008, 8:44:58 PM (12 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- c217cf7
- Parents:
- 56abb78
- Location:
- c/src/ada-tests/support
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ada-tests/support/timer_driver.adb
r56abb78 ra8e724d6 21 21 22 22 with RTEMS; 23 with Interfaces.C; 23 24 24 25 package body Timer_Driver is 26 27 --PAGE 28 -- 29 -- Empty_function 30 -- 31 -- 32 procedure Empty_Function 33 is 34 begin 35 Null; 36 end Empty_Function; 25 37 26 38 --PAGE … … 34 46 ) is 35 47 procedure Set_Find_Average_Overhead_base ( 36 Find_Flag : in RTEMS.Boolean48 Find_Flag : in Interfaces.Unsigned_8 37 49 ); 38 50 pragma Import (C, Set_Find_Average_Overhead_base, 39 "Set_find_average_overhead"); 51 "benchmark_timer_disable_subtracting_average_overhead"); 52 c: Interfaces.Unsigned_8; 40 53 begin 41 Set_Find_Average_Overhead_base (RTEMS.From_Ada_Boolean (Find_Flag)); 54 if Find_Flag then 55 c := 1; 56 else 57 c := 0; 58 end if; 59 Set_Find_Average_Overhead_base (c); 42 60 end Set_Find_Average_Overhead; 43 61 -
c/src/ada-tests/support/timer_driver.ads
r56abb78 ra8e724d6 61 61 62 62 procedure Empty_Function; 63 pragma Import (C, Empty_Function, "Empty_function");64 63 65 64 -- … … 75 74 Find_Flag : in Standard.Boolean 76 75 ); 77 pragma Import (C, Set_Find_Average_Overhead,78 "benchmark_timer_disable_subtracting_average_overhead");79 76 80 77 private
Note: See TracChangeset
for help on using the changeset viewer.