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: clock/http-clock-html.c
- Revision:
- 62:74036bb0d1dc
- Parent:
- 59:309e78f243dd
- Child:
- 73:4e769dbbf9f2
--- a/clock/http-clock-html.c Sat Mar 09 14:26:49 2019 +0000
+++ b/clock/http-clock-html.c Mon Mar 11 09:52:11 2019 +0000
@@ -9,6 +9,7 @@
#include "clkutc.h"
#include "clkgov.h"
#include "scan.h"
+#include "ntpclient.h"
void HttpClockHtml()
{
@@ -57,10 +58,17 @@
PageAddInputInt (12, "Offset synced hys (ms)", 5, ClkGovSlewSyncedHysNs / 1000000 , "/clock", "syncedhysns" );
PageAddInputInt (12, "Offset reset limit (s)", 5, ClkGovSlewOffsetMaxSecs , "/clock", "maxoffsetsecs" );
- PageAddH2("Trace");
if (ClkGovTrace) PageAddInputButton(10, "Trace gov is on", "turn off", "/clock", "clockgovtrace");
else PageAddInputButton(10, "Trace gov is off", "turn on" , "/clock", "clockgovtrace");
+ PageAddH2("NTP");
+ PageAddInputText(12, "Server url", 5, NtpClientQueryServerName, "/clock", "ntpserver" );
+ PageAddInputInt (12, "Initial interval (s)", 5, NtpClientQueryInitialInterval, "/clock", "clockinitial" );
+ PageAddInputInt (12, "Normal interval (m)", 5, NtpClientQueryNormalInterval / 60, "/clock", "clocknormal" );
+ PageAddInputInt (12, "Retry interval (s)", 5, NtpClientQueryRetryInterval, "/clock", "clockretry" );
+ PageAddInputInt (12, "Offset (ms)", 5, NtpClientReplyOffsetMs, "/clock", "clockoffset" );
+ PageAddInputInt (12, "Max delay (ms)", 5, NtpClientReplyMaxDelayMs, "/clock", "clockmaxdelay");
+
PageAddH2("Scan times");
PageAddLabelledInt(17, "Program cycles avg", ScanAverage);
PageAddLabelledInt(17, "Program cycles max", ScanMaximum);