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: tick.c
- Revision:
- 22:df0b906bda26
- Parent:
- 21:48fe75bcde84
- Child:
- 23:07b19cd5f6d0
diff -r 48fe75bcde84 -r df0b906bda26 tick.c
--- a/tick.c Fri Jan 19 18:38:15 2018 +0000
+++ b/tick.c Fri Jan 19 19:59:43 2018 +0000
@@ -72,11 +72,6 @@
nsTimeCount += slew;
__enable_irq();
slew = 0;
- TickTicked = true;
- }
- else
- {
- TickTicked = false;
}
}
static volatile int64_t nsTickSnapshot;
@@ -84,7 +79,7 @@
static volatile int64_t nsTimeSnapshot;
static volatile uint32_t timerSnapshot;
-void TickSaveSnapshotI()
+void TickSaveSnapshot()
{
timerSnapshot = LPC_TIM0->TC - secondsBaseCount;
nsTickSnapshot = nsTickCount;
@@ -112,7 +107,7 @@
nsFraction = (nsPerTick * fraction) >> 32;
*pNsAbs = nsBase + nsFraction;
}
-void TickRetrieveSnapshot(int64_t* pNsInt, int64_t* pNsAbs)
+void TickGetTimesFromSnapshot(int64_t* pNsInt, int64_t* pNsAbs)
{
makeTimesFromCounts(timerSnapshot, nsTickSnapshot, nsFreqSnapshot, nsTimeSnapshot, pNsInt, pNsAbs);
}