mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-31 14:14:33 +08:00
@@ -2782,7 +2782,7 @@ package body SPTEST is
|
||||
);
|
||||
TEXT_IO.NEW_LINE;
|
||||
|
||||
RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
|
||||
RTEMS.CLOCK.GET_TOD( TIME, STATUS );
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
|
||||
TEST_SUPPORT.PRINT_TIME( "TA1 - clock_get - ", TIME, "" );
|
||||
TEXT_IO.NEW_LINE;
|
||||
@@ -2906,7 +2906,7 @@ package body SPTEST is
|
||||
);
|
||||
TEXT_IO.NEW_LINE;
|
||||
|
||||
RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
|
||||
RTEMS.CLOCK.GET_TOD( TIME, STATUS );
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "clock_set" );
|
||||
TEST_SUPPORT.PRINT_TIME( "TA1 - clock_get - ", TIME, "" );
|
||||
TEXT_IO.NEW_LINE;
|
||||
|
||||
@@ -241,8 +241,7 @@ package body SPTEST is
|
||||
);
|
||||
|
||||
-- timestamp
|
||||
RTEMS.CLOCK.GET_TICKS_SINCE_BOOT( Time( INDEX ), STATUS );
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "clock_get of TA6" );
|
||||
Time( INDEX ) := RTEMS.CLOCK.GET_TICKS_SINCE_BOOT;
|
||||
end loop;
|
||||
|
||||
for INDEX in 1 .. 10 loop
|
||||
|
||||
@@ -190,7 +190,7 @@ package body DUMMY_RTEMS is
|
||||
-- Clock Manager
|
||||
|
||||
procedure CLOCK_GET_TOD (
|
||||
TIME_BUFFER : out RTEMS.ADDRESS;
|
||||
TIME_BUFFER : out RTEMS.TIME_OF_DAY;
|
||||
RESULT : out RTEMS.STATUS_CODES
|
||||
) is
|
||||
pragma Unreferenced(TIME_BUFFER);
|
||||
|
||||
@@ -109,7 +109,7 @@ package DUMMY_RTEMS is
|
||||
-- Clock Manager
|
||||
|
||||
procedure CLOCK_GET_TOD (
|
||||
TIME_BUFFER : out RTEMS.ADDRESS;
|
||||
TIME_BUFFER : out RTEMS.TIME_OF_DAY;
|
||||
RESULT : out RTEMS.STATUS_CODES
|
||||
);
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ with TEST_SUPPORT;
|
||||
with TEXT_IO;
|
||||
with TIME_TEST_SUPPORT;
|
||||
with TIMER_DRIVER;
|
||||
with RTEMS.CLOCK;
|
||||
|
||||
package body TMTEST is
|
||||
|
||||
|
||||
@@ -122,4 +122,19 @@ package body RTEMS.Clock is
|
||||
|
||||
end Tick;
|
||||
|
||||
function Get_Ticks_Since_Boot
|
||||
return RTEMS.Interval
|
||||
is
|
||||
Watchdog_Ticks_since_boot : RTEMS.Interval;
|
||||
pragma Import (
|
||||
C,
|
||||
Watchdog_Ticks_since_boot,
|
||||
"_Watchdog_Ticks_since_boot"
|
||||
);
|
||||
begin
|
||||
|
||||
return Watchdog_Ticks_since_boot;
|
||||
|
||||
end Get_Ticks_Since_Boot;
|
||||
|
||||
end RTEMS.Clock;
|
||||
|
||||
@@ -66,11 +66,6 @@ package RTEMS.Clock is
|
||||
|
||||
function Get_Ticks_Since_Boot
|
||||
return RTEMS.Interval;
|
||||
pragma Import (
|
||||
C,
|
||||
Get_Ticks_Since_Boot,
|
||||
"rtems_clock_get_ticks_since_boot"
|
||||
);
|
||||
|
||||
procedure Get_Uptime (
|
||||
Uptime : out RTEMS.Timespec;
|
||||
|
||||
Reference in New Issue
Block a user