summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/todimpl.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-07-23 15:35:35 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-07-23 16:53:24 -0500
commit875fff0ae3d7676bbd8816caf1b32e33142d2e73 (patch)
treede7a2c0e7f8dcdef75aac8a9e913de873aa097b6 /cpukit/score/include/rtems/score/todimpl.h
parentadjtime.c: Use timestamp math and simplify (diff)
downloadrtems-875fff0ae3d7676bbd8816caf1b32e33142d2e73.tar.bz2
Add _TOD_Adjust to SCORE TOD Handler.
This lays the proper structure for doing future work on time adjustment algorithms. Any TOD adjustments should be requested at the API level and performed at the SCORE level. Additionally updated a test.
Diffstat (limited to 'cpukit/score/include/rtems/score/todimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/todimpl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/todimpl.h b/cpukit/score/include/rtems/score/todimpl.h
index 9284d45501..68a2d15dd4 100644
--- a/cpukit/score/include/rtems/score/todimpl.h
+++ b/cpukit/score/include/rtems/score/todimpl.h
@@ -322,6 +322,18 @@ RTEMS_INLINE_ROUTINE void _TOD_Get_timeval(
_Timestamp_To_timeval( snapshot_as_timestamp_ptr, time );
}
+/**
+ * @brief Adjust the Time of Time
+ *
+ * This method is used to adjust the current time of day by the
+ * specified amount.
+ *
+ * @param[in] delta is the amount to adjust
+ */
+void _TOD_Adjust(
+ const Timestamp_Control timestamp
+);
+
RTEMS_INLINE_ROUTINE void _TOD_Set_nanoseconds_since_last_tick_handler(
TOD_Nanoseconds_since_last_tick_routine routine
)