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
clock.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 | 19:e537bacd1478 | 1 | #include <stdbool.h> |
| andrewboyson | 17:927fc1eceb9d | 2 | #include <stdint.h> |
| andrewboyson | 17:927fc1eceb9d | 3 | #include <time.h> |
| andrewboyson | 17:927fc1eceb9d | 4 | |
| andrewboyson | 15:e6d1d763ca18 | 5 | extern void ClockNsToTmUtc (int64_t clk, struct tm* ptm); |
| andrewboyson | 15:e6d1d763ca18 | 6 | extern int64_t ClockNsFromTmUtc(struct tm* ptm); |
| andrewboyson | 15:e6d1d763ca18 | 7 | |
| andrewboyson | 13:0200519c9bbf | 8 | extern int ClockSlewDivisor ; |
| andrewboyson | 13:0200519c9bbf | 9 | extern int ClockSlewMaxMs ; |
| andrewboyson | 13:0200519c9bbf | 10 | extern int ClockPpbDivisor ; |
| andrewboyson | 13:0200519c9bbf | 11 | extern int ClockPpbChangeMax ; |
| andrewboyson | 13:0200519c9bbf | 12 | extern int ClockSyncedLimitNs ; |
| andrewboyson | 13:0200519c9bbf | 13 | extern int ClockSyncedLimitPpb ; |
| andrewboyson | 13:0200519c9bbf | 14 | extern int ClockSyncedHysterisNs ; |
| andrewboyson | 13:0200519c9bbf | 15 | extern int ClockSyncedHysterisPpb; |
| andrewboyson | 13:0200519c9bbf | 16 | extern int ClockMaxOffsetSecs ; |
| andrewboyson | 13:0200519c9bbf | 17 | |
| andrewboyson | 17:927fc1eceb9d | 18 | extern int64_t ClockRefNs(void); |
| andrewboyson | 17:927fc1eceb9d | 19 | extern int ClockIsSet(void); |
| andrewboyson | 17:927fc1eceb9d | 20 | extern int ClockIsSynced(void); |
| andrewboyson | 17:927fc1eceb9d | 21 | extern int64_t ClockNowNs(void); |
| andrewboyson | 1:f3746f3cc345 | 22 | extern void ClockTmLocal(struct tm* ptm); |
| andrewboyson | 1:f3746f3cc345 | 23 | extern void ClockTmUtc (struct tm* ptm); |
| andrewboyson | 1:f3746f3cc345 | 24 | |
| andrewboyson | 18:207dd1474cd9 | 25 | extern bool ClockTicked; |
| andrewboyson | 18:207dd1474cd9 | 26 | extern uint32_t ClockScanAverage; |
| andrewboyson | 18:207dd1474cd9 | 27 | extern uint32_t ClockScanMinimum; |
| andrewboyson | 18:207dd1474cd9 | 28 | extern uint32_t ClockScanMaximum; |
| andrewboyson | 18:207dd1474cd9 | 29 | extern void ClockInit(void); |
| andrewboyson | 18:207dd1474cd9 | 30 | extern void ClockMain(void); |