Subject: Re: syncronous sleep
To: Dante Profeta <email@example.com>
From: Ignatios Souvatzis <firstname.lastname@example.org>
Date: 06/20/1998 20:58:42
> In some critical sections of AdvanSys driver, where all the interrupts
> (software/hardware) are supposed to be disabled, I have to wait for some
> nanoseconds/milliseconds in a syncronous way, i.e. I cannot be awaked by
> an interrupt.
> The manufacturer source code I have perform the sleep conditions in
> do-nothing loops, which I think it is not a valid solution at all.
> Is there a way to hung the whole system (taking over the system) for
> some nanoseconds/milliseconds?
> Otherwise how should I handle such delays?
For these cases, there are the DELAY(n) macro, and delay(n) function, which
wait for (at least, and normally not much longer, although I wouldn't bet
on it) n microseconds.