Page 1 of 1

OSBYTES_OF_DELAYS/TICKS

PostPosted: Thu Jan 25, 2001 7:48 am
by ChrisV
Hello,
What is the main difference between these two config settings and how do you know which one to use , if not both?

Re: OSBYTES_OF_DELAYS/TICKS

PostPosted: Thu Jan 25, 2001 8:09 am
by Salvo Tech Support
Hi ChrisV.

OSBYTES_OF_TICKS enables the code and memory for the system tick counter, and allows you to use OSSetTicks() and OSGetTicks(). With OSBYTES_OF_TICKS >= 0, you can compute absolute elapsed time in ticks. If you don't need this info, leave OSBYTES_OF_TICKS at its default of 0.

OSBYTES_OF_DELAYS enables the code and memory for task delay functions (OS_Delay()). OSBYTES_OF_DELAYS must be >=0 in order to call OS_Delay() in a task.

Both of these features use OSTimer(). That is, if you enable either or both of these functions, you must call OSTimer() at the system tick rate you've chosen for your application.

Please see the configuration chapter in the Salvo User Manual for specifics on setting these configuration options.

[This message has been edited by Salvo Tech Support (edited January 25, 2001).]