nuttx/Documentation
Kerogit 8ad4f90b72 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-17 17:10:02 +08:00
..
_extensions Documentation: port warnings_filter Sphinx extension from Zephyr 2023-11-28 09:18:29 -08:00
_static docs: reduce main content max width from 1200px to 1000px 2021-03-26 23:41:45 -05:00
_templates
applications Documentation/applications/audioutils/mml_parser/index.rst: fix typo 2026-06-10 16:37:32 +08:00
components Documentation/components/boards.rst: fix typo 2026-06-10 08:54:17 -03:00
contributing doc: Contributing tools/checkpatch.sh example update. 2026-04-18 19:06:06 -03:00
debugging Documentation/debugging: add stackusage tool documentation 2026-03-17 11:26:44 -03:00
faq !boards: Remove NSH_ARCHINIT and board_app_initialize 2026-05-02 18:36:46 +08:00
guides docs: Fix duplicate toctree references causing build warnings 2026-06-10 17:11:19 +08:00
implementation doc: Migrating the rest of documentation from cwiki. 2026-05-28 09:34:04 +08:00
introduction WIP: Documentation: replace first person perspectives 2025-05-19 20:21:33 +08:00
logos style: fix typos 2025-04-30 13:45:46 +08:00
platforms arch/avr/src/avrdx/avrdx_delay: add custom up_udelay function 2026-06-17 17:10:02 +08:00
quickstart Dockerfile & Docs: Change bitbucket.org/nuttx/tools to github.com 2026-05-25 08:34:45 -03:00
reference arch/avr/src/avrdx/avrdx_delay: add custom up_udelay function 2026-06-17 17:10:02 +08:00
ReleaseNotes Documentation: add NuttX-12.13.0 release notes 2026-03-29 22:34:53 +08:00
standards Documentation/posix.rst: fix typos 2025-08-22 20:50:13 +08:00
testing docs/testing/citests: Expand CI testing documentation 2026-03-05 18:12:54 +01:00
.gitignore docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
conf.py Documentation: conf: Ignore .venv 2026-05-29 01:26:21 +08:00
glossary.rst
index.rst docs/security: Add Security section to the documentation. 2026-01-06 02:17:20 +08:00
known-warnings.txt fs: Add VFS docs 2024-02-20 18:28:09 -08:00
legacy_README.md style: Fix "the the" typo across the codebase. 2026-03-23 11:07:49 +01:00
make.bat
Makefile doc: Improve sphinx build time + add autobuild help info. 2026-01-27 09:50:55 +08:00
Pipfile docs/plantuml: Add PlantUML support to Documentation build 2026-02-15 08:47:23 +01:00
Pipfile.lock build(deps): bump idna from 3.11 to 3.15 in /Documentation 2026-05-20 13:13:59 -04:00
security.rst docs/security: Add Security section to the documentation. 2026-01-06 02:17:20 +08:00
substitutions.rst Remove the double blank line from source files 2022-02-20 20:10:14 +01:00