Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Delay generation



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.


Home | Main Index | Thread Index | Old Index