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: sync.c
- Revision:
- 22:df0b906bda26
- Parent:
- 18:207dd1474cd9
- Child:
- 26:0421132e6eaf
diff -r 48fe75bcde84 -r df0b906bda26 sync.c
--- a/sync.c Fri Jan 19 18:38:15 2018 +0000
+++ b/sync.c Fri Jan 19 19:59:43 2018 +0000
@@ -81,7 +81,7 @@
//Get the time at the time of the interrupt
int64_t thisIntClock;
int64_t thisAbsClock;
- TickRetrieveSnapshot(&thisIntClock, &thisAbsClock);
+ TickGetTimesFromSnapshot(&thisIntClock, &thisAbsClock);
//Calulate the time error
int64_t absDiff = thisAbsClock - thisExtClock;
@@ -114,6 +114,6 @@
lastIntClock = thisIntClock;
lastExtClock = thisExtClock;
}
-void SyncPpsI( ) { TickSaveSnapshotI(); }
+void SyncPpsI( ) { TickSaveSnapshot(); }
void SyncPpsN(time_t t ) { int64_t ns = t * ONE_BILLION; sync(ns); }
-void SyncNs (int64_t ns) { TickSaveSnapshotI(); sync(ns); }
+void SyncNs (int64_t ns) { TickSaveSnapshot(); sync(ns); }