This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/nuttx-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 88420f93e Publishing web: b60308ab7a8ef08b9e996fc82e4f29ebf2421019
docs: c47911ffa10788d8df018c63549c2b3756e62786
88420f93e is described below
commit 88420f93e7e68ad92438273f581d0f964a3768ed
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Fri Dec 5 00:38:46 2025 +0000
Publishing web: b60308ab7a8ef08b9e996fc82e4f29ebf2421019 docs:
c47911ffa10788d8df018c63549c2b3756e62786
---
content/docs/10.0.0/index.html | 2 +-
content/docs/10.0.1/index.html | 2 +-
content/docs/10.1.0/index.html | 2 +-
content/docs/10.2.0/index.html | 2 +-
content/docs/10.3.0/index.html | 2 +-
content/docs/11.0.0/index.html | 2 +-
content/docs/12.0.0/index.html | 2 +-
content/docs/12.0.0/searchindex.js | 2 +-
content/docs/12.1.0/index.html | 2 +-
content/docs/12.1.0/searchindex.js | 2 +-
content/docs/12.10.0/index.html | 2 +-
content/docs/12.10.0/searchindex.js | 2 +-
content/docs/12.11.0/guides/fully_linked_elf.html | 2 +-
.../docs/12.11.0/guides/partially_linked_elf.html | 2 +-
content/docs/12.11.0/index.html | 2 +-
content/docs/12.11.0/searchindex.js | 2 +-
content/docs/12.2.0/index.html | 2 +-
content/docs/12.2.0/searchindex.js | 2 +-
content/docs/12.2.1/index.html | 2 +-
content/docs/12.2.1/searchindex.js | 2 +-
content/docs/12.3.0/index.html | 2 +-
content/docs/12.3.0/searchindex.js | 2 +-
content/docs/12.4.0/index.html | 2 +-
content/docs/12.4.0/searchindex.js | 2 +-
content/docs/12.5.0/index.html | 2 +-
content/docs/12.5.0/searchindex.js | 2 +-
content/docs/12.5.1/index.html | 2 +-
content/docs/12.5.1/searchindex.js | 2 +-
content/docs/12.6.0/index.html | 2 +-
content/docs/12.6.0/searchindex.js | 2 +-
content/docs/12.7.0/index.html | 2 +-
content/docs/12.7.0/searchindex.js | 2 +-
content/docs/12.8.0/index.html | 2 +-
content/docs/12.8.0/searchindex.js | 2 +-
content/docs/12.9.0/index.html | 2 +-
content/docs/12.9.0/searchindex.js | 2 +-
.../latest/_sources/reference/os/index.rst.txt | 1 +
.../latest/_sources/reference/os/sleep.rst.txt | 115 ++++++
content/docs/latest/genindex.html | 32 +-
content/docs/latest/guides/fully_linked_elf.html | 2 +-
.../docs/latest/guides/partially_linked_elf.html | 2 +-
content/docs/latest/index.html | 2 +-
content/docs/latest/objects.inv | Bin 170795 -> 171115 bytes
content/docs/latest/reference/os/addrenv.html | 1 +
content/docs/latest/reference/os/app_vs_os.html | 1 +
content/docs/latest/reference/os/arch.html | 1 +
content/docs/latest/reference/os/board.html | 1 +
content/docs/latest/reference/os/conventions.html | 1 +
content/docs/latest/reference/os/events.html | 1 +
content/docs/latest/reference/os/index.html | 10 +
content/docs/latest/reference/os/iob.html | 1 +
content/docs/latest/reference/os/led.html | 1 +
content/docs/latest/reference/os/mutex.html | 1 +
content/docs/latest/reference/os/newreno.html | 1 +
content/docs/latest/reference/os/notifier.html | 1 +
content/docs/latest/reference/os/nuttx.html | 1 +
content/docs/latest/reference/os/paging.html | 1 +
content/docs/latest/reference/os/shm.html | 1 +
content/docs/latest/reference/os/sleep.html | 434 +++++++++++++++++++++
content/docs/latest/reference/os/smp.html | 5 +-
content/docs/latest/reference/os/time_clock.html | 5 +-
content/docs/latest/reference/os/wqueue.html | 1 +
content/docs/latest/searchindex.js | 2 +-
content/feed.xml | 4 +-
64 files changed, 651 insertions(+), 50 deletions(-)
diff --git a/content/docs/10.0.0/index.html b/content/docs/10.0.0/index.html
index 8fcbc7195..b52bf2e6c 100644
--- a/content/docs/10.0.0/index.html
+++ b/content/docs/10.0.0/index.html
@@ -207,7 +207,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<div class="section" id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline">¶</a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller
environments, the primary governing standards in NuttX are Posix and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:15</p>
+<p>Last Updated: 05 December 25 at 00:15</p>
<div class="toctree-wrapper compound">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
diff --git a/content/docs/10.0.1/index.html b/content/docs/10.0.1/index.html
index bcc53fa60..6dfe2cce1 100644
--- a/content/docs/10.0.1/index.html
+++ b/content/docs/10.0.1/index.html
@@ -247,7 +247,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<div class="section" id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline">¶</a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller
environments, the primary governing standards in NuttX are Posix and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:16</p>
+<p>Last Updated: 05 December 25 at 00:16</p>
<div class="toctree-wrapper compound">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
diff --git a/content/docs/10.1.0/index.html b/content/docs/10.1.0/index.html
index f8eafc6dc..9d717f82e 100644
--- a/content/docs/10.1.0/index.html
+++ b/content/docs/10.1.0/index.html
@@ -247,7 +247,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<div class="section" id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline">¶</a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:16</p>
+<p>Last Updated: 05 December 25 at 00:16</p>
<div class="toctree-wrapper compound">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
diff --git a/content/docs/10.2.0/index.html b/content/docs/10.2.0/index.html
index 2aa4895b1..f00bc25b5 100644
--- a/content/docs/10.2.0/index.html
+++ b/content/docs/10.2.0/index.html
@@ -248,7 +248,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<div class="section" id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline">¶</a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:16</p>
+<p>Last Updated: 05 December 25 at 00:16</p>
<div class="toctree-wrapper compound">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
diff --git a/content/docs/10.3.0/index.html b/content/docs/10.3.0/index.html
index 2aa4895b1..f00bc25b5 100644
--- a/content/docs/10.3.0/index.html
+++ b/content/docs/10.3.0/index.html
@@ -248,7 +248,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<div class="section" id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline">¶</a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:16</p>
+<p>Last Updated: 05 December 25 at 00:16</p>
<div class="toctree-wrapper compound">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
diff --git a/content/docs/11.0.0/index.html b/content/docs/11.0.0/index.html
index 430b75b45..66553c742 100644
--- a/content/docs/11.0.0/index.html
+++ b/content/docs/11.0.0/index.html
@@ -248,7 +248,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<div class="section" id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline">¶</a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:17</p>
+<p>Last Updated: 05 December 25 at 00:17</p>
<div class="toctree-wrapper compound">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.0.0/index.html b/content/docs/12.0.0/index.html
index 32b5774a2..44446cf60 100644
--- a/content/docs/12.0.0/index.html
+++ b/content/docs/12.0.0/index.html
@@ -173,7 +173,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<section id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline"></a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:17</p>
+<p>Last Updated: 05 December 25 at 00:17</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.0.0/searchindex.js
b/content/docs/12.0.0/searchindex.js
index 34dd17e81..b3d0a25cc 100644
--- a/content/docs/12.0.0/searchindex.js
+++ b/content/docs/12.0.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["applications/index","applications/nsh/builtin","applications/nsh/commands","applications/nsh/config","applications/nsh/customizing","applications/nsh/index","applications/nsh/installation","applications/nsh/login","applications/nsh/nsh","components/binfmt","components/drivers/block/index","components/drivers/character/analog","components/drivers/character/can","components/drivers/character/foc","components/drivers/character/index","components/drivers/character
[...]
\ No newline at end of file
+Search.setIndex({docnames:["applications/index","applications/nsh/builtin","applications/nsh/commands","applications/nsh/config","applications/nsh/customizing","applications/nsh/index","applications/nsh/installation","applications/nsh/login","applications/nsh/nsh","components/binfmt","components/drivers/block/index","components/drivers/character/analog","components/drivers/character/can","components/drivers/character/foc","components/drivers/character/index","components/drivers/character
[...]
\ No newline at end of file
diff --git a/content/docs/12.1.0/index.html b/content/docs/12.1.0/index.html
index b5eb651fd..c2c39ca72 100644
--- a/content/docs/12.1.0/index.html
+++ b/content/docs/12.1.0/index.html
@@ -173,7 +173,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<section id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this headline"></a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:17</p>
+<p>Last Updated: 05 December 25 at 00:17</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.1.0/searchindex.js
b/content/docs/12.1.0/searchindex.js
index 89ef6bd59..df20350c8 100644
--- a/content/docs/12.1.0/searchindex.js
+++ b/content/docs/12.1.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["applications/index","applications/nsh/builtin","applications/nsh/commands","applications/nsh/config","applications/nsh/customizing","applications/nsh/index","applications/nsh/installation","applications/nsh/login","applications/nsh/nsh","components/binfmt","components/drivers/block/index","components/drivers/character/analog","components/drivers/character/can","components/drivers/character/foc","components/drivers/character/index","components/drivers/character
[...]
\ No newline at end of file
+Search.setIndex({docnames:["applications/index","applications/nsh/builtin","applications/nsh/commands","applications/nsh/config","applications/nsh/customizing","applications/nsh/index","applications/nsh/installation","applications/nsh/login","applications/nsh/nsh","components/binfmt","components/drivers/block/index","components/drivers/character/analog","components/drivers/character/can","components/drivers/character/foc","components/drivers/character/index","components/drivers/character
[...]
\ No newline at end of file
diff --git a/content/docs/12.10.0/index.html b/content/docs/12.10.0/index.html
index c75d70e70..846e27e10 100644
--- a/content/docs/12.10.0/index.html
+++ b/content/docs/12.10.0/index.html
@@ -185,7 +185,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:30</p>
+<p>Last Updated: 05 December 25 at 00:31</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.10.0/searchindex.js
b/content/docs/12.10.0/searchindex.js
index 757232d80..20d8f1fd5 100644
--- a/content/docs/12.10.0/searchindex.js
+++ b/content/docs/12.10.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["_tags/arch-arm64", "_tags/arch-avr",
"_tags/arch-example", "_tags/chip-a527", "_tags/chip-a64",
"_tags/chip-at90usb", "_tags/chip-atmega", "_tags/chip-atmega2560",
"_tags/chip-bcm2711", "_tags/chip-esp32", "_tags/chip-esp32a1s",
"_tags/chip-esp32picod4", "_tags/chip-esp32s2", "_tags/chip-esp32s3",
"_tags/chip-esp32wroom32", "_tags/chip-esp32wrover32", "_tags/chip-example",
"_tags/chip-fpga", "_tags/chip-imx8", "_tags/chip-imx93", "_tags/chip-nrf52",
"_tags/ [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["_tags/arch-arm64", "_tags/arch-avr",
"_tags/arch-example", "_tags/chip-a527", "_tags/chip-a64",
"_tags/chip-at90usb", "_tags/chip-atmega", "_tags/chip-atmega2560",
"_tags/chip-bcm2711", "_tags/chip-esp32", "_tags/chip-esp32a1s",
"_tags/chip-esp32picod4", "_tags/chip-esp32s2", "_tags/chip-esp32s3",
"_tags/chip-esp32wroom32", "_tags/chip-esp32wrover32", "_tags/chip-example",
"_tags/chip-fpga", "_tags/chip-imx8", "_tags/chip-imx93", "_tags/chip-nrf52",
"_tags/ [...]
\ No newline at end of file
diff --git a/content/docs/12.11.0/guides/fully_linked_elf.html
b/content/docs/12.11.0/guides/fully_linked_elf.html
index 712005858..ed5e810d1 100644
--- a/content/docs/12.11.0/guides/fully_linked_elf.html
+++ b/content/docs/12.11.0/guides/fully_linked_elf.html
@@ -477,7 +477,7 @@ NuttX package: <code class="docutils literal
notranslate"><span class="pre">nutt
<div
class="admonition-here-is-an-alternative-minimal-and-possibly-outdated-version
admonition">
<p class="admonition-title">Here is an alternative minimal (and possibly
outdated) version</p>
<div class="sphinx_collapse docutils">
-<input class="sphinx_collapse__input"
id="26d3393e-b547-4bbb-9552-4529b97c6a5d"
name="26d3393e-b547-4bbb-9552-4529b97c6a5d" type="checkbox"><label
class="sphinx_collapse__label" for="26d3393e-b547-4bbb-9552-4529b97c6a5d"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
+<input class="sphinx_collapse__input"
id="d71c95e6-511a-474c-be31-8b5d47ae8de5"
name="d71c95e6-511a-474c-be31-8b5d47ae8de5" type="checkbox"><label
class="sphinx_collapse__label" for="d71c95e6-511a-474c-be31-8b5d47ae8de5"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
<div class="highlight-text notranslate"><div
class="highlight"><pre><span></span>SECTIONS
{
.text 0x00000000 :
diff --git a/content/docs/12.11.0/guides/partially_linked_elf.html
b/content/docs/12.11.0/guides/partially_linked_elf.html
index 0d2437b07..32371115d 100644
--- a/content/docs/12.11.0/guides/partially_linked_elf.html
+++ b/content/docs/12.11.0/guides/partially_linked_elf.html
@@ -503,7 +503,7 @@ NuttX package: <code class="docutils literal
notranslate"><span class="pre">nutt
<div
class="admonition-here-is-an-alternative-minimal-and-possibly-outdated-version
admonition">
<p class="admonition-title">Here is an alternative minimal (and possibly
outdated) version</p>
<div class="sphinx_collapse docutils">
-<input class="sphinx_collapse__input"
id="3810a21d-8c8b-4a6d-9a77-69da5af70080"
name="3810a21d-8c8b-4a6d-9a77-69da5af70080" type="checkbox"><label
class="sphinx_collapse__label" for="3810a21d-8c8b-4a6d-9a77-69da5af70080"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
+<input class="sphinx_collapse__input"
id="ebd1b2e6-133a-4a4f-a84d-a7935b33fff9"
name="ebd1b2e6-133a-4a4f-a84d-a7935b33fff9" type="checkbox"><label
class="sphinx_collapse__label" for="ebd1b2e6-133a-4a4f-a84d-a7935b33fff9"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
<div class="highlight-text notranslate"><div
class="highlight"><pre><span></span>SECTIONS
{
.text 0x00000000 :
diff --git a/content/docs/12.11.0/index.html b/content/docs/12.11.0/index.html
index 726ac0261..4d14236ec 100644
--- a/content/docs/12.11.0/index.html
+++ b/content/docs/12.11.0/index.html
@@ -187,7 +187,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:32</p>
+<p>Last Updated: 05 December 25 at 00:33</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.11.0/searchindex.js
b/content/docs/12.11.0/searchindex.js
index 362eecee6..a42e37668 100644
--- a/content/docs/12.11.0/searchindex.js
+++ b/content/docs/12.11.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["_tags/arch-arm64", "_tags/arch-avr",
"_tags/arch-example", "_tags/chip-a527", "_tags/chip-a64",
"_tags/chip-at90usb", "_tags/chip-atmega", "_tags/chip-atmega2560",
"_tags/chip-bcm2711", "_tags/chip-esp32", "_tags/chip-esp32a1s",
"_tags/chip-esp32picod4", "_tags/chip-esp32s2", "_tags/chip-esp32s3",
"_tags/chip-esp32wroom32", "_tags/chip-esp32wrover32", "_tags/chip-example",
"_tags/chip-fpga", "_tags/chip-imx8", "_tags/chip-imx93", "_tags/chip-imx95",
"_tags/ [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["_tags/arch-arm64", "_tags/arch-avr",
"_tags/arch-example", "_tags/chip-a527", "_tags/chip-a64",
"_tags/chip-at90usb", "_tags/chip-atmega", "_tags/chip-atmega2560",
"_tags/chip-bcm2711", "_tags/chip-esp32", "_tags/chip-esp32a1s",
"_tags/chip-esp32picod4", "_tags/chip-esp32s2", "_tags/chip-esp32s3",
"_tags/chip-esp32wroom32", "_tags/chip-esp32wrover32", "_tags/chip-example",
"_tags/chip-fpga", "_tags/chip-imx8", "_tags/chip-imx93", "_tags/chip-imx95",
"_tags/ [...]
\ No newline at end of file
diff --git a/content/docs/12.2.0/index.html b/content/docs/12.2.0/index.html
index ea381bbd5..8e702c087 100644
--- a/content/docs/12.2.0/index.html
+++ b/content/docs/12.2.0/index.html
@@ -174,7 +174,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<section id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this heading"></a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:18</p>
+<p>Last Updated: 05 December 25 at 00:18</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.2.0/searchindex.js
b/content/docs/12.2.0/searchindex.js
index c1fe1a95e..1d6539ca0 100644
--- a/content/docs/12.2.0/searchindex.js
+++ b/content/docs/12.2.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/index",
"applications/nsh/builtin", "applications/nsh/commands",
"applications/nsh/config", "applications/nsh/customizing",
"applications/nsh/index", "applications/nsh/installation",
"applications/nsh/login", "applications/nsh/nsh", "applications/nxdiag/config",
"applications/nxdiag/index", "applications/wapi/commands",
"applications/wapi/index", "applications/wapi/wireless", "components/binfmt",
"components/drivers/block/index", "components/dr [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/index",
"applications/nsh/builtin", "applications/nsh/commands",
"applications/nsh/config", "applications/nsh/customizing",
"applications/nsh/index", "applications/nsh/installation",
"applications/nsh/login", "applications/nsh/nsh", "applications/nxdiag/config",
"applications/nxdiag/index", "applications/wapi/commands",
"applications/wapi/index", "applications/wapi/wireless", "components/binfmt",
"components/drivers/block/index", "components/dr [...]
\ No newline at end of file
diff --git a/content/docs/12.2.1/index.html b/content/docs/12.2.1/index.html
index ea381bbd5..8e702c087 100644
--- a/content/docs/12.2.1/index.html
+++ b/content/docs/12.2.1/index.html
@@ -174,7 +174,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<section id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this heading"></a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:18</p>
+<p>Last Updated: 05 December 25 at 00:18</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.2.1/searchindex.js
b/content/docs/12.2.1/searchindex.js
index 2d1ec3a1c..c94efa344 100644
--- a/content/docs/12.2.1/searchindex.js
+++ b/content/docs/12.2.1/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/index",
"applications/nsh/builtin", "applications/nsh/commands",
"applications/nsh/config", "applications/nsh/customizing",
"applications/nsh/index", "applications/nsh/installation",
"applications/nsh/login", "applications/nsh/nsh", "applications/nxdiag/config",
"applications/nxdiag/index", "applications/wapi/commands",
"applications/wapi/index", "applications/wapi/wireless", "components/binfmt",
"components/drivers/block/index", "components/dr [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/index",
"applications/nsh/builtin", "applications/nsh/commands",
"applications/nsh/config", "applications/nsh/customizing",
"applications/nsh/index", "applications/nsh/installation",
"applications/nsh/login", "applications/nsh/nsh", "applications/nxdiag/config",
"applications/nxdiag/index", "applications/wapi/commands",
"applications/wapi/index", "applications/wapi/wireless", "components/binfmt",
"components/drivers/block/index", "components/dr [...]
\ No newline at end of file
diff --git a/content/docs/12.3.0/index.html b/content/docs/12.3.0/index.html
index 4e8e3e855..459bad21d 100644
--- a/content/docs/12.3.0/index.html
+++ b/content/docs/12.3.0/index.html
@@ -174,7 +174,7 @@ by following these <a class="reference internal"
href="contributing/documentatio
<section id="nuttx-documentation">
<h1>NuttX Documentation<a class="headerlink" href="#nuttx-documentation"
title="Permalink to this heading"></a></h1>
<p>NuttX is a real-time operating system (RTOS) with an emphasis on standards
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller
environments, the primary governing standards in NuttX are POSIX and ANSI
standards. Additional standard APIs from Unix and other common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:19</p>
+<p>Last Updated: 05 December 25 at 00:19</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.3.0/searchindex.js
b/content/docs/12.3.0/searchindex.js
index 55c02b83c..cb46bfe8c 100644
--- a/content/docs/12.3.0/searchindex.js
+++ b/content/docs/12.3.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/index",
"applications/nsh/builtin", "applications/nsh/commands",
"applications/nsh/config", "applications/nsh/customizing",
"applications/nsh/index", "applications/nsh/installation",
"applications/nsh/login", "applications/nsh/nsh", "applications/nxdiag/config",
"applications/nxdiag/index", "applications/wapi/commands",
"applications/wapi/index", "applications/wapi/wireless", "components/binfmt",
"components/drivers/block/index", "components/dr [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/index",
"applications/nsh/builtin", "applications/nsh/commands",
"applications/nsh/config", "applications/nsh/customizing",
"applications/nsh/index", "applications/nsh/installation",
"applications/nsh/login", "applications/nsh/nsh", "applications/nxdiag/config",
"applications/nxdiag/index", "applications/wapi/commands",
"applications/wapi/index", "applications/wapi/wireless", "components/binfmt",
"components/drivers/block/index", "components/dr [...]
\ No newline at end of file
diff --git a/content/docs/12.4.0/index.html b/content/docs/12.4.0/index.html
index 95ab531c9..bb39f8641 100644
--- a/content/docs/12.4.0/index.html
+++ b/content/docs/12.4.0/index.html
@@ -181,7 +181,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:19</p>
+<p>Last Updated: 05 December 25 at 00:19</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.4.0/searchindex.js
b/content/docs/12.4.0/searchindex.js
index 257d6c9b4..7c128586a 100644
--- a/content/docs/12.4.0/searchindex.js
+++ b/content/docs/12.4.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/coremark/index", "applications/benchmarks/index",
"applications/boot/index", "applications/boot/mcuboot/index",
"applications/boot/miniboot/index", "applications/canutils/candump/index",
"applications/canutils/canlib/index", "applications/canutils/cansend/index",
"applications/c [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/coremark/index", "applications/benchmarks/index",
"applications/boot/index", "applications/boot/mcuboot/index",
"applications/boot/miniboot/index", "applications/canutils/candump/index",
"applications/canutils/canlib/index", "applications/canutils/cansend/index",
"applications/c [...]
\ No newline at end of file
diff --git a/content/docs/12.5.0/index.html b/content/docs/12.5.0/index.html
index 65c79fd13..423685129 100644
--- a/content/docs/12.5.0/index.html
+++ b/content/docs/12.5.0/index.html
@@ -181,7 +181,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:21</p>
+<p>Last Updated: 05 December 25 at 00:21</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.5.0/searchindex.js
b/content/docs/12.5.0/searchindex.js
index 2f35144df..f0276a42f 100644
--- a/content/docs/12.5.0/searchindex.js
+++ b/content/docs/12.5.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/coremark/index", "applications/benchmarks/index",
"applications/boot/index", "applications/boot/mcuboot/index",
"applications/boot/miniboot/index", "applications/canutils/candump/index",
"applications/canutils/canlib/index", "applications/canutils/cansend/index",
"applications/c [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/coremark/index", "applications/benchmarks/index",
"applications/boot/index", "applications/boot/mcuboot/index",
"applications/boot/miniboot/index", "applications/canutils/candump/index",
"applications/canutils/canlib/index", "applications/canutils/cansend/index",
"applications/c [...]
\ No newline at end of file
diff --git a/content/docs/12.5.1/index.html b/content/docs/12.5.1/index.html
index 8005e2113..b4407315f 100644
--- a/content/docs/12.5.1/index.html
+++ b/content/docs/12.5.1/index.html
@@ -181,7 +181,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:22</p>
+<p>Last Updated: 05 December 25 at 00:22</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.5.1/searchindex.js
b/content/docs/12.5.1/searchindex.js
index 1eae145fc..d2416bc98 100644
--- a/content/docs/12.5.1/searchindex.js
+++ b/content/docs/12.5.1/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/coremark/index", "applications/benchmarks/index",
"applications/boot/index", "applications/boot/mcuboot/index",
"applications/boot/miniboot/index", "applications/canutils/candump/index",
"applications/canutils/canlib/index", "applications/canutils/cansend/index",
"applications/c [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/coremark/index", "applications/benchmarks/index",
"applications/boot/index", "applications/boot/mcuboot/index",
"applications/boot/miniboot/index", "applications/canutils/candump/index",
"applications/canutils/canlib/index", "applications/canutils/cansend/index",
"applications/c [...]
\ No newline at end of file
diff --git a/content/docs/12.6.0/index.html b/content/docs/12.6.0/index.html
index 46b0e1b5e..83fd141a1 100644
--- a/content/docs/12.6.0/index.html
+++ b/content/docs/12.6.0/index.html
@@ -182,7 +182,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:23</p>
+<p>Last Updated: 05 December 25 at 00:24</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.6.0/searchindex.js
b/content/docs/12.6.0/searchindex.js
index 0288d3657..296c37828 100644
--- a/content/docs/12.6.0/searchindex.js
+++ b/content/docs/12.6.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/benchmarks/iozone/index",
"applications/bench [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/benchmarks/iozone/index",
"applications/bench [...]
\ No newline at end of file
diff --git a/content/docs/12.7.0/index.html b/content/docs/12.7.0/index.html
index ad49e0ff4..352673c6b 100644
--- a/content/docs/12.7.0/index.html
+++ b/content/docs/12.7.0/index.html
@@ -181,7 +181,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:25</p>
+<p>Last Updated: 05 December 25 at 00:26</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.7.0/searchindex.js
b/content/docs/12.7.0/searchindex.js
index 062e82b17..c28d75e9c 100644
--- a/content/docs/12.7.0/searchindex.js
+++ b/content/docs/12.7.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/benchmarks/iozone/index",
"applications/bench [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/benchmarks/iozone/index",
"applications/bench [...]
\ No newline at end of file
diff --git a/content/docs/12.8.0/index.html b/content/docs/12.8.0/index.html
index c31f34362..3dbc41ff6 100644
--- a/content/docs/12.8.0/index.html
+++ b/content/docs/12.8.0/index.html
@@ -181,7 +181,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:26</p>
+<p>Last Updated: 05 December 25 at 00:27</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.8.0/searchindex.js
b/content/docs/12.8.0/searchindex.js
index bc3911630..96dec2ae1 100644
--- a/content/docs/12.8.0/searchindex.js
+++ b/content/docs/12.8.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/benchmarks/iozone/index",
"applications/bench [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/benchmarks/iozone/index",
"applications/bench [...]
\ No newline at end of file
diff --git a/content/docs/12.9.0/index.html b/content/docs/12.9.0/index.html
index a97634c79..2283cd144 100644
--- a/content/docs/12.9.0/index.html
+++ b/content/docs/12.9.0/index.html
@@ -181,7 +181,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:28</p>
+<p>Last Updated: 05 December 25 at 00:29</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/12.9.0/searchindex.js
b/content/docs/12.9.0/searchindex.js
index 1a2f98a1d..7a73d4dfa 100644
--- a/content/docs/12.9.0/searchindex.js
+++ b/content/docs/12.9.0/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/cyclictest/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/b [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["applications/audioutils/fmsynt/index",
"applications/audioutils/index", "applications/audioutils/mml_parser/index",
"applications/audioutils/nxaudio/index",
"applications/benchmarks/cachespeed/index",
"applications/benchmarks/coremark-pro/index",
"applications/benchmarks/coremark/index",
"applications/benchmarks/cyclictest/index",
"applications/benchmarks/dhrystone/index", "applications/benchmarks/fio/index",
"applications/benchmarks/index", "applications/b [...]
\ No newline at end of file
diff --git a/content/docs/latest/_sources/reference/os/index.rst.txt
b/content/docs/latest/_sources/reference/os/index.rst.txt
index f47b09bfb..094ea5d58 100644
--- a/content/docs/latest/_sources/reference/os/index.rst.txt
+++ b/content/docs/latest/_sources/reference/os/index.rst.txt
@@ -23,6 +23,7 @@ in other header files.
paging.rst
shm.rst
smp.rst
+ sleep.rst
time_clock.rst
wqueue.rst
events.rst
diff --git a/content/docs/latest/_sources/reference/os/sleep.rst.txt
b/content/docs/latest/_sources/reference/os/sleep.rst.txt
new file mode 100644
index 000000000..bfa6ef413
--- /dev/null
+++ b/content/docs/latest/_sources/reference/os/sleep.rst.txt
@@ -0,0 +1,115 @@
+=====
+Sleep
+=====
+
+NuttX provides three different types of sleep interfaces.
+
+Common Sleep Interfaces
+=======================
+
+Scheduled Sleep Interfaces (tick-based)
+---------------------------------------
+
+Suspend the calling thread for a specified amount of time until the time
expires
+or the thread is explicitly woken up through scheduler operations.
+
+.. c:function:: void nxsched_ticksleep(unsigned int ticks)
+
+ Suspends the calling thread from execution for the specified number of
system ticks.
+
+ :param ticks: The number of system ticks to sleep.
+
+.. c:function:: void nxsched_usleep(useconds_t usec)
+
+ Suspends the calling thread from execution for the specified number of
microseconds.
+
+ :param usec: The number of microseconds to sleep.
+
+.. c:function:: void nxsched_msleep(unsigned int msec)
+
+ Suspends the calling thread from execution for the specified number of
milliseconds.
+
+ :param msec: The number of milliseconds to sleep.
+
+.. c:function:: void nxsched_sleep(unsigned int sec)
+
+ Suspends the calling thread from execution for the specified number of
seconds.
+
+ :param sec: The number of seconds to sleep.
+
+.. c:function:: int nxsched_nanosleep(const struct timespec *rqtp, struct
timespec *rmtp)
+
+ Suspends the calling thread from execution for the specified rqtp
argument. This
+ function will return the remaining time via updating rmtp if the sleep is
interrupted
+ by a signal.
+
+ :param rqtp: The amount of time to be suspended from execution.
+ :param rmtp: If the rmtp argument is non-NULL, the timespec structure
referenced
+ by it is updated to contain the amount of time remaining.
+
+ :return: 0 (OK), or negated errno if unsuccessful.
+
+.. c:function:: void nxsched_wakeup(struct tcb_s *tcb)
+
+ This function is used to wake up a thread that is currently in sleeping
state
+ before its timeout expires.
+
+ :param tcb: Pointer to the TCB of the task to be awakened.
+
+Signal-based Sleep Interfaces (timespec-based)
+----------------------------------------------
+
+Suspend the calling thread for a specified amount of time until the
+time expires or a signal is delivered to the calling thread.
+
+ .. note::
+ Implementations are dependent on the signal framework and based on
standard
+ timespec conversion.
+
+.. c:function:: void nxsig_usleep(useconds_t usec)
+
+ Suspends the calling thread from execution for the specified number of
microseconds.
+
+ :param usec: The number of microseconds to sleep.
+
+.. c:function:: void nxsig_sleep(unsigned int sec)
+
+ Suspends the calling thread from execution for the specified number of
seconds.
+
+ :param sec: The number of seconds to sleep.
+
+.. c:function:: int nxsig_nanosleep(const struct timespec *rqtp, struct
timespec *rmtp)
+
+ Suspends the calling thread from execution for the specified rqtp
argument. This
+ function will return the remaining time via updating rmtp if the sleep is
interrupted
+ by a signal.
+
+ :param rqtp: The amount of time to be suspended from execution.
+ :param rmtp: If the rmtp argument is non-NULL, the timespec structure
referenced
+ by it is updated to contain the amount of time remaining.
+
+ :return: 0 (OK), or negated errno if unsuccessful.
+
+Busy Sleep Interfaces
+---------------------
+
+Spin in a loop for the requested duration and never yield the CPU. The delay
accuracy depends on
+``CONFIG_BOARD_LOOPSPERMSEC``.
+
+.. c:function:: void up_mdelay(unsigned int milliseconds)
+
+ Delay inline for the requested number of milliseconds.
+
+ :param milliseconds: The number of milliseconds to delay.
+
+.. c:function:: void up_udelay(useconds_t microseconds)
+
+ Delay inline for the requested number of microseconds.
+
+ :param microseconds: The number of microseconds to delay.
+
+.. c:function:: void up_ndelay(unsigned long nanoseconds)
+
+ Delay inline for the requested number of nanoseconds.
+
+ :param nanoseconds: The number of nanoseconds to delay.
diff --git a/content/docs/latest/genindex.html
b/content/docs/latest/genindex.html
index 768625d31..ce2aaaeca 100644
--- a/content/docs/latest/genindex.html
+++ b/content/docs/latest/genindex.html
@@ -1051,8 +1051,6 @@
</li>
<li><a href="components/nxgraphics/nx.html#c.nx_kbdchin">nx_kbdchin (C
function)</a>
</li>
- </ul></td>
- <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="components/nxgraphics/nx.html#c.nx_kbdin">nx_kbdin (C
function)</a>
</li>
<li><a href="components/nxgraphics/nx.html#c.nx_lower">nx_lower (C
function)</a>
@@ -1063,6 +1061,8 @@
</li>
<li><a href="components/nxgraphics/nx.html#c.nx_move">nx_move (C
function)</a>
</li>
+ </ul></td>
+ <td style="width: 33%; vertical-align: top;"><ul>
<li><a
href="components/nxgraphics/nx.html#c.nx_openwindow">nx_openwindow (C
function)</a>
</li>
<li><a href="components/nxgraphics/nx.html#c.nx_raise">nx_raise (C
function)</a>
@@ -1230,10 +1230,28 @@
<li><a href="reference/os/mutex.html#c.nxmutex_unlock">nxmutex_unlock (C
function)</a>
</li>
<li><a
href="reference/os/nuttx.html#c.nxsched_alarm_expiration">nxsched_alarm_expiration
(C function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsched_msleep">nxsched_msleep (C
function)</a>
+</li>
+ <li><a
href="reference/os/sleep.html#c.nxsched_nanosleep">nxsched_nanosleep (C
function)</a>
</li>
<li><a
href="reference/os/nuttx.html#c.nxsched_process_timer">nxsched_process_timer (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsched_sleep">nxsched_sleep (C
function)</a>
+</li>
+ <li><a
href="reference/os/sleep.html#c.nxsched_ticksleep">nxsched_ticksleep (C
function)</a>
</li>
<li><a
href="reference/os/nuttx.html#c.nxsched_timer_expiration">nxsched_timer_expiration
(C function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsched_usleep">nxsched_usleep (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsched_wakeup">nxsched_wakeup (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsig_nanosleep">nxsig_nanosleep
(C function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsig_sleep">nxsig_sleep (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.nxsig_usleep">nxsig_usleep (C
function)</a>
</li>
<li><a
href="components/nxgraphics/nxtk.html#c.nxtk_bitmaptoolbar">nxtk_bitmaptoolbar
(C function)</a>
</li>
@@ -1985,12 +2003,12 @@
</li>
<li><a href="components/paging.html#c.up_checkmapping">up_checkmapping
(C function)</a>
</li>
- </ul></td>
- <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="reference/os/smp.html#c.up_cpu_index">up_cpu_index (C
function)</a>
</li>
<li><a href="reference/os/smp.html#c.up_cpu_pause">up_cpu_pause (C
function)</a>
</li>
+ </ul></td>
+ <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="reference/os/smp.html#c.up_cpu_resume">up_cpu_resume (C
function)</a>
</li>
<li><a href="reference/os/smp.html#c.up_cpu_start">up_cpu_start (C
function)</a>
@@ -2014,6 +2032,10 @@
<li><a href="reference/os/arch.html#c.up_initialize">up_initialize (C
function)</a>
</li>
<li><a
href="reference/os/arch.html#c.up_interrupt_context">up_interrupt_context (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.up_mdelay">up_mdelay (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.up_ndelay">up_ndelay (C
function)</a>
</li>
<li><a
href="reference/os/arch.html#c.up_prioritize_irq">up_prioritize_irq (C
function)</a>
</li>
@@ -2038,6 +2060,8 @@
<li><a
href="reference/os/time_clock.html#c.up_timer_gettime">up_timer_gettime (C
function)</a>
</li>
<li><a
href="reference/os/time_clock.html#c.up_timer_start">up_timer_start (C
function)</a>
+</li>
+ <li><a href="reference/os/sleep.html#c.up_udelay">up_udelay (C
function)</a>
</li>
<li><a href="reference/os/arch.html#c.up_use_stack">up_use_stack (C
function)</a>
</li>
diff --git a/content/docs/latest/guides/fully_linked_elf.html
b/content/docs/latest/guides/fully_linked_elf.html
index 0c69cb2da..d2d3b8523 100644
--- a/content/docs/latest/guides/fully_linked_elf.html
+++ b/content/docs/latest/guides/fully_linked_elf.html
@@ -477,7 +477,7 @@ NuttX package: <code class="docutils literal
notranslate"><span class="pre">nutt
<div
class="admonition-here-is-an-alternative-minimal-and-possibly-outdated-version
admonition">
<p class="admonition-title">Here is an alternative minimal (and possibly
outdated) version</p>
<div class="sphinx_collapse docutils">
-<input class="sphinx_collapse__input"
id="f24f3842-0ec9-4eef-aa5f-c2b25fb628ee"
name="f24f3842-0ec9-4eef-aa5f-c2b25fb628ee" type="checkbox"><label
class="sphinx_collapse__label" for="f24f3842-0ec9-4eef-aa5f-c2b25fb628ee"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
+<input class="sphinx_collapse__input"
id="438bf9b5-45e2-437b-a938-82cf9d76722b"
name="438bf9b5-45e2-437b-a938-82cf9d76722b" type="checkbox"><label
class="sphinx_collapse__label" for="438bf9b5-45e2-437b-a938-82cf9d76722b"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
<div class="highlight-text notranslate"><div
class="highlight"><pre><span></span>SECTIONS
{
.text 0x00000000 :
diff --git a/content/docs/latest/guides/partially_linked_elf.html
b/content/docs/latest/guides/partially_linked_elf.html
index 9f4f669be..736184193 100644
--- a/content/docs/latest/guides/partially_linked_elf.html
+++ b/content/docs/latest/guides/partially_linked_elf.html
@@ -503,7 +503,7 @@ NuttX package: <code class="docutils literal
notranslate"><span class="pre">nutt
<div
class="admonition-here-is-an-alternative-minimal-and-possibly-outdated-version
admonition">
<p class="admonition-title">Here is an alternative minimal (and possibly
outdated) version</p>
<div class="sphinx_collapse docutils">
-<input class="sphinx_collapse__input"
id="76826b30-2b33-4762-ac6b-44317ffc7265"
name="76826b30-2b33-4762-ac6b-44317ffc7265" type="checkbox"><label
class="sphinx_collapse__label" for="76826b30-2b33-4762-ac6b-44317ffc7265"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
+<input class="sphinx_collapse__input"
id="0713f578-1fb0-4df4-ba8d-b8a9b32c2fc4"
name="0713f578-1fb0-4df4-ba8d-b8a9b32c2fc4" type="checkbox"><label
class="sphinx_collapse__label" for="0713f578-1fb0-4df4-ba8d-b8a9b32c2fc4"><i
class="sphinx_collapse__icon"></i>Show content:</label><div
class="sphinx_collapse__content docutils">
<div class="highlight-text notranslate"><div
class="highlight"><pre><span></span>SECTIONS
{
.text 0x00000000 :
diff --git a/content/docs/latest/index.html b/content/docs/latest/index.html
index 64aed46a9..241a539e2 100644
--- a/content/docs/latest/index.html
+++ b/content/docs/latest/index.html
@@ -187,7 +187,7 @@ standards. Additional standard APIs from Unix and other
common RTOS’s (such as
VxWorks) are adopted for functionality not available under these standards, or
for functionality that is not appropriate for deeply-embedded environments
(such
as fork()).</p>
-<p>Last Updated: 04 December 25 at 00:34</p>
+<p>Last Updated: 05 December 25 at 00:35</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Table of
Contents</span></p>
<ul class="current">
diff --git a/content/docs/latest/objects.inv b/content/docs/latest/objects.inv
index 601e3d2d0..8f9dc08bb 100644
Binary files a/content/docs/latest/objects.inv and
b/content/docs/latest/objects.inv differ
diff --git a/content/docs/latest/reference/os/addrenv.html
b/content/docs/latest/reference/os/addrenv.html
index 6f31c179c..c7676d061 100644
--- a/content/docs/latest/reference/os/addrenv.html
+++ b/content/docs/latest/reference/os/addrenv.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/app_vs_os.html
b/content/docs/latest/reference/os/app_vs_os.html
index be32a007b..705144f1a 100644
--- a/content/docs/latest/reference/os/app_vs_os.html
+++ b/content/docs/latest/reference/os/app_vs_os.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/arch.html
b/content/docs/latest/reference/os/arch.html
index 1e555cee2..6d4eb4ac5 100644
--- a/content/docs/latest/reference/os/arch.html
+++ b/content/docs/latest/reference/os/arch.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/board.html
b/content/docs/latest/reference/os/board.html
index 7cf7b26c9..663651b6c 100644
--- a/content/docs/latest/reference/os/board.html
+++ b/content/docs/latest/reference/os/board.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/conventions.html
b/content/docs/latest/reference/os/conventions.html
index bf94efe1e..9e2155d97 100644
--- a/content/docs/latest/reference/os/conventions.html
+++ b/content/docs/latest/reference/os/conventions.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/events.html
b/content/docs/latest/reference/os/events.html
index 31bce08ce..8b72a3971 100644
--- a/content/docs/latest/reference/os/events.html
+++ b/content/docs/latest/reference/os/events.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3 current"><a class="current reference internal"
href="#">Events</a><ul>
diff --git a/content/docs/latest/reference/os/index.html
b/content/docs/latest/reference/os/index.html
index f4c343f20..83f446008 100644
--- a/content/docs/latest/reference/os/index.html
+++ b/content/docs/latest/reference/os/index.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
@@ -259,6 +260,15 @@ in other header files.</p>
<li class="toctree-l1"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l1"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l1"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="sleep.html">Sleep</a><ul>
+<li class="toctree-l2"><a class="reference internal"
href="sleep.html#common-sleep-interfaces">Common Sleep Interfaces</a><ul>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html#scheduled-sleep-interfaces-tick-based">Scheduled Sleep
Interfaces (tick-based)</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html#signal-based-sleep-interfaces-timespec-based">Signal-based
Sleep Interfaces (timespec-based)</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html#busy-sleep-interfaces">Busy Sleep Interfaces</a></li>
+</ul>
+</li>
+</ul>
+</li>
<li class="toctree-l1"><a class="reference internal"
href="time_clock.html">System Time and Clock</a><ul>
<li class="toctree-l2"><a class="reference internal"
href="time_clock.html#basic-system-timer">Basic System Timer</a></li>
<li class="toctree-l2"><a class="reference internal"
href="time_clock.html#hardware">Hardware</a></li>
diff --git a/content/docs/latest/reference/os/iob.html
b/content/docs/latest/reference/os/iob.html
index 46df85184..89a270118 100644
--- a/content/docs/latest/reference/os/iob.html
+++ b/content/docs/latest/reference/os/iob.html
@@ -157,6 +157,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/led.html
b/content/docs/latest/reference/os/led.html
index 63eb8476c..4dde81538 100644
--- a/content/docs/latest/reference/os/led.html
+++ b/content/docs/latest/reference/os/led.html
@@ -156,6 +156,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/mutex.html
b/content/docs/latest/reference/os/mutex.html
index 45249de69..1a281984a 100644
--- a/content/docs/latest/reference/os/mutex.html
+++ b/content/docs/latest/reference/os/mutex.html
@@ -159,6 +159,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/newreno.html
b/content/docs/latest/reference/os/newreno.html
index bf8071ea3..4505d2c0a 100644
--- a/content/docs/latest/reference/os/newreno.html
+++ b/content/docs/latest/reference/os/newreno.html
@@ -161,6 +161,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/notifier.html
b/content/docs/latest/reference/os/notifier.html
index 108e25d16..a130362c3 100644
--- a/content/docs/latest/reference/os/notifier.html
+++ b/content/docs/latest/reference/os/notifier.html
@@ -163,6 +163,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/nuttx.html
b/content/docs/latest/reference/os/nuttx.html
index 61ac5e43a..4e43d5042 100644
--- a/content/docs/latest/reference/os/nuttx.html
+++ b/content/docs/latest/reference/os/nuttx.html
@@ -154,6 +154,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/paging.html
b/content/docs/latest/reference/os/paging.html
index 6c1224cac..6e05855f0 100644
--- a/content/docs/latest/reference/os/paging.html
+++ b/content/docs/latest/reference/os/paging.html
@@ -151,6 +151,7 @@
<li class="toctree-l3 current"><a class="current reference internal"
href="#">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/shm.html
b/content/docs/latest/reference/os/shm.html
index 593cb8f94..7a5778152 100644
--- a/content/docs/latest/reference/os/shm.html
+++ b/content/docs/latest/reference/os/shm.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3 current"><a class="current reference internal"
href="#">Shared Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
diff --git a/content/docs/latest/reference/os/sleep.html
b/content/docs/latest/reference/os/sleep.html
new file mode 100644
index 000000000..78f2a1862
--- /dev/null
+++ b/content/docs/latest/reference/os/sleep.html
@@ -0,0 +1,434 @@
+<!--
+ Documentation/_templates/layout.html
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership. The
+ ASF licenses this file to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance with the
+ License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations
+ under the License.
+-->
+
+
+
+<!DOCTYPE html>
+<html class="writer-html5" lang="en">
+<head>
+ <meta charset="utf-8" /><meta name="generator" content="Docutils 0.19:
https://docutils.sourceforge.io/" />
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Sleep — NuttX latest documentation</title>
+ <link rel="stylesheet" type="text/css" href="../../_static/pygments.css"
/>
+ <link rel="stylesheet" type="text/css"
href="../../_static/css/theme.css" />
+ <link rel="stylesheet" type="text/css"
href="../../_static/copybutton.css" />
+ <link rel="stylesheet" type="text/css"
href="../../_static/sphinx_collapse.css" />
+ <link rel="stylesheet" type="text/css"
href="../../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
+ <link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
+
+
+ <link rel="shortcut icon" href="../../_static/favicon.ico"/>
+ <script src="../../_static/jquery.js"></script>
+ <script
src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
+ <script data-url_root="../../" id="documentation_options"
src="../../_static/documentation_options.js"></script>
+ <script src="../../_static/doctools.js"></script>
+ <script src="../../_static/sphinx_highlight.js"></script>
+ <script src="../../_static/clipboard.min.js"></script>
+ <script src="../../_static/copybutton.js"></script>
+ <script src="../../_static/design-tabs.js"></script>
+ <script src="../../_static/js/theme.js"></script>
+ <link rel="index" title="Index" href="../../genindex.html" />
+ <link rel="search" title="Search" href="../../search.html" />
+ <link rel="next" title="System Time and Clock" href="time_clock.html" />
+ <link rel="prev" title="Symmetric Multiprocessing (SMP) Application"
href="smp.html" />
+</head>
+
+<body class="wy-body-for-nav">
+ <div class="wy-grid-for-nav">
+ <nav data-toggle="wy-nav-shift" class="wy-nav-side">
+ <div class="wy-side-scroll">
+ <div class="wy-side-nav-search" >
+
+ <a href="../../index.html" class="icon icon-home"> NuttX
+
+
+
+ </a>
+
+ <!-- this version selector is quite ugly, should be probably replaced by
something
+ more modern -->
+
+ <div class="version-selector">
+ <select onchange="javascript:location.href = this.value;">
+
+ <option value="../../../latest" selected="selected">latest</option>
+
+ <option value="../../../10.0.0" >10.0.0</option>
+
+ <option value="../../../10.0.1" >10.0.1</option>
+
+ <option value="../../../10.1.0" >10.1.0</option>
+
+ <option value="../../../10.2.0" >10.2.0</option>
+
+ <option value="../../../10.3.0" >10.3.0</option>
+
+ <option value="../../../11.0.0" >11.0.0</option>
+
+ <option value="../../../12.0.0" >12.0.0</option>
+
+ <option value="../../../12.1.0" >12.1.0</option>
+
+ <option value="../../../12.2.0" >12.2.0</option>
+
+ <option value="../../../12.2.1" >12.2.1</option>
+
+ <option value="../../../12.3.0" >12.3.0</option>
+
+ <option value="../../../12.4.0" >12.4.0</option>
+
+ <option value="../../../12.5.0" >12.5.0</option>
+
+ <option value="../../../12.5.1" >12.5.1</option>
+
+ <option value="../../../12.6.0" >12.6.0</option>
+
+ <option value="../../../12.7.0" >12.7.0</option>
+
+ <option value="../../../12.8.0" >12.8.0</option>
+
+ <option value="../../../12.9.0" >12.9.0</option>
+
+ <option value="../../../12.10.0" >12.10.0</option>
+
+ <option value="../../../12.11.0" >12.11.0</option>
+
+ </select>
+ </div>
+
+
+<div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../search.html"
method="get">
+ <input type="text" name="q" placeholder="Search docs" aria-label="Search
docs" />
+ <input type="hidden" name="check_keywords" value="yes" />
+ <input type="hidden" name="area" value="default" />
+ </form>
+</div>
+
+ </div><div class="wy-menu wy-menu-vertical" data-spy="affix"
role="navigation" aria-label="Navigation menu">
+ <p class="caption" role="heading"><span
class="caption-text">Table of Contents</span></p>
+<ul class="current">
+<li class="toctree-l1"><a class="reference internal"
href="../../index.html">Home</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../introduction/index.html">Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../quickstart/index.html">Getting Started</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../contributing/index.html">Contributing</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../introduction/inviolables.html">The Inviolable Principles of
NuttX</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../platforms/index.html">Supported Platforms</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../components/index.html">OS Components</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../applications/index.html">Applications</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../implementation/index.html">Implementation Details</a></li>
+<li class="toctree-l1 current"><a class="reference internal"
href="../index.html">API Reference</a><ul class="current">
+<li class="toctree-l2"><a class="reference internal"
href="../user/index.html">Userspace API</a></li>
+<li class="toctree-l2 current"><a class="reference internal"
href="index.html">Architecture APIs</a><ul class="current">
+<li class="toctree-l3"><a class="reference internal"
href="addrenv.html">Address Environments</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="app_vs_os.html">Application OS vs. Internal OS Interfaces</a></li>
+<li class="toctree-l3"><a class="reference internal" href="arch.html">APIs
Exported by Architecture-Specific Logic to NuttX</a></li>
+<li class="toctree-l3"><a class="reference internal" href="board.html">APIs
Exported by Board-Specific Logic to NuttX</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="conventions.html">Naming and Header File Conventions</a></li>
+<li class="toctree-l3"><a class="reference internal" href="iob.html">I/O
Buffer Management</a></li>
+<li class="toctree-l3"><a class="reference internal" href="led.html">LED
Support</a></li>
+<li class="toctree-l3"><a class="reference internal" href="mutex.html">Mutual
Exclusion lock</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="newreno.html">Congestion Control NewReno</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="notifier.html">Notifier Chain</a></li>
+<li class="toctree-l3"><a class="reference internal" href="nuttx.html">APIs
Exported by NuttX to Architecture-Specific Logic</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
+<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
+<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3 current"><a class="current reference internal"
href="#">Sleep</a><ul>
+<li class="toctree-l4"><a class="reference internal"
href="#common-sleep-interfaces">Common Sleep Interfaces</a><ul>
+<li class="toctree-l5"><a class="reference internal"
href="#scheduled-sleep-interfaces-tick-based">Scheduled Sleep Interfaces
(tick-based)</a></li>
+<li class="toctree-l5"><a class="reference internal"
href="#signal-based-sleep-interfaces-timespec-based">Signal-based Sleep
Interfaces (timespec-based)</a></li>
+<li class="toctree-l5"><a class="reference internal"
href="#busy-sleep-interfaces">Busy Sleep Interfaces</a></li>
+</ul>
+</li>
+</ul>
+</li>
+<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
+<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
+</ul>
+</li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal"
href="../../faq/index.html">FAQ</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../debugging/index.html">Debugging</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../guides/index.html">Guides</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../standards/index.html">Standards</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../glossary.html">Glossary</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../logos/index.html">NuttX Logos</a></li>
+<li class="toctree-l1"><a class="reference internal"
href="../../_tags/tagsindex.html">Tags</a></li>
+</ul>
+
+ </div>
+ </div>
+ </nav>
+
+ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav
class="wy-nav-top" aria-label="Mobile navigation menu" >
+ <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+ <a href="../../index.html">NuttX</a>
+ </nav>
+
+ <div class="wy-nav-content">
+ <div class="rst-content">
+ <div role="navigation" aria-label="Page navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../index.html" class="icon icon-home"
aria-label="Home"></a></li>
+ <li class="breadcrumb-item"><a href="../index.html">API
Reference</a></li>
+ <li class="breadcrumb-item"><a href="index.html">Architecture
APIs</a></li>
+ <li class="breadcrumb-item active">Sleep</li>
+ <li class="wy-breadcrumbs-aside">
+ <a
href="https://github.com/apache/nuttx/blob/master/Documentation/reference/os/sleep.rst"
class="fa fa-github"> Edit on GitHub</a>
+ </li>
+ </ul>
+ <hr/>
+</div>
+ <div role="main" class="document" itemscope="itemscope"
itemtype="http://schema.org/Article">
+ <div itemprop="articleBody">
+
+ <section id="sleep">
+<h1>Sleep<a class="headerlink" href="#sleep" title="Permalink to this
heading"></a></h1>
+<p>NuttX provides three different types of sleep interfaces.</p>
+<section id="common-sleep-interfaces">
+<h2>Common Sleep Interfaces<a class="headerlink"
href="#common-sleep-interfaces" title="Permalink to this heading"></a></h2>
+<section id="scheduled-sleep-interfaces-tick-based">
+<h3>Scheduled Sleep Interfaces (tick-based)<a class="headerlink"
href="#scheduled-sleep-interfaces-tick-based" title="Permalink to this
heading"></a></h3>
+<p>Suspend the calling thread for a specified amount of time until the time
expires
+or the thread is explicitly woken up through scheduler operations.</p>
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsched_ticksleep">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsched_ticksleep</span></span></span><span
class="sig-paren">(</span><span class="kt"><span
class="pre">unsigned</span></span><span class="w"> </span><span
class="kt"><span class="pre">int</span></span><span class="w"> </span><span
class="n"><span class="pre">ticks</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.nxsche [...]
+<dd><p>Suspends the calling thread from execution for the specified number of
system ticks.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>ticks</strong> – The number of system ticks to sleep.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsched_usleep">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsched_usleep</span></span></span><span
class="sig-paren">(</span><span class="n"><span
class="pre">useconds_t</span></span><span class="w"> </span><span
class="n"><span class="pre">usec</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.nxsched_usleep"
title="Permalink to this definition"></a><br /></dt>
+<dd><p>Suspends the calling thread from execution for the specified number of
microseconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>usec</strong> – The number of microseconds to sleep.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsched_msleep">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsched_msleep</span></span></span><span
class="sig-paren">(</span><span class="kt"><span
class="pre">unsigned</span></span><span class="w"> </span><span
class="kt"><span class="pre">int</span></span><span class="w"> </span><span
class="n"><span class="pre">msec</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.nxsched_ms [...]
+<dd><p>Suspends the calling thread from execution for the specified number of
milliseconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>msec</strong> – The number of milliseconds to sleep.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsched_sleep">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsched_sleep</span></span></span><span
class="sig-paren">(</span><span class="kt"><span
class="pre">unsigned</span></span><span class="w"> </span><span
class="kt"><span class="pre">int</span></span><span class="w"> </span><span
class="n"><span class="pre">sec</span></span><span class="sig-paren">)</span><a
class="headerlink" href="#c.nxsched_slee [...]
+<dd><p>Suspends the calling thread from execution for the specified number of
seconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>sec</strong> – The number of seconds to sleep.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsched_nanosleep">
+<span class="kt"><span class="pre">int</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsched_nanosleep</span></span></span><span
class="sig-paren">(</span><span class="k"><span
class="pre">const</span></span><span class="w"> </span><span class="k"><span
class="pre">struct</span></span><span class="w"> </span><a class="reference
internal" href="../user/structures.html#c.timespec" title="timespec"><span
class="n"><span class="pre">ti [...]
+<dd><p>Suspends the calling thread from execution for the specified rqtp
argument. This
+function will return the remaining time via updating rmtp if the sleep is
interrupted
+by a signal.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>rqtp</strong> – The amount of time to be suspended from
execution.</p></li>
+<li><p><strong>rmtp</strong> – If the rmtp argument is non-NULL, the timespec
structure referenced
+by it is updated to contain the amount of time remaining.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>0 (OK), or negated errno if unsuccessful.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsched_wakeup">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsched_wakeup</span></span></span><span
class="sig-paren">(</span><span class="k"><span
class="pre">struct</span></span><span class="w"> </span><a class="reference
internal" href="../user/structures.html#c.tcb_s" title="tcb_s"><span
class="n"><span class="pre">tcb_s</span></span></a><span class="w">
</span><span class="p"><span class="pre">*</spa [...]
+<dd><p>This function is used to wake up a thread that is currently in sleeping
state
+before its timeout expires.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>tcb</strong> – Pointer to the TCB of the task to be
awakened.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+</section>
+<section id="signal-based-sleep-interfaces-timespec-based">
+<h3>Signal-based Sleep Interfaces (timespec-based)<a class="headerlink"
href="#signal-based-sleep-interfaces-timespec-based" title="Permalink to this
heading"></a></h3>
+<p>Suspend the calling thread for a specified amount of time until the
+time expires or a signal is delivered to the calling thread.</p>
+<blockquote>
+<div><div class="admonition note">
+<p class="admonition-title">Note</p>
+<p>Implementations are dependent on the signal framework and based on standard
+timespec conversion.</p>
+</div>
+</div></blockquote>
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsig_usleep">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsig_usleep</span></span></span><span
class="sig-paren">(</span><span class="n"><span
class="pre">useconds_t</span></span><span class="w"> </span><span
class="n"><span class="pre">usec</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.nxsig_usleep"
title="Permalink to this definition"></a><br /></dt>
+<dd><p>Suspends the calling thread from execution for the specified number of
microseconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>usec</strong> – The number of microseconds to sleep.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsig_sleep">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsig_sleep</span></span></span><span
class="sig-paren">(</span><span class="kt"><span
class="pre">unsigned</span></span><span class="w"> </span><span
class="kt"><span class="pre">int</span></span><span class="w"> </span><span
class="n"><span class="pre">sec</span></span><span class="sig-paren">)</span><a
class="headerlink" href="#c.nxsig_sleep" t [...]
+<dd><p>Suspends the calling thread from execution for the specified number of
seconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>sec</strong> – The number of seconds to sleep.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.nxsig_nanosleep">
+<span class="kt"><span class="pre">int</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">nxsig_nanosleep</span></span></span><span
class="sig-paren">(</span><span class="k"><span
class="pre">const</span></span><span class="w"> </span><span class="k"><span
class="pre">struct</span></span><span class="w"> </span><a class="reference
internal" href="../user/structures.html#c.timespec" title="timespec"><span
class="n"><span class="pre">time [...]
+<dd><p>Suspends the calling thread from execution for the specified rqtp
argument. This
+function will return the remaining time via updating rmtp if the sleep is
interrupted
+by a signal.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>rqtp</strong> – The amount of time to be suspended from
execution.</p></li>
+<li><p><strong>rmtp</strong> – If the rmtp argument is non-NULL, the timespec
structure referenced
+by it is updated to contain the amount of time remaining.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>0 (OK), or negated errno if unsuccessful.</p>
+</dd>
+</dl>
+</dd></dl>
+
+</section>
+<section id="busy-sleep-interfaces">
+<h3>Busy Sleep Interfaces<a class="headerlink" href="#busy-sleep-interfaces"
title="Permalink to this heading"></a></h3>
+<p>Spin in a loop for the requested duration and never yield the CPU. The
delay accuracy depends on
+<code class="docutils literal notranslate"><span
class="pre">CONFIG_BOARD_LOOPSPERMSEC</span></code>.</p>
+<dl class="c function">
+<dt class="sig sig-object c" id="c.up_mdelay">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">up_mdelay</span></span></span><span class="sig-paren">(</span><span
class="kt"><span class="pre">unsigned</span></span><span class="w">
</span><span class="kt"><span class="pre">int</span></span><span class="w">
</span><span class="n"><span class="pre">milliseconds</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.up_mdel [...]
+<dd><p>Delay inline for the requested number of milliseconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>milliseconds</strong> – The number of milliseconds to
delay.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.up_udelay">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">up_udelay</span></span></span><span class="sig-paren">(</span><span
class="n"><span class="pre">useconds_t</span></span><span class="w">
</span><span class="n"><span class="pre">microseconds</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.up_udelay"
title="Permalink to this definition"></a><br /></dt>
+<dd><p>Delay inline for the requested number of microseconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>microseconds</strong> – The number of microseconds to
delay.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="c function">
+<dt class="sig sig-object c" id="c.up_ndelay">
+<span class="kt"><span class="pre">void</span></span><span class="w">
</span><span class="sig-name descname"><span class="n"><span
class="pre">up_ndelay</span></span></span><span class="sig-paren">(</span><span
class="kt"><span class="pre">unsigned</span></span><span class="w">
</span><span class="kt"><span class="pre">long</span></span><span class="w">
</span><span class="n"><span class="pre">nanoseconds</span></span><span
class="sig-paren">)</span><a class="headerlink" href="#c.up_ndel [...]
+<dd><p>Delay inline for the requested number of nanoseconds.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>nanoseconds</strong> – The number of nanoseconds to
delay.</p></li>
+</ul>
+</dd>
+</dl>
+</dd></dl>
+
+</section>
+</section>
+</section>
+
+
+ </div>
+ </div>
+ <footer><div class="rst-footer-buttons" role="navigation"
aria-label="Footer">
+ <a href="smp.html" class="btn btn-neutral float-left" title="Symmetric
Multiprocessing (SMP) Application" accesskey="p" rel="prev"><span class="fa
fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
+ <a href="time_clock.html" class="btn btn-neutral float-right"
title="System Time and Clock" accesskey="n" rel="next">Next <span class="fa
fa-arrow-circle-right" aria-hidden="true"></span></a>
+ </div>
+
+ <hr/>
+
+ <div role="contentinfo">
+ <p>© Copyright 2023, The Apache Software Foundation.</p>
+ </div>
+
+
+
+</footer>
+ </div>
+ </div>
+ </section>
+ </div>
+ <script>
+ jQuery(function () {
+ SphinxRtdTheme.Navigation.enable(true);
+ });
+ </script>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/latest/reference/os/smp.html
b/content/docs/latest/reference/os/smp.html
index cd819ee78..ba324d276 100644
--- a/content/docs/latest/reference/os/smp.html
+++ b/content/docs/latest/reference/os/smp.html
@@ -46,7 +46,7 @@
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
- <link rel="next" title="System Time and Clock" href="time_clock.html" />
+ <link rel="next" title="Sleep" href="sleep.html" />
<link rel="prev" title="Shared Memory" href="shm.html" />
</head>
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3 current"><a class="current reference internal"
href="#">Symmetric Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3"><a class="reference internal" href="wqueue.html">Work
Queues</a></li>
<li class="toctree-l3"><a class="reference internal"
href="events.html">Events</a></li>
@@ -327,7 +328,7 @@ the index of the currently executing CPU.</p></li>
</div>
<footer><div class="rst-footer-buttons" role="navigation"
aria-label="Footer">
<a href="shm.html" class="btn btn-neutral float-left" title="Shared
Memory" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"
aria-hidden="true"></span> Previous</a>
- <a href="time_clock.html" class="btn btn-neutral float-right"
title="System Time and Clock" accesskey="n" rel="next">Next <span class="fa
fa-arrow-circle-right" aria-hidden="true"></span></a>
+ <a href="sleep.html" class="btn btn-neutral float-right" title="Sleep"
accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"
aria-hidden="true"></span></a>
</div>
<hr/>
diff --git a/content/docs/latest/reference/os/time_clock.html
b/content/docs/latest/reference/os/time_clock.html
index 5d54cde73..b9c18dad1 100644
--- a/content/docs/latest/reference/os/time_clock.html
+++ b/content/docs/latest/reference/os/time_clock.html
@@ -47,7 +47,7 @@
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Work Queues" href="wqueue.html" />
- <link rel="prev" title="Symmetric Multiprocessing (SMP) Application"
href="smp.html" />
+ <link rel="prev" title="Sleep" href="sleep.html" />
</head>
<body class="wy-body-for-nav">
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3 current"><a class="current reference internal"
href="#">System Time and Clock</a><ul>
<li class="toctree-l4"><a class="reference internal"
href="#basic-system-timer">Basic System Timer</a></li>
<li class="toctree-l4"><a class="reference internal"
href="#hardware">Hardware</a></li>
@@ -926,7 +927,7 @@ definition.</p>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation"
aria-label="Footer">
- <a href="smp.html" class="btn btn-neutral float-left" title="Symmetric
Multiprocessing (SMP) Application" accesskey="p" rel="prev"><span class="fa
fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
+ <a href="sleep.html" class="btn btn-neutral float-left" title="Sleep"
accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"
aria-hidden="true"></span> Previous</a>
<a href="wqueue.html" class="btn btn-neutral float-right" title="Work
Queues" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"
aria-hidden="true"></span></a>
</div>
diff --git a/content/docs/latest/reference/os/wqueue.html
b/content/docs/latest/reference/os/wqueue.html
index 04510ee2d..52d6b80a0 100644
--- a/content/docs/latest/reference/os/wqueue.html
+++ b/content/docs/latest/reference/os/wqueue.html
@@ -151,6 +151,7 @@
<li class="toctree-l3"><a class="reference internal"
href="paging.html">On-Demand Paging</a></li>
<li class="toctree-l3"><a class="reference internal" href="shm.html">Shared
Memory</a></li>
<li class="toctree-l3"><a class="reference internal" href="smp.html">Symmetric
Multiprocessing (SMP) Application</a></li>
+<li class="toctree-l3"><a class="reference internal"
href="sleep.html">Sleep</a></li>
<li class="toctree-l3"><a class="reference internal"
href="time_clock.html">System Time and Clock</a></li>
<li class="toctree-l3 current"><a class="current reference internal"
href="#">Work Queues</a><ul>
<li class="toctree-l4"><a class="reference internal"
href="#classes-of-work-queues">Classes of Work Queues</a><ul>
diff --git a/content/docs/latest/searchindex.js
b/content/docs/latest/searchindex.js
index d3f1a0f2d..93f8cba9f 100644
--- a/content/docs/latest/searchindex.js
+++ b/content/docs/latest/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["_tags/arch-arm64", "_tags/arch-avr",
"_tags/arch-example", "_tags/arch-renesas", "_tags/arch-risc-v",
"_tags/arch-riscv", "_tags/arch-sim", "_tags/chip-a527", "_tags/chip-a64",
"_tags/chip-at32uc3", "_tags/chip-at90usb", "_tags/chip-atmega",
"_tags/chip-atmega128", "_tags/chip-atmega1284p", "_tags/chip-atmega2560",
"_tags/chip-bcm2711", "_tags/chip-esp32", "_tags/chip-esp32a1s",
"_tags/chip-esp32picod4", "_tags/chip-esp32s2", "_tags/chip-esp32s3", "_tags/ch
[...]
\ No newline at end of file
+Search.setIndex({"docnames": ["_tags/arch-arm64", "_tags/arch-avr",
"_tags/arch-example", "_tags/arch-renesas", "_tags/arch-risc-v",
"_tags/arch-riscv", "_tags/arch-sim", "_tags/chip-a527", "_tags/chip-a64",
"_tags/chip-at32uc3", "_tags/chip-at90usb", "_tags/chip-atmega",
"_tags/chip-atmega128", "_tags/chip-atmega1284p", "_tags/chip-atmega2560",
"_tags/chip-bcm2711", "_tags/chip-esp32", "_tags/chip-esp32a1s",
"_tags/chip-esp32picod4", "_tags/chip-esp32s2", "_tags/chip-esp32s3", "_tags/ch
[...]
\ No newline at end of file
diff --git a/content/feed.xml b/content/feed.xml
index f6381f5e6..1f76c5e37 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -5,8 +5,8 @@
<description></description>
<link>/</link>
<atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
- <pubDate>Thu, 04 Dec 2025 00:36:36 +0000</pubDate>
- <lastBuildDate>Thu, 04 Dec 2025 00:36:36 +0000</lastBuildDate>
+ <pubDate>Fri, 05 Dec 2025 00:38:25 +0000</pubDate>
+ <lastBuildDate>Fri, 05 Dec 2025 00:38:25 +0000</lastBuildDate>
<generator>Jekyll v4.4.1</generator>
<item>