Changeset 23848bbd in rtems for c/src/ada-tests/support/test_support.adb
- Timestamp:
- Oct 1, 2007, 10:58:09 PM (14 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- d731ccc7
- Parents:
- f10fe707
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ada-tests/support/test_support.adb
rf10fe707 r23848bbd 207 207 begin 208 208 209 return RTEMS.Get_Index( TID ) - 1 - 210 RTEMS.Configuration.RTEMS_API_Configuration.Number_Of_Initialization_Tasks; 209 -- probably OK 210 return RTEMS.Get_Index( TID ) - 1; 211 -- Ignoring this component. 212 -- - RTEMS.Configuration.RTEMS_API_Configuration.Number_Of_Initialization_Tasks; 211 213 212 214 end Task_Number; … … 230 232 function Milliseconds_Per_Tick 231 233 return RTEMS.Unsigned32 is 232 begin 233 return RTEMS.Configuration.Microseconds_Per_Tick / 1000; 234 function Milliseconds_Per_Tick_Base return RTEMS.Unsigned32; 235 pragma Import (C, Milliseconds_Per_Tick_Base, "milliseconds_per_tick"); 236 begin 237 return Milliseconds_Per_Tick_Base; 234 238 end Milliseconds_Per_Tick; 239 240 --PAGE 241 -- 242 -- Milliseconds_Per_Tick 243 -- 244 function Ticks_Per_Second 245 return RTEMS.Interval is 246 function Ticks_Per_Second_Base return RTEMS.Unsigned32; 247 pragma Import (C, Ticks_Per_Second_Base, "ticks_per_second"); 248 begin 249 return Ticks_Per_Second_Base; 250 end Ticks_Per_Second; 251 252 -- 253 -- Node is the node number in a multiprocessor configuration 254 -- 255 256 function Node 257 return RTEMS.Unsigned32 is 258 function Get_Node_Base return RTEMS.Unsigned32; 259 pragma Import (C, Get_Node_Base, "get_node"); 260 begin 261 return Get_Node_Base; 262 end Node; 235 263 end Test_Support;
Note: See TracChangeset
for help on using the changeset viewer.