|
Additional _timers for ROBOTC. More...
Go to the source code of this file.
Data Structures | |
struct | typeTMR |
Defines | |
#define | MAX_TIMERS 10 |
Functions | |
int | TMRnewTimer () |
bool | TMRisExpired (int timerIdx) |
void | TMRreset (int timerIdx) |
void | TMRreset (int timerIdx, long duration) |
void | TMRsetup (int timerIdx, long duration) |
void | TMRexpire (int timerIdx) |
Variables | |
typeTMR | _timers [MAX_TIMERS] |
Additional _timers for ROBOTC.
timer.h provides additional timers for ROBOTC. Please note that there is no roll-over checking done at all. That means that if the program runs for more than around 596 hours, it will roll over and weird stuff will happen.
The default number of timers is 10, but this can be changed by defining MAX_TIMERS before this driver is included.
License: You may use this code as you wish, provided you give credit where its due. THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.
Changelog:
Definition in file timer.h.