Re: Delay generation

"Jonathan A. Kollasch" <[email protected]> Wed, 23 Jul 2025 07:23:09 -0500
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
On Wed, Jul 23, 2025 at 09:06:32AM +0000, Vincent DEFERT wrote:
> What's the proper way to generate a short delay (1-100 microseconds) in a
> driver, in order to implement a peripheral initialisation procedure.
> On a microcontroller, I would use the systick timer for this.

delay(9), DELAY(9), or kpause(9).  Beware that kpause will probably be
on the order of milliseconds instead of microseconds even if you request
a microsecond-scale number.