------------------
Donald A. Fleck
------------------
Donald A. Fleck
Which page of the manual?
The tick counter will rollover from 0xFFFFFFFF to 0x00000000, assuming you're doing a source-code build with OSBYTES_OF_TICKS set to 4.
Your assumption that it will all work without intervention is correct.
Keep in mind that ticks and delays are not the same thing. Ticks are just an open-ended free-running counter that tracks the number of system ticks, and can be read via OSGetTicks(). Ticks are useful for long-term time measurement.
Delays are in ticks units, but that's the only link between them. You could have
code:and you could infer a time period of up to 2**32x1ms with calls to OSGetTicks(), but you could only delay a task by 2**16x1ms in a single OS_Delay(2**16-1).#define OSBYTES_OF_TICKS 4
#define OSBYTES_OF_DELAYS 2
Hope this Helps,
------------------
------------------
Donald A. Fleck
It will be part of the manual's next release.
------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.
Users browsing this forum: No registered users and 0 guests