Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Revision:
26:0421132e6eaf
Parent:
25:81014a201736
Child:
31:f6ff7fdb9c67
diff -r 81014a201736 -r 0421132e6eaf timer.h
--- a/timer.h	Mon Jan 22 18:54:23 2018 +0000
+++ b/timer.h	Thu Jan 25 07:54:54 2018 +0000
@@ -1,11 +1,17 @@
 #include <stdint.h>
+#include <stdbool.h>
 
-extern void     TimerInit(void);
-extern uint32_t TimerPeriodCount(uint32_t* pLastCount);
 extern uint32_t TimerNowCount(void);
+extern uint32_t TimerIntervalCount(uint32_t* pLastCount);
 extern uint32_t TimerSinceCount(uint32_t startCount);
 extern uint32_t TimerSinceMs(uint32_t startCount);
 
+extern uint32_t TimerCountSinceLastSecond(void);
+extern int32_t  TimerMultiplyFractionalPart(int32_t value, uint32_t timerCountSinceLastSecond);
+extern bool     TimerTicked;
+extern void     TimerMain(void);
+extern void     TimerInit(void);
+
 #define TIMER_COUNT_PER_SECOND 96000000UL
 #define TIMER_COUNT_PER_MS     (TIMER_COUNT_PER_SECOND / 1000);
 #define TIMER_COUNT_PER_US     (TIMER_COUNT_PER_MS     / 1000);