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: test-lpc1768 oldheating gps motorhome ... more
Diff: hrtimer/hrtimer.h
- Revision:
- 51:fb18aa3ec115
- Child:
- 63:b8443aef8d0d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hrtimer/hrtimer.h Mon May 27 10:11:37 2019 +0000 @@ -0,0 +1,15 @@ +#include <stdint.h> +#include <stdbool.h> + +extern uint32_t HrTimerCount(void); + +extern bool HrTimerRepetitiveTick (uint32_t* pLastCount, uint32_t interval); + +extern uint32_t HrTimerSinceRepetitive(uint32_t* pLastCount); +extern uint32_t HrTimerSince (uint32_t lastCount); +extern uint32_t HrTimerSinceMs (uint32_t lastCount); + +extern uint32_t HrTimerProRata(uint32_t value, uint32_t part); +extern void HrTimerInit(void); + +#define HR_TIMER_COUNT_PER_SECOND 96000000UL