diff options
-rw-r--r-- | c/src/exec/rtems/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/exec/rtems/include/rtems/rtems/timer.h | 21 | ||||
-rw-r--r-- | cpukit/rtems/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/timer.h | 21 |
4 files changed, 52 insertions, 0 deletions
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 <joel@OARcorp.com> + + * include/rtems/rtems/timer.h: Missed merging these modifications + in previous merge of new timer functionality. + 2001-01-29 Joel Sherrill <joel@OARcorp.com> * 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 <rtems/rtems/timer.inl> #endif diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog index dc436ac762..4c06aab12b 100644 --- a/cpukit/rtems/ChangeLog +++ b/cpukit/rtems/ChangeLog @@ -1,3 +1,8 @@ +2001-01-31 Joel Sherrill <joel@OARcorp.com> + + * include/rtems/rtems/timer.h: Missed merging these modifications + in previous merge of new timer functionality. + 2001-01-29 Joel Sherrill <joel@OARcorp.com> * Fixed bug where resetting a timer that was not at the head diff --git a/cpukit/rtems/include/rtems/rtems/timer.h b/cpukit/rtems/include/rtems/rtems/timer.h index 58d40b3e05..a1f2434c34 100644 --- a/cpukit/rtems/include/rtems/rtems/timer.h +++ b/cpukit/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 <rtems/rtems/timer.inl> #endif |