ZBasic System Library
344
ZBasic Microcontrollers
Resource Usage
The interval counter is driven off of the real time clock. If interrupts are disabled for long periods of time,
the timing wont be accurate. I/O routines that disable interrupts typically track RTC ticks and then update
the RTC when the I/O process has completed. At this same time, the interval counter will be updated as
well accounting for, at most, one missed expiration.
There is a single, system-wide interval timer. Only one task can be awaiting an interval at a time. If a
task is already waiting, another call to WaitForInterval() will return immediately.
Compatibility
If the RTC is not included in your application this routine will not be available. This routine is also not
available in BasicX compatibility mode.
See Also
|