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
Diff: timer/timer.h
- Revision:
- 40:53666b1a5848
- Parent:
- 39:5b594b1b6a0a
- Child:
- 41:8cd859cd1475
--- a/timer/timer.h Mon Dec 03 12:50:10 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -#include <stdint.h> -#include <stdbool.h> - -extern uint32_t TimerCount(void); -extern uint32_t TimerSinceRepetitive(uint32_t* pLastCount); -extern uint32_t TimerSinceCount(uint32_t lastCount); -extern uint32_t TimerSinceMs(uint32_t lastCount); -extern bool TimerRepetitiveTick(uint32_t* pLastCount, uint32_t interval); - -extern int32_t TimerMultiplyFractionalPart(int32_t value, uint32_t timerCountSinceLast, 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);