Add GetTimer()
This commit is contained in:
parent
01e1077e25
commit
76ee150b3f
|
@ -18,6 +18,11 @@ void delayms_queue(uint32_t delayms);
|
|||
void delayms_power(uint32_t delayms);
|
||||
int push_queue(void (*qnew)(void));
|
||||
int magic(void *qnew);
|
||||
|
||||
// Note:
|
||||
// Our time implementation will fail after 497 days of continous uptime.
|
||||
// ( 2^32 / 1000 * SYSTICKSPEED ) seconds
|
||||
|
||||
#define incTimer(void) do{_timectr++;}while(0);
|
||||
|
||||
#define getTimer() (_timectr)
|
||||
|
||||
|
|
Loading…
Reference in New Issue