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@19:e537bacd1478, 2018-01-17 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Jan 17 20:42:14 2018 +0000
- Revision:
- 19:e537bacd1478
- Parent:
- 18:207dd1474cd9
- Child:
- 20:62e0760cae13
Moved power enable out of init. Added timer functions.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 17:927fc1eceb9d | 1 | #include <stdint.h> |
| andrewboyson | 18:207dd1474cd9 | 2 | #include <stdbool.h> |
| andrewboyson | 17:927fc1eceb9d | 3 | |
| andrewboyson | 18:207dd1474cd9 | 4 | extern void TickSaveSnapshotI(void); |
| andrewboyson | 18:207dd1474cd9 | 5 | extern void TickRetrieveSnapshot(int64_t* pNsInt, int64_t* pNsAbs); |
| andrewboyson | 18:207dd1474cd9 | 6 | extern void TickGetTimes (int64_t* pNsInt, int64_t* pNsAbs); |
| andrewboyson | 18:207dd1474cd9 | 7 | extern void TickSet(int64_t extClock); |
| andrewboyson | 0:33686e88f09a | 8 | |
| andrewboyson | 18:207dd1474cd9 | 9 | extern int32_t TickGetSlew(void); extern void TickSetSlew(int32_t value); |
| andrewboyson | 18:207dd1474cd9 | 10 | extern int32_t TickGetPpb (void); extern void TickSetPpb (int32_t value); extern void TickAddPpb(int32_t value); |
| andrewboyson | 18:207dd1474cd9 | 11 | extern bool TickIsSet(void); |
| andrewboyson | 0:33686e88f09a | 12 | |
| andrewboyson | 19:e537bacd1478 | 13 | extern uint32_t TickElapsed (uint32_t* pLastCount); |
| andrewboyson | 19:e537bacd1478 | 14 | extern uint32_t TickTimerStart(void); |
| andrewboyson | 19:e537bacd1478 | 15 | extern uint32_t TickTimerCount(uint32_t startCount); |
| andrewboyson | 19:e537bacd1478 | 16 | extern uint32_t TickTimerMs (uint32_t startCount); |
| andrewboyson | 14:7ef557918bb1 | 17 | |
| andrewboyson | 18:207dd1474cd9 | 18 | extern void TickInit(void); |
| andrewboyson | 18:207dd1474cd9 | 19 | extern void TickMain(void); |
| andrewboyson | 14:7ef557918bb1 | 20 | |
| andrewboyson | 18:207dd1474cd9 | 21 | #define TICK_COUNT_PER_SECOND 96000000UL |
| andrewboyson | 17:927fc1eceb9d | 22 | #define TICK_COUNT_PER_MS TICK_COUNT_PER_SECOND / 1000; |
| andrewboyson | 17:927fc1eceb9d | 23 | #define TICK_COUNT_PER_US TICK_COUNT_PER_MS / 1000; |