You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2017/03/31 17:10:41 UTC
[09/20] incubator-mynewt-site git commit: RedBear Nano2 blinky
tutorial, WiFi tutorial with MKR1000, cputime module documentation,
and several updates to OS guide by cwanda. Vanity import domain additions by
spoonofpower.
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/callout/callout/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/callout/callout/index.html b/latest/os/core_os/callout/callout/index.html
index 5bdc3d8..6056e59 100644
--- a/latest/os/core_os/callout/callout/index.html
+++ b/latest/os/core_os/callout/callout/index.html
@@ -278,7 +278,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/callout/os_callout_func_init/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/callout/os_callout_func_init/index.html b/latest/os/core_os/callout/os_callout_func_init/index.html
index 85ddcd3..91ece56 100644
--- a/latest/os/core_os/callout/os_callout_func_init/index.html
+++ b/latest/os/core_os/callout/os_callout_func_init/index.html
@@ -278,7 +278,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/callout/os_callout_init/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/callout/os_callout_init/index.html b/latest/os/core_os/callout/os_callout_init/index.html
index 4848c8f..46775b9 100644
--- a/latest/os/core_os/callout/os_callout_init/index.html
+++ b/latest/os/core_os/callout/os_callout_init/index.html
@@ -278,7 +278,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/callout/os_callout_queued/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/callout/os_callout_queued/index.html b/latest/os/core_os/callout/os_callout_queued/index.html
index c1e75e6..f91810a 100644
--- a/latest/os/core_os/callout/os_callout_queued/index.html
+++ b/latest/os/core_os/callout/os_callout_queued/index.html
@@ -278,7 +278,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/callout/os_callout_reset/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/callout/os_callout_reset/index.html b/latest/os/core_os/callout/os_callout_reset/index.html
index 1241cd3..85b0db5 100644
--- a/latest/os/core_os/callout/os_callout_reset/index.html
+++ b/latest/os/core_os/callout/os_callout_reset/index.html
@@ -278,7 +278,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/callout/os_callout_stop/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/callout/os_callout_stop/index.html b/latest/os/core_os/callout/os_callout_stop/index.html
index 36c5ed5..db2b01d 100644
--- a/latest/os/core_os/callout/os_callout_stop/index.html
+++ b/latest/os/core_os/callout/os_callout_stop/index.html
@@ -278,7 +278,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/context_switch/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/context_switch/index.html b/latest/os/core_os/context_switch/context_switch/index.html
index b3c0e17..77efa79 100644
--- a/latest/os/core_os/context_switch/context_switch/index.html
+++ b/latest/os/core_os/context_switch/context_switch/index.html
@@ -297,7 +297,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_arch_ctx_sw/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_arch_ctx_sw/index.html b/latest/os/core_os/context_switch/os_arch_ctx_sw/index.html
index c62d3b6..c1f845c 100644
--- a/latest/os/core_os/context_switch/os_arch_ctx_sw/index.html
+++ b/latest/os/core_os/context_switch/os_arch_ctx_sw/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched/index.html b/latest/os/core_os/context_switch/os_sched/index.html
index 024fb24..32ca55c 100644
--- a/latest/os/core_os/context_switch/os_sched/index.html
+++ b/latest/os/core_os/context_switch/os_sched/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_ctx_sw_hook/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_ctx_sw_hook/index.html b/latest/os/core_os/context_switch/os_sched_ctx_sw_hook/index.html
index 310bc85..1f8cbee 100644
--- a/latest/os/core_os/context_switch/os_sched_ctx_sw_hook/index.html
+++ b/latest/os/core_os/context_switch/os_sched_ctx_sw_hook/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_get_current_task/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_get_current_task/index.html b/latest/os/core_os/context_switch/os_sched_get_current_task/index.html
index 31cc446..644f6da 100644
--- a/latest/os/core_os/context_switch/os_sched_get_current_task/index.html
+++ b/latest/os/core_os/context_switch/os_sched_get_current_task/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_insert/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_insert/index.html b/latest/os/core_os/context_switch/os_sched_insert/index.html
index a87e002..fbc3b87 100644
--- a/latest/os/core_os/context_switch/os_sched_insert/index.html
+++ b/latest/os/core_os/context_switch/os_sched_insert/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_next_task/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_next_task/index.html b/latest/os/core_os/context_switch/os_sched_next_task/index.html
index 232bff0..09b9164 100644
--- a/latest/os/core_os/context_switch/os_sched_next_task/index.html
+++ b/latest/os/core_os/context_switch/os_sched_next_task/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_os_timer_exp/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_os_timer_exp/index.html b/latest/os/core_os/context_switch/os_sched_os_timer_exp/index.html
index 940b423..5dbaeb2 100644
--- a/latest/os/core_os/context_switch/os_sched_os_timer_exp/index.html
+++ b/latest/os/core_os/context_switch/os_sched_os_timer_exp/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_remove/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_remove/index.html b/latest/os/core_os/context_switch/os_sched_remove/index.html
index 6746063..935cc11 100644
--- a/latest/os/core_os/context_switch/os_sched_remove/index.html
+++ b/latest/os/core_os/context_switch/os_sched_remove/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_resort/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_resort/index.html b/latest/os/core_os/context_switch/os_sched_resort/index.html
index 0247a7e..066b764 100644
--- a/latest/os/core_os/context_switch/os_sched_resort/index.html
+++ b/latest/os/core_os/context_switch/os_sched_resort/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_set_current_task/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_set_current_task/index.html b/latest/os/core_os/context_switch/os_sched_set_current_task/index.html
index e146136..600909e 100644
--- a/latest/os/core_os/context_switch/os_sched_set_current_task/index.html
+++ b/latest/os/core_os/context_switch/os_sched_set_current_task/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_sleep/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_sleep/index.html b/latest/os/core_os/context_switch/os_sched_sleep/index.html
index 68257d5..f25e21e 100644
--- a/latest/os/core_os/context_switch/os_sched_sleep/index.html
+++ b/latest/os/core_os/context_switch/os_sched_sleep/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/context_switch/os_sched_wakeup/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/context_switch/os_sched_wakeup/index.html b/latest/os/core_os/context_switch/os_sched_wakeup/index.html
index da28616..b0d6da6 100644
--- a/latest/os/core_os/context_switch/os_sched_wakeup/index.html
+++ b/latest/os/core_os/context_switch/os_sched_wakeup/index.html
@@ -397,7 +397,18 @@
- <li ><a href="../../time/os_time/">Time</a>
+ <li ><a href="../../cputime/os_cputime/">CPU Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
</li>
@@ -848,8 +859,8 @@
</li>
<li class="pull-right">
- <a href=../../time/os_time/>
- Next: Time
+ <a href=../../cputime/os_cputime/>
+ Next: CPU Time
<span class="fa fa-arrow-right"></span>
</a>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/cputime/os_cputime/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/cputime/os_cputime/index.html b/latest/os/core_os/cputime/os_cputime/index.html
new file mode 100644
index 0000000..0e28665
--- /dev/null
+++ b/latest/os/core_os/cputime/os_cputime/index.html
@@ -0,0 +1,838 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <!-- This is broken by doc revisioning.
+ <link rel="canonical" href="http://mynewt.apache.org/os/core_os/cputime/os_cputime/"> -->
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>toc - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+ <link href="../../../../extra.css" rel="stylesheet">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'auto');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="toc">
+
+
+ <div class="container">
+ <div class="row v2-main-banner">
+ <a class="logo-cell" href="/">
+ <img class="logo" src="/img/logo.png">
+ </a>
+ <div class="tagline-cell">
+ <h4 class="tagline">An OS to build, deploy and securely manage billions of devices</h4>
+ </div>
+ <div class="news-cell">
+ <div class="well">
+ <h4>Latest News:</h4> <a href="/download">Apache Mynewt 1.0.0</a> released (March 22, 2017)
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse affix-top" data-spy="affix" data-offset-top="150" role="navigation">
+ <div class="container">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li
+ class=""
+>
+ <a href="/"><i class="fa fa-home" style="font-size: larger;"></i></a>
+ </li>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/talks/">Talks</a>
+ </li>
+ <li
+ class="active"
+>
+ <a href="/latest/os/introduction">Documentation</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/download/">Download</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/community/">Community</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</nav>
+
+
+
+ <div class="container">
+
+ <div class="row">
+ <div class="col-md-3 v2-sidebar sidebar-container"><div id="docSidebar" class="hidden-print" role="complementary">
+ <div class="top">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div class="form-group">
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="toc-nav">
+ <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+
+ <option
+ value="/develop/os/introduction"
+ selected="selected"
+ >
+ Version: develop (latest)
+ </option>
+
+ <option
+ value="/v0_9_0/os/introduction"
+
+ >
+ Version: 0.9.0
+ </option>
+
+</select>
+</li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../mynewt_os/">OS Core</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../os_started/
+">Functions</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li class="active"><a href="./">CPU Time</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li><a href="
+ ../os_cputime_delay_nsecs/
+">Functions</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../task/task/">Tasks</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../heap/heap/">Heap</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../mbuf/mbuf/
+
+">Memory Buffers</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../sanity/sanity/">Sanity</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../callout/callout/">Callouts</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/console/console/">Console</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/split/split/">Split Images</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/fs/fs/fs/
+
+">File System</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/drivers/driver/">Drivers</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/devmgmt/newtmgr/">Device Management with Newt Manager</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../../modules/baselibc/">Baselibc library</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/json/json/">JSON</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/fcb/fcb/">Flash Circular Buffer</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/sysinitconfig/sysinitconfig/">System Configuration And Initialization</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../../network/ble/ble_intro/
+">BLE User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../../faq/how_to_edit_docs/
+">Appendix</a>
+
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="col-md-9" role="main">
+ <div class="doc-header">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs pull-right">
+ <li><a href="/latest/os/introduction">Docs</a></li>
+
+
+
+ <li>» <a href="../../mynewt_os/">OS Core</a></li>
+
+
+
+ <li>» CPU Time</li>
+
+
+
+
+
+ </ul>
+</div>
+ </div>
+
+ <h1 id="cpu-time">CPU Time</h1>
+<p>The MyNewt <code>cputime</code> module provides high resolution time and timer support. This module is intended for use by BSPs, drivers, and network controllers. </p>
+<h2 id="description">Description</h2>
+<p>The <code>cputime</code> API provides high resolution time and timer support. The module must be initialized, using the <code>os_cputime_init()</code> function, with the clock frequency to use. The module uses the <code>hal_timer</code> API, defined in hal/hal_timer.h, to access the hardware timers. It uses the hardware timer number specified by the <code>OS_CPUTIME_TIMER_NUM</code> system configuration setting.</p>
+<h2 id="data-structures">Data Structures</h2>
+<p>The module uses the following data structures:</p>
+<ul>
+<li><code>uint32_t</code> to represent <code>cputime</code>. Only the lower 32 bits of a 64 timer are used. </li>
+<li><code>struct hal_timer</code> to represent a cputime timer.</li>
+</ul>
+<h2 id="list-of-functions">List of Functions</h2>
+<p>The functions available in cputime are:</p>
+<table>
+<thead>
+<tr>
+<th><strong>Function</strong></th>
+<th><strong>Description</strong></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td><a href="../os_cputime_delay_nsecs/">os_cputime_delay_nsecs</a></td>
+<td>Delays for a specified number of nanoseconds.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_delay_ticks/">os_cputime_delay_ticks</a></td>
+<td>Delays for a specified number of ticks.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_delay_usecs/">os_cputime_delay_usecs</a></td>
+<td>Delays for a specified number of microseconds.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_get32/">os_cputime_get32</a></td>
+<td>Gets the current value of the cpu time.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_init/">os_cputime_init</a></td>
+<td>Initializes the cputime module.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_nsecs_to_ticks/">os_cputime_nsecs_to_ticks</a></td>
+<td>Converts the specified number of nanoseconds to number of ticks.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_ticks_to_nsecs/">os_cputime_ticks_to_nsecs</a></td>
+<td>Converts the specified number of ticks to number of nanoseconds.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_ticks_to_usecs/">os_cputime_ticks_to_usecs</a></td>
+<td>Converts the specified number of ticks to number of microseconds.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_timer_init/">os_cputime_timer_init</a></td>
+<td>Initializes a timer.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_timer_relative/">os_cputime_timer_relative</a></td>
+<td>Sets a timer to expire in the specified number of microseconds from the current time.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_timer_start/">os_cputime_timer_start</a></td>
+<td>Sets a timer to expire at the specified cputime.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_timer_stop/">os_cputime_timer_stop</a></td>
+<td>Stops a timer from running.</td>
+</tr>
+<tr>
+<td><a href="../os_cputime_usecs_to_ticks/">os_cputime_usecs_to_ticks</a></td>
+<td>Converts the specified number of microseconds to number of ticks.</td>
+</tr>
+</tbody>
+</table>
+<h2 id="list-of-macros">List of Macros</h2>
+<p>These macros should be used to evaluate the time with respect to each other.</p>
+<ul>
+<li><code>CPUIME_LT(t1,t2)</code> -- evaluates to true if t1 is before t2 in time.</li>
+<li><code>CPUTIME_GT(t1,t2)</code> -- evaluates to true if t1 is after t2 in time </li>
+<li><code>CPUTIME_LEQ(t1,t2)</code> -- evaluates to true if t1 is on or before t2 in time.</li>
+<li><code>CPUTIME_GEQ(t1,t2)</code> -- evaluates to true if t1 is on or after t2 in time.</li>
+</ul>
+
+ <div class="row">
+
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+ <li>
+
+ <a href=../../context_switch/os_sched_wakeup/>
+ <span class="fa fa-arrow-left"></span>
+ Previous: os_sched_wakeup
+ </a>
+
+ </li>
+ <li class="pull-right">
+
+ <a href=../os_cputime_delay_nsecs/>
+ Next: os_cputime_delay_nsecs
+ <span class="fa fa-arrow-right"></span>
+ </a>
+
+ </li>
+</ul>
+ </div>
+ <footer class="row">
+ <div class="col-xs-12">
+
+ <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p>
+
+ </div>
+ <div class="col-xs-12">
+ <div class="logos">
+ <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/cputime/os_cputime_delay_nsecs/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/cputime/os_cputime_delay_nsecs/index.html b/latest/os/core_os/cputime/os_cputime_delay_nsecs/index.html
new file mode 100644
index 0000000..e6151a0
--- /dev/null
+++ b/latest/os/core_os/cputime/os_cputime_delay_nsecs/index.html
@@ -0,0 +1,894 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <!-- This is broken by doc revisioning.
+ <link rel="canonical" href="http://mynewt.apache.org/os/core_os/cputime/os_cputime_delay_nsecs/"> -->
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>os_cputime_delay_nsecs - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+ <link href="../../../../extra.css" rel="stylesheet">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'auto');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="os_cputime_delay_nsecs">
+
+
+ <div class="container">
+ <div class="row v2-main-banner">
+ <a class="logo-cell" href="/">
+ <img class="logo" src="/img/logo.png">
+ </a>
+ <div class="tagline-cell">
+ <h4 class="tagline">An OS to build, deploy and securely manage billions of devices</h4>
+ </div>
+ <div class="news-cell">
+ <div class="well">
+ <h4>Latest News:</h4> <a href="/download">Apache Mynewt 1.0.0</a> released (March 22, 2017)
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse affix-top" data-spy="affix" data-offset-top="150" role="navigation">
+ <div class="container">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li
+ class=""
+>
+ <a href="/"><i class="fa fa-home" style="font-size: larger;"></i></a>
+ </li>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/talks/">Talks</a>
+ </li>
+ <li
+ class="active"
+>
+ <a href="/latest/os/introduction">Documentation</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/download/">Download</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/community/">Community</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</nav>
+
+
+
+ <div class="container">
+
+ <div class="row">
+ <div class="col-md-3 v2-sidebar sidebar-container"><div id="docSidebar" class="hidden-print" role="complementary">
+ <div class="top">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div class="form-group">
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="toc-nav">
+ <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+
+ <option
+ value="/develop/os/introduction"
+ selected="selected"
+ >
+ Version: develop (latest)
+ </option>
+
+ <option
+ value="/v0_9_0/os/introduction"
+
+ >
+ Version: 0.9.0
+ </option>
+
+</select>
+</li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../mynewt_os/">OS Core</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../os_started/
+">Functions</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../os_cputime/">CPU Time</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li><a href="
+ ./
+">Functions</a>
+
+
+ <ul>
+
+
+
+ <li class="active">
+ <a href="./">os_cputime_delay_nsecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_delay_ticks/">os_cputime_delay_ticks</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_delay_usecs/">os_cputime_delay_usecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_get32/">os_cputime_get32</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_init/">os_cputime_init</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_nsecs_to_ticks/">os_cputime_nsecs_to_ticks</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_ticks_to_nsecs/">os_cputime_ticks_to_nsecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_ticks_to_usecs/">os_cputime_ticks_to_usecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_init/">os_cputime_timer_init</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_relative/">os_cputime_timer_relative</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_start/">os_cputime_timer_start</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_stop/">os_cputime_timer_stop</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_usecs_to_ticks/">os_cputime_usecs_to_ticks</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../task/task/">Tasks</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../heap/heap/">Heap</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../mbuf/mbuf/
+
+">Memory Buffers</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../sanity/sanity/">Sanity</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../callout/callout/">Callouts</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/console/console/">Console</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/split/split/">Split Images</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/fs/fs/fs/
+
+">File System</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/drivers/driver/">Drivers</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/devmgmt/newtmgr/">Device Management with Newt Manager</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../../modules/baselibc/">Baselibc library</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/json/json/">JSON</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/fcb/fcb/">Flash Circular Buffer</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/sysinitconfig/sysinitconfig/">System Configuration And Initialization</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../../network/ble/ble_intro/
+">BLE User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../../faq/how_to_edit_docs/
+">Appendix</a>
+
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="col-md-9" role="main">
+ <div class="doc-header">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs pull-right">
+ <li><a href="/latest/os/introduction">Docs</a></li>
+
+
+
+ <li>» <a href="../os_cputime/">CPU Time</a></li>
+
+
+
+ <li>» Functions</li>
+
+
+
+ <li>» os_cputime_delay_nsecs</li>
+
+
+
+ </ul>
+</div>
+ </div>
+
+ <h2 id="os_cputime_delay_nsecs"><font color="F2853F" style="font-size:24pt">os_cputime_delay_nsecs</font></h2>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">void</span> <span style="color: #000000">os_cputime_delay_nsecs</span>(<span style="color: #A90D91">uint32_t</span> <span style="color: #000000">nsecs</span>)
+</pre></div>
+
+
+<p>Waits for a specified number of nanoseconds to elapse before returning.</p>
+<h4 id="arguments">Arguments</h4>
+<table>
+<thead>
+<tr>
+<th>Arguments</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td><code>nsecs</code></td>
+<td>Number of nanoseconds to delay for.</td>
+</tr>
+</tbody>
+</table>
+<h4 id="returned-values">Returned values</h4>
+<p>N/A</p>
+<h4 id="notes">Notes</h4>
+<h4 id="example">Example</h4>
+<p>Delays for 250000 nsecs:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">os_cputime_delay_nsecs</span>(<span style="color: #1C01CE">250000</span>)
+</pre></div>
+
+ <div class="row">
+
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+ <li>
+
+ <a href=../os_cputime/>
+ <span class="fa fa-arrow-left"></span>
+ Previous: CPU Time
+ </a>
+
+ </li>
+ <li class="pull-right">
+
+ <a href=../os_cputime_delay_ticks/>
+ Next: os_cputime_delay_ticks
+ <span class="fa fa-arrow-right"></span>
+ </a>
+
+ </li>
+</ul>
+ </div>
+ <footer class="row">
+ <div class="col-xs-12">
+
+ <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p>
+
+ </div>
+ <div class="col-xs-12">
+ <div class="logos">
+ <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/facfa9ba/latest/os/core_os/cputime/os_cputime_delay_ticks/index.html
----------------------------------------------------------------------
diff --git a/latest/os/core_os/cputime/os_cputime_delay_ticks/index.html b/latest/os/core_os/cputime/os_cputime_delay_ticks/index.html
new file mode 100644
index 0000000..6e1a49a
--- /dev/null
+++ b/latest/os/core_os/cputime/os_cputime_delay_ticks/index.html
@@ -0,0 +1,894 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+
+ <!-- This is broken by doc revisioning.
+ <link rel="canonical" href="http://mynewt.apache.org/os/core_os/cputime/os_cputime_delay_ticks/"> -->
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>os_cputime_delay_ticks - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../../css/highlight.css">
+ <link href="../../../../css/base.css" rel="stylesheet">
+ <link href="../../../../css/custom.css" rel="stylesheet">
+ <link href="../../../../css/v2.css" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+ <link href="../../../../extra.css" rel="stylesheet">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-72162311-1', 'auto');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="os_cputime_delay_ticks">
+
+
+ <div class="container">
+ <div class="row v2-main-banner">
+ <a class="logo-cell" href="/">
+ <img class="logo" src="/img/logo.png">
+ </a>
+ <div class="tagline-cell">
+ <h4 class="tagline">An OS to build, deploy and securely manage billions of devices</h4>
+ </div>
+ <div class="news-cell">
+ <div class="well">
+ <h4>Latest News:</h4> <a href="/download">Apache Mynewt 1.0.0</a> released (March 22, 2017)
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse affix-top" data-spy="affix" data-offset-top="150" role="navigation">
+ <div class="container">
+ <!-- Collapsed navigation -->
+ <div class="navbar-header">
+ <!-- Expander button -->
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Expanded navigation -->
+ <div class="navbar-collapse collapse">
+ <!-- Main navigation -->
+ <ul class="nav navbar-nav navbar-right">
+ <li
+ class=""
+>
+ <a href="/"><i class="fa fa-home" style="font-size: larger;"></i></a>
+ </li>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/talks/">Talks</a>
+ </li>
+ <li
+ class="active"
+>
+ <a href="/latest/os/introduction">Documentation</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/download/">Download</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/community/">Community</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</nav>
+
+
+
+ <div class="container">
+
+ <div class="row">
+ <div class="col-md-3 v2-sidebar sidebar-container"><div id="docSidebar" class="hidden-print" role="complementary">
+ <div class="top">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <div class="form-group">
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="toc-nav">
+ <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+
+ <option
+ value="/develop/os/introduction"
+ selected="selected"
+ >
+ Version: develop (latest)
+ </option>
+
+ <option
+ value="/v0_9_0/os/introduction"
+
+ >
+ Version: 0.9.0
+ </option>
+
+</select>
+</li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../mynewt_os/">OS Core</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../os_started/
+">Functions</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../os_cputime/">CPU Time</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li><a href="
+ ../os_cputime_delay_nsecs/
+">Functions</a>
+
+
+ <ul>
+
+
+
+ <li >
+ <a href="../os_cputime_delay_nsecs/">os_cputime_delay_nsecs</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ <a href="./">os_cputime_delay_ticks</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_delay_usecs/">os_cputime_delay_usecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_get32/">os_cputime_get32</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_init/">os_cputime_init</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_nsecs_to_ticks/">os_cputime_nsecs_to_ticks</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_ticks_to_nsecs/">os_cputime_ticks_to_nsecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_ticks_to_usecs/">os_cputime_ticks_to_usecs</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_init/">os_cputime_timer_init</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_relative/">os_cputime_timer_relative</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_start/">os_cputime_timer_start</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_timer_stop/">os_cputime_timer_stop</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../os_cputime_usecs_to_ticks/">os_cputime_usecs_to_ticks</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../time/os_time/">OS Time</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../task/task/">Tasks</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../heap/heap/">Heap</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../mbuf/mbuf/
+
+">Memory Buffers</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../sanity/sanity/">Sanity</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../callout/callout/">Callouts</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/console/console/">Console</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/split/split/">Split Images</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+
+
+ ../../../modules/fs/fs/fs/
+
+">File System</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/drivers/driver/">Drivers</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/devmgmt/newtmgr/">Device Management with Newt Manager</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../../modules/baselibc/">Baselibc library</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/json/json/">JSON</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/fcb/fcb/">Flash Circular Buffer</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../modules/sysinitconfig/sysinitconfig/">System Configuration And Initialization</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../../network/ble/ble_intro/
+">BLE User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../../faq/how_to_edit_docs/
+">Appendix</a>
+
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="col-md-9" role="main">
+ <div class="doc-header">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs pull-right">
+ <li><a href="/latest/os/introduction">Docs</a></li>
+
+
+
+ <li>» <a href="../os_cputime/">CPU Time</a></li>
+
+
+
+ <li>» <a href="../os_cputime_delay_nsecs/">Functions</a></li>
+
+
+
+ <li>» os_cputime_delay_ticks</li>
+
+
+
+ </ul>
+</div>
+ </div>
+
+ <h2 id="os_cputime_delay_ticks"><font color="F2853F" style="font-size:24pt">os_cputime_delay_ticks</font></h2>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">void</span> <span style="color: #000000">os_cputime_delay_ticks</span>(<span style="color: #A90D91">uint32_t</span> <span style="color: #000000">ticks</span>)
+</pre></div>
+
+
+<p>Waits for a specified number of ticks to elapse before returning.</p>
+<h4 id="arguments">Arguments</h4>
+<table>
+<thead>
+<tr>
+<th>Arguments</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td><code>ticks</code></td>
+<td>Number of ticks to delay for.</td>
+</tr>
+</tbody>
+</table>
+<h4 id="returned-values">Returned values</h4>
+<p>N/A</p>
+<h4 id="notes">Notes</h4>
+<h4 id="example">Example</h4>
+<p>Delays for 100000 ticks:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">os_cputime_delay_ticks</span>(<span style="color: #1C01CE">100000</span>)
+</pre></div>
+
+ <div class="row">
+
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+ <li>
+
+ <a href=../os_cputime_delay_nsecs/>
+ <span class="fa fa-arrow-left"></span>
+ Previous: os_cputime_delay_nsecs
+ </a>
+
+ </li>
+ <li class="pull-right">
+
+ <a href=../os_cputime_delay_usecs/>
+ Next: os_cputime_delay_usecs
+ <span class="fa fa-arrow-right"></span>
+ </a>
+
+ </li>
+</ul>
+ </div>
+ <footer class="row">
+ <div class="col-xs-12">
+
+ <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p>
+
+ </div>
+ <div class="col-xs-12">
+ <div class="logos">
+ <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+
+ </div>
+
+ <script src="../../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../../js/highlight.pack.js"></script>
+ <script src="../../../../js/base.js"></script>
+ <script src="../../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file