[ECOS] accurate ms delay

Jesper Skov jskov@redhat.com
Tue Mar 12 23:16:00 GMT 2002


On Fri, 2002-03-08 at 12:26, Jani Monoses wrote:
> 
> Is it OK to use hal_delay_us in a generic .inl driver instead of the
> not-too-accurate for loops?

Yes, it's always a preference over for loops. Just be carefull to not
delay with the interrupts disabled.


>Is this function guarranteed to be implemented
> by every platform?

Yes - there is a fall-back implementation that is just a for-loop. So
accuracy is not guaranteed. But since RedBoot rely on the function, it's
available (and fairly accurate) on most platforms.

Jesper


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list