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
tick.h@17:927fc1eceb9d, 2018-01-11 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 11 17:39:36 2018 +0000
- Revision:
- 17:927fc1eceb9d
- Parent:
- 14:7ef557918bb1
- Child:
- 18:207dd1474cd9
Removed dependence on Mbed OS
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 17:927fc1eceb9d | 1 | #include <stdint.h> |
| andrewboyson | 17:927fc1eceb9d | 2 | |
| andrewboyson | 17:927fc1eceb9d | 3 | extern void TickSaveSnapshotI(void); |
| andrewboyson | 6:d8a6235486b7 | 4 | extern void TickRetrieveSnapshot(int64_t* pNsInt, int64_t* pNsAbs); |
| andrewboyson | 6:d8a6235486b7 | 5 | extern void TickGetTimes (int64_t* pNsInt, int64_t* pNsAbs); |
| andrewboyson | 0:33686e88f09a | 6 | extern void TickSet(int64_t extClock); |
| andrewboyson | 0:33686e88f09a | 7 | |
| andrewboyson | 17:927fc1eceb9d | 8 | extern int32_t TickGetSlew(void); extern void TickSetSlew(int32_t value); |
| andrewboyson | 17:927fc1eceb9d | 9 | extern int32_t TickGetPpb (void); extern void TickSetPpb (int32_t value); extern void TickAddPpb(int32_t value); |
| andrewboyson | 17:927fc1eceb9d | 10 | extern int TickIsSet(void); |
| andrewboyson | 0:33686e88f09a | 11 | |
| andrewboyson | 14:7ef557918bb1 | 12 | extern int32_t TickElapsed(int32_t* pLastCount); |
| andrewboyson | 17:927fc1eceb9d | 13 | extern int Ticked(int32_t* pLastTime); |
| andrewboyson | 14:7ef557918bb1 | 14 | |
| andrewboyson | 17:927fc1eceb9d | 15 | extern void TickInit(void); |
| andrewboyson | 14:7ef557918bb1 | 16 | |
| andrewboyson | 17:927fc1eceb9d | 17 | #define TICK_COUNT_PER_SECOND 96000000 |
| andrewboyson | 17:927fc1eceb9d | 18 | #define TICK_COUNT_PER_MS TICK_COUNT_PER_SECOND / 1000; |
| andrewboyson | 17:927fc1eceb9d | 19 | #define TICK_COUNT_PER_US TICK_COUNT_PER_MS / 1000; |