From 8f1e8f8f26525a8819c8982a2d2c4e339e9921a0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 7 Feb 2022 16:10:45 +0100 Subject: kern_ntptime.c: Port to RTEMS Remove previous adjtime() implementation. Update #2348. --- cpukit/include/rtems/score/timecounter.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/include/rtems/score/timecounter.h') 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 -- cgit v1.2.3