>>On Palm OS 3.3 this hangs up the system. Does anyone have any ideas?
>
>SysTaskDelay(time * ticksPerTenth);
>
>is the problem. SysTaskDelay wants a number of ticks. Why do you 
>multiple it by time, and what value is time set to?
>
>Also, if you want 10 ms, I think you want
>
>ticksPerSec = SysTicksPerSecond();
>ticksPerTenth = ticksPerSec / 100;

The problem is with the system totally locking up after SysTaskDelay 
is called inside a trap on OS 3.3, I guess this is because it's a 
blocking operation... I think...

Is there any other way to delay for a predetermined amount of time 
inside a trap? I can't even use TimGetTicks, because the timer isn't 
updated in a trap. For example:

UInt32 timerCount;
Int sillyLoop;

timerCount = TimGetTicks();
for(sillyLoop=0;sillyLoop!=10000;sillyLoop++) { ; }
timerCount = TimGetTicks();

timerCount will be the same value before and after the loop

Is there any way of getting a timer reference value at this point?

Thanks.



-- 
Toby Boreham
Research and Development Director
PBE Systems Ltd.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to