nuttx/Documentation/reference/os
Kerogit 0b5bf6c2c5 arch/avr/src/avrdx/avrdx_delay: add custom up_udelay function
NuttX builtin up_udelay function uses BOARD_LOOPSPERMSEC configuration
value to determine how many loops need to be done to cause requested
delay. This does not match well with AVR DA/DB microcontrollers
because the CPU clock frequency is configurable.

A board configuration could therefore provide BOARD_LOOPSPERMSEC
valid for one frequency but for other frequencies, the user would
be required to calibrate the value and would still get incorrect
result when changing the clock speed during runtime.

This patch therefore implements dynamic architecture-specific
up_udelay function which determines current clock settings
and infers required loop count from that.

New function was tested by simple application that used up_udelay
to put delays between printf calls.

Signed-off-by: Kerogit <kr.git@kerogit.eu>
2026-06-12 09:55:11 -04:00
..
addrenv.rst
app_vs_os.rst
arch.rst
board.rst
conventions.rst
events.rst
index.rst docs/sched/sched: Add documentation for different sleep interfaces 2025-12-04 18:59:58 +01:00
iob.rst
led.rst
mutex.rst
newreno.rst
notifier.rst
nuttx.rst sched/sched: Update the comments and docs. 2026-01-13 21:41:35 +08:00
paging.rst
shm.rst
sleep.rst arch/avr/src/avrdx/avrdx_delay: add custom up_udelay function 2026-06-12 09:55:11 -04:00
smp.rst
time_clock.rst Documentation/reference/os/time_clock: fix indentation in HR Timer description 2026-02-28 20:59:01 -05:00
wqueue.rst