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: oldheating gps motorhome heating
hrtimer/hrtimer.h
- Committer:
- andrewboyson
- Date:
- 2018-12-04
- Revision:
- 40:53666b1a5848
- Parent:
- timer/timer.h@ 39:5b594b1b6a0a
- Child:
- 63:28738aaad2a8
File content as of revision 40:53666b1a5848:
#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 int32_t HrTimerMultiplyFractionalPart(int32_t value, uint32_t part, uint32_t interval);
extern void HrTimerInit(void);
#define HR_TIMER_COUNT_PER_SECOND 96000000UL