Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Mon Jan 22 18:54:23 2018 +0000
Revision:
25:81014a201736
Parent:
24:6c9833e2a049
Child:
26:0421132e6eaf
Moved timer defines from tick to timer

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:6c9833e2a049 1 #include <stdint.h>
andrewboyson 24:6c9833e2a049 2
andrewboyson 24:6c9833e2a049 3 extern void TimerInit(void);
andrewboyson 24:6c9833e2a049 4 extern uint32_t TimerPeriodCount(uint32_t* pLastCount);
andrewboyson 24:6c9833e2a049 5 extern uint32_t TimerNowCount(void);
andrewboyson 24:6c9833e2a049 6 extern uint32_t TimerSinceCount(uint32_t startCount);
andrewboyson 25:81014a201736 7 extern uint32_t TimerSinceMs(uint32_t startCount);
andrewboyson 25:81014a201736 8
andrewboyson 25:81014a201736 9 #define TIMER_COUNT_PER_SECOND 96000000UL
andrewboyson 25:81014a201736 10 #define TIMER_COUNT_PER_MS (TIMER_COUNT_PER_SECOND / 1000);
andrewboyson 25:81014a201736 11 #define TIMER_COUNT_PER_US (TIMER_COUNT_PER_MS / 1000);