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.h
- Revision:
- 17:927fc1eceb9d
- Parent:
- 14:7ef557918bb1
- Child:
- 18:207dd1474cd9
--- a/tick.h Sat Dec 16 14:51:41 2017 +0000 +++ b/tick.h Thu Jan 11 17:39:36 2018 +0000 @@ -1,17 +1,19 @@ -extern void TickSaveSnapshotI(); +#include <stdint.h> + +extern void TickSaveSnapshotI(void); extern void TickRetrieveSnapshot(int64_t* pNsInt, int64_t* pNsAbs); extern void TickGetTimes (int64_t* pNsInt, int64_t* pNsAbs); extern void TickSet(int64_t extClock); -extern int32_t TickGetSlew(); extern void TickSetSlew(int32_t value); -extern int32_t TickGetPpb (); extern void TickSetPpb (int32_t value); extern void TickAddPpb(int32_t value); -extern bool TickIsSet(); +extern int32_t TickGetSlew(void); extern void TickSetSlew(int32_t value); +extern int32_t TickGetPpb (void); extern void TickSetPpb (int32_t value); extern void TickAddPpb(int32_t value); +extern int TickIsSet(void); extern int32_t TickElapsed(int32_t* pLastCount); -extern int Ticked(); +extern int Ticked(int32_t* pLastTime); -extern int TickInit(); +extern void TickInit(void); -const int TICK_COUNT_PER_SECOND = 96000000; -const int TICK_COUNT_PER_MS = TICK_COUNT_PER_SECOND / 1000; -const int TICK_COUNT_PER_US = TICK_COUNT_PER_MS / 1000; +#define TICK_COUNT_PER_SECOND 96000000 +#define TICK_COUNT_PER_MS TICK_COUNT_PER_SECOND / 1000; +#define TICK_COUNT_PER_US TICK_COUNT_PER_MS / 1000;