From be1feeedeb531816d8a5e97a48515b57b1176b79 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 1 Feb 2002 14:09:51 +0000 Subject: 2001-01-31 Joel Sherrill * include/rtems/rtems/timer.h: Missed merging these modifications in previous merge of new timer functionality. --- c/src/exec/rtems/ChangeLog | 5 +++++ c/src/exec/rtems/include/rtems/rtems/timer.h | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) (limited to 'c') diff --git a/c/src/exec/rtems/ChangeLog b/c/src/exec/rtems/ChangeLog index dc436ac762..4c06aab12b 100644 --- a/c/src/exec/rtems/ChangeLog +++ b/c/src/exec/rtems/ChangeLog @@ -1,3 +1,8 @@ +2001-01-31 Joel Sherrill + + * include/rtems/rtems/timer.h: Missed merging these modifications + in previous merge of new timer functionality. + 2001-01-29 Joel Sherrill * Fixed bug where resetting a timer that was not at the head diff --git a/c/src/exec/rtems/include/rtems/rtems/timer.h b/c/src/exec/rtems/include/rtems/rtems/timer.h index 58d40b3e05..a1f2434c34 100644 --- a/c/src/exec/rtems/include/rtems/rtems/timer.h +++ b/c/src/exec/rtems/include/rtems/rtems/timer.h @@ -318,6 +318,27 @@ rtems_status_code rtems_timer_initiate_server( rtems_attribute attribute_set ); +/* + * rtems_timer_get_information + * + * DESCRIPTION: + * + * This routine implements the rtems_timer_get_information directive. + * This directive returns information about the timer. + */ + +typedef struct { + Timer_Classes the_class; + Watchdog_Interval initial; + Watchdog_Interval start_time; + Watchdog_Interval stop_time; +} rtems_timer_information; + +rtems_status_code rtems_timer_get_information( + Objects_Id id, + rtems_timer_information *the_info +); + #ifndef __RTEMS_APPLICATION__ #include #endif -- cgit v1.2.3