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.h
- Revision:
- 25:81014a201736
- Parent:
- 24:6c9833e2a049
- Child:
- 26:0421132e6eaf
--- a/timer.h Mon Jan 22 18:35:11 2018 +0000 +++ b/timer.h Mon Jan 22 18:54:23 2018 +0000 @@ -4,4 +4,8 @@ extern uint32_t TimerPeriodCount(uint32_t* pLastCount); extern uint32_t TimerNowCount(void); extern uint32_t TimerSinceCount(uint32_t startCount); -extern uint32_t TimerSinceMs(uint32_t startCount); \ No newline at end of file +extern uint32_t TimerSinceMs(uint32_t startCount); + +#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);