Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: udp/ntp/ntpserver.c
- Revision:
- 124:6e558721ec1c
- Parent:
- 123:44fea08759af
- Child:
- 125:8c84daac38ab
--- a/udp/ntp/ntpserver.c Thu Feb 21 12:53:06 2019 +0000
+++ b/udp/ntp/ntpserver.c Fri Feb 22 08:41:47 2019 +0000
@@ -4,7 +4,7 @@
#include "clkgov.h"
#include "clktime.h"
#include "clkutc.h"
-#include "clkntp.h"
+#include "ntptimestamp.h"
#include "clkutc.h"
#include "ntp.h"
#include "action.h"
@@ -60,7 +60,7 @@
}
static uint64_t getRefNtp()
{
- return ClkTimeToNtpTimeStamp(ClkRefTai());
+ return NtpTimeStampFromClkTime(ClkRefTai());
}
int NtpServerRequest(void (*traceback)(void), struct NtpHeader* pHeaderRx, struct NtpHeader* pHeaderTx)
{
@@ -75,7 +75,7 @@
}
uint64_t refNtp = getRefNtp();
- uint64_t nowNtp = ClkTimeToNtpTimeStamp(ClkTimeGet());
+ uint64_t nowNtp = NtpTimeStampFromClkTime(ClkTimeGet());
int stratum = getStratum();
char* ident = getIdent();
int li = getLi();