Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Tue Dec 04 12:26:27 2018 +0000
Revision:
40:53666b1a5848
Parent:
timer/timer.h@39:5b594b1b6a0a
Child:
63:28738aaad2a8
Renamed timer to hrtimer; added clktimer to handle utc based times.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:6c9833e2a049 1 #include <stdint.h>
andrewboyson 26:0421132e6eaf 2 #include <stdbool.h>
andrewboyson 24:6c9833e2a049 3
andrewboyson 40:53666b1a5848 4 extern uint32_t HrTimerCount(void);
andrewboyson 40:53666b1a5848 5
andrewboyson 40:53666b1a5848 6 extern bool HrTimerRepetitiveTick (uint32_t* pLastCount, uint32_t interval);
andrewboyson 25:81014a201736 7
andrewboyson 40:53666b1a5848 8 extern uint32_t HrTimerSinceRepetitive(uint32_t* pLastCount);
andrewboyson 40:53666b1a5848 9 extern uint32_t HrTimerSince (uint32_t lastCount);
andrewboyson 40:53666b1a5848 10 extern uint32_t HrTimerSinceMs (uint32_t lastCount);
andrewboyson 26:0421132e6eaf 11
andrewboyson 40:53666b1a5848 12 extern int32_t HrTimerMultiplyFractionalPart(int32_t value, uint32_t part, uint32_t interval);
andrewboyson 40:53666b1a5848 13 extern void HrTimerInit(void);
andrewboyson 40:53666b1a5848 14
andrewboyson 40:53666b1a5848 15 #define HR_TIMER_COUNT_PER_SECOND 96000000UL