Does rtems have a portable, sort-of calibrated time-wasting loop?

Eugeny S. Mints Eugeny.Mints at oktet.ru
Wed Mar 26 09:24:06 UTC 2003


Hi,

On Tue, 25 Mar 2003 gregory.menke at gsfc.nasa.gov wrote:

>
> Perhaps something like Linux's udelay- it doesn't have to be fast, but
> should cause the program to spin for the supplied interval.  It should
> not itself reschedule, so rtems_wake_after is out- and should be
> callable from an isr.

Yes, seems it is 'rtems_bsp_delay()' macro. Each bsp should
define it in a custom way (because it is very dependent on
the clock speed of the target). I'm not sure, wether it is
callable from an isr but don't see any restriction for this.

Regards,
			Eugeny

-- 
Eugeny S. Mints
OKTET Ltd.
1 Ulianovskaya st., Petergof, St.Petersburg, 198904 Russia
Phone: +7(812)428-4384 Fax: +7(812)327-2246
mailto:Eugeny.Mints at oktet.ru




More information about the users mailing list