summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-02-07 16:10:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-02-21 14:16:41 +0100
commit8f1e8f8f26525a8819c8982a2d2c4e339e9921a0 (patch)
tree956a3d8c2a516e39c7ac84cd5388ccdd150e756c /cpukit/include/rtems/score
parentkern_ntptime.c: Import from FreeBSD (diff)
downloadrtems-8f1e8f8f26525a8819c8982a2d2c4e339e9921a0.tar.bz2
kern_ntptime.c: Port to RTEMS
Remove previous adjtime() implementation. Update #2348.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r--cpukit/include/rtems/score/timecounter.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/timecounter.h b/cpukit/include/rtems/score/timecounter.h
index 39f0dc353e..954da65676 100644
--- a/cpukit/include/rtems/score/timecounter.h
+++ b/cpukit/include/rtems/score/timecounter.h
@@ -270,6 +270,15 @@ void _Timecounter_Set_NTP_update_second(
Timecounter_NTP_update_second handler
);
+/**
+ * @brief Updates the time adjustment and seconds according to the NTP state.
+ *
+ * @param[in, out] adjustment is the NTP time adjustment.
+ *
+ * @param[in, out] newsec is the number of seconds since Unix epoch.
+ */
+void _Timecounter_NTP_update_second(int64_t *adjustment, time_t *newsec);
+
/** @} */
#ifdef __cplusplus