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 sched/addrenv: Remove up_addrenv_restore 2023-02-08 02:51:23 +08:00
app_vs_os.rst sched/signal: Remove shadow definitions to reduce unnecessary API 2025-10-14 17:40:18 +08:00
arch.rst driver/serial: remove return value of up_putc() 2024-10-26 13:21:29 +08:00
board.rst
conventions.rst docs/os: fix typos 2024-04-21 11:06:46 +08:00
events.rst Documentation: Remove nxevent_tickwait_wait() description 2025-10-31 19:56:32 -03:00
index.rst docs/sched/sched: Add documentation for different sleep interfaces 2025-12-04 18:59:58 +01:00
iob.rst documentation: spelling and grammar fixes 2025-07-24 14:44:02 +08:00
led.rst
mutex.rst Documentation: fix spelling 2025-05-15 11:33:41 +08:00
newreno.rst style: fix typos 2025-04-30 13:45:46 +08:00
notifier.rst fs: Add VFS docs 2024-02-20 18:28:09 -08:00
nuttx.rst sched/sched: Update the comments and docs. 2026-01-13 21:41:35 +08:00
paging.rst
shm.rst Remove the double blank line from source files 2022-02-20 20:10:14 +01:00
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 signal: Remove configurable assignment of signal numbers 2023-03-26 08:31:36 -06:00