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
timer/timer.h
- Committer:
- andrewboyson
- Date:
- 2018-12-01
- Revision:
- 35:ba9f575aa3c6
- Parent:
- timer.h@ 33:b9e3c06e7dab
- Child:
- 39:5b594b1b6a0a
File content as of revision 35:ba9f575aa3c6:
#include <stdint.h>
#include <stdbool.h>
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 bool TimerIntervalHasElapsed(uint32_t* pBaseCount, uint32_t intervalCount);
extern int32_t TimerMultiplyFractionalPart(int32_t value, uint32_t timerCountSinceStart, uint32_t interval);
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);