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

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


On Tue, 25 Mar 2003 gregory.menke at 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.


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

More information about the users mailing list