Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Thu Jan 11 17:39:36 2018 +0000
Revision:
17:927fc1eceb9d
Parent:
15:e6d1d763ca18
Child:
18:207dd1474cd9
Removed dependence on Mbed OS

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 17:927fc1eceb9d 1 #include <stdint.h>
andrewboyson 17:927fc1eceb9d 2 #include <time.h>
andrewboyson 17:927fc1eceb9d 3
andrewboyson 15:e6d1d763ca18 4 extern void ClockNsToTmUtc (int64_t clk, struct tm* ptm);
andrewboyson 15:e6d1d763ca18 5 extern int64_t ClockNsFromTmUtc(struct tm* ptm);
andrewboyson 15:e6d1d763ca18 6
andrewboyson 13:0200519c9bbf 7 extern int ClockSlewDivisor ;
andrewboyson 13:0200519c9bbf 8 extern int ClockSlewMaxMs ;
andrewboyson 13:0200519c9bbf 9 extern int ClockPpbDivisor ;
andrewboyson 13:0200519c9bbf 10 extern int ClockPpbChangeMax ;
andrewboyson 13:0200519c9bbf 11 extern int ClockSyncedLimitNs ;
andrewboyson 13:0200519c9bbf 12 extern int ClockSyncedLimitPpb ;
andrewboyson 13:0200519c9bbf 13 extern int ClockSyncedHysterisNs ;
andrewboyson 13:0200519c9bbf 14 extern int ClockSyncedHysterisPpb;
andrewboyson 13:0200519c9bbf 15 extern int ClockMaxOffsetSecs ;
andrewboyson 13:0200519c9bbf 16
andrewboyson 17:927fc1eceb9d 17 extern int64_t ClockRefNs(void);
andrewboyson 17:927fc1eceb9d 18 extern int ClockIsSet(void);
andrewboyson 17:927fc1eceb9d 19 extern int ClockIsSynced(void);
andrewboyson 17:927fc1eceb9d 20 extern int64_t ClockNowNs(void);
andrewboyson 1:f3746f3cc345 21 extern void ClockTmLocal(struct tm* ptm);
andrewboyson 1:f3746f3cc345 22 extern void ClockTmUtc (struct tm* ptm);
andrewboyson 1:f3746f3cc345 23
andrewboyson 17:927fc1eceb9d 24 extern int ClockTicked;
andrewboyson 17:927fc1eceb9d 25 extern void ClockInit(void);
andrewboyson 17:927fc1eceb9d 26 extern void ClockMain(void);