Hi,
One of my customer wants to use Task_Delay function at the sub millisecond level. They want to do this without configuring the clk_tick in the cfg to a sub millisecond level.
Any inputs here will be appreciated.
Regards
Pawan
Pawan,
BIOS has a Task_sleep() which is based on the Clock tick. Obviously if your Clock tick is 1 ms or greater, you cannot have a sleep that is less than a Clock tick.
There is no API called Task_delay() that I am aware of. What's the motivation for having a small delay?
One way I can think of to achieve this sub millisecond delay is to have a second timer programmed as a one shot timer with a small period...for example 100microseconds. This timer should post a semaphore which the task is going to pend on. The task should start the timer before it does a semaphore_pend.
Judah
If my reply answers your question please mark the thread as answered