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:
- 31:f6ff7fdb9c67
- Parent:
- 26:0421132e6eaf
- Child:
- 33:b9e3c06e7dab
diff -r 212ca42b8779 -r f6ff7fdb9c67 timer.h --- a/timer.h Fri Feb 16 17:30:46 2018 +0000 +++ b/timer.h Thu Nov 29 16:51:19 2018 +0000 @@ -8,10 +8,11 @@ extern uint32_t TimerCountSinceLastSecond(void); extern int32_t TimerMultiplyFractionalPart(int32_t value, uint32_t timerCountSinceLastSecond); -extern bool TimerTicked; +extern bool TimerHadSecond; extern void TimerMain(void); 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); +#define TIMER_TICKS_PER_SECOND 50