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 2016/05/20 07:36:02 UTC
[19/51] [partial] incubator-mynewt-site git commit: Changed landing
page, main banner, secondary banner, events, community,
added Quick start nav link, collapsed documentation hierarchy
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/semaphore/semaphore/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/semaphore/semaphore/index.html b/os/core_os/semaphore/semaphore/index.html
index aca9a26..ce06bab 100644
--- a/os/core_os/semaphore/semaphore/index.html
+++ b/os/core_os/semaphore/semaphore/index.html
@@ -16,6 +16,7 @@
<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=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="toc">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <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" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../../task/task/">Tasks</a></li>
+ <li ><a href="../../task/task/">Tasks</a>
-
- </li>
+
+ </li>
@@ -302,10 +250,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -313,10 +261,10 @@
- <li class="active"><a href="./">Semaphores</a></li>
+ <li class="active"><a href="./">Semaphores</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -328,14 +276,14 @@
../os_sem_init/
">Functions</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -343,10 +291,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -354,10 +302,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -365,10 +313,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -383,8 +331,8 @@
">Memory Buffers</a>
-
- </li>
+
+ </li>
@@ -392,10 +340,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -403,16 +351,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -420,10 +368,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -431,10 +379,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -442,10 +390,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -453,10 +401,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -471,8 +419,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -480,10 +428,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -491,10 +439,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -502,20 +450,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -523,10 +469,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -534,10 +480,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -545,10 +491,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -556,16 +502,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -577,40 +523,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -622,8 +564,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -634,45 +576,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -692,14 +600,14 @@
</div>
</div>
- <h1 id="semaphore">Semaphore<a class="headerlink" href="#semaphore" title="Permanent link">¶</a></h1>
+ <h1 id="semaphore">Semaphore</h1>
<p>A semaphore is a structure used for gaining exclusive access (much like a mutex), synchronizing task operations and/or use in a "producer/consumer" roles. Semaphores like the ones used by the myNewt OS are called "counting" semaphores as they are allowed to have more than one token (explained below).</p>
-<h3 id="description">Description<a class="headerlink" href="#description" title="Permanent link">¶</a></h3>
+<h3 id="description">Description</h3>
<p>A semaphore is a fairly simple construct consisting of a queue for waiting tasks and the number of tokens currently owned by the semaphore. A semaphore can be obtained as long as there are tokens in the semaphore. Any task can add tokens to the semaphore and any task can request the semaphore, thereby removing tokens. When creating the semaphore, the initial number of tokens can be set as well.</p>
<p>When used for exclusive access to a shared resource the semaphore only needs a single token. In this case, a single task "creates" the semaphore by calling <em>os_sem_init</em> with a value of one (1) for the token. When a task desires exclusive access to the shared resource it requests the semaphore by calling <em>os_sem_pend</em>. If there is a token the requesting task will acquire the semaphore and continue operation. If no tokens are available the task will be put to sleep until there is a token. A common "problem" with using a semaphore for exclusive access is called <em>priority inversion</em>. Consider the following scenario: a high and low priority task both share a resource which is locked using a semaphore. If the low priority task obtains the semaphore and then the high priority task requests the semaphore, the high priority task is now blocked until the low priority task releases the semaphore. Now suppose that there are tasks between the low priority task and the hi
gh priority task that want to run. These tasks will preempt the low priority task which owns the semaphore. Thus, the high priority task is blocked waiting for the low priority task to finish using the semaphore but the low priority task cannot run since other tasks are running. Thus, the high priority tasks is "inverted" in priority; in effect running at a much lower priority as normally it would preempt the other (lower priority) tasks. If this is an issue a mutex should be used instead of a semaphore.</p>
<p>Semaphores can also be used for task synchronization. A simple example of this would be the following. A task creates a semaphore and initializes it with no tokens. The task then waits on the semaphore, and since there are no tokens, the task is put to sleep. When other tasks want to wake up the sleeping task they simply add a token by calling <em>os_sem_release</em>. This will cause the sleeping task to wake up (instantly if no other higher priority tasks want to run).</p>
<p>The other common use of a counting semaphore is in what is commonly called a "producer/consumer" relationship. The producer adds tokens (by calling <em>os_sem_release</em>) and the consumer consumes them by calling <em>os_sem_pend</em>. In this relationship, the producer has work for the consumer to do. Each token added to the semaphore will cause the consumer to do whatever work is required. A simple example could be the following: every time a button is pressed there is some work to do (ring a bell). Each button press causes the producer to add a token. Each token consumed rings the bell. There will exactly the same number of bell rings as there are button presses. In other words, each call to <em>os_sem_pend</em> subtracts exactly one token and each call to <em>os_sem_release</em> adds exactly one token.</p>
-<h3 id="data-structures">Data structures<a class="headerlink" href="#data-structures" title="Permanent link">¶</a></h3>
+<h3 id="data-structures">Data structures</h3>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">struct</span> <span style="color: #000000">os_sem</span>
{
<span style="color: #000000">SLIST_HEAD</span>(, <span style="color: #000000">os_task</span>) <span style="color: #000000">sem_head</span>; <span style="color: #177500">/* chain of waiting tasks */</span>
@@ -731,7 +639,7 @@
</tr>
</tbody>
</table>
-<h3 id="list-of-functions">List of Functions<a class="headerlink" href="#list-of-functions" title="Permanent link">¶</a></h3>
+<h3 id="list-of-functions">List of Functions</h3>
<p>The functions available in semaphore are:</p>
<ul>
<li><a href="../os_sem_init">os_sem_init</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/task/os_task_count/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/task/os_task_count/index.html b/os/core_os/task/os_task_count/index.html
index 94db32b..45f94ec 100644
--- a/os/core_os/task/os_task_count/index.html
+++ b/os/core_os/task/os_task_count/index.html
@@ -16,6 +16,7 @@
<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=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="os_task_count">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <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" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
-
-
- <ul class="current-toc">
-
-
-
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../task/">Tasks</a></li>
+ <li ><a href="../task/">Tasks</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -306,48 +254,42 @@
./
">Functions</a>
-
- <ul class="current-toc">
+
+ <ul>
-
<li class="active">
- os_task_count
+ <a href="./">os_task_count</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_task_info_get_next/">os_task_info_get_next</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_task_init/">os_task_init</a>
</li>
-
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -355,10 +297,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -366,10 +308,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -377,10 +319,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -388,10 +330,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -399,10 +341,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -417,8 +359,8 @@
">Memory Buffers</a>
-
- </li>
+
+ </li>
@@ -426,10 +368,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -437,16 +379,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -454,10 +396,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -465,10 +407,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -476,10 +418,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -487,10 +429,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -505,8 +447,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -514,10 +456,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -525,10 +467,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -536,20 +478,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -557,10 +497,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -568,10 +508,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -579,10 +519,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -590,16 +530,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -611,40 +551,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -656,8 +592,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -668,45 +604,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -728,20 +630,20 @@
</div>
</div>
- <h2 id="os_task_count"><font color="F2853F" style="font-size:24pt"> os_task_count</font><a class="headerlink" href="#os_task_count" title="Permanent link">¶</a></h2>
+ <h2 id="os_task_count"><font color="F2853F" style="font-size:24pt"> os_task_count</font></h2>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">uint8_t</span> <span style="color: #000000">os_task_count</span>(<span style="color: #A90D91">void</span>);
</pre></div>
<p>Returns the number of tasks that have been created. </p>
<p><br></p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<h4 id="arguments">Arguments</h4>
<p>None</p>
<p><br></p>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<h4 id="returned-values">Returned values</h4>
<p>unsigned 8-bit integer representing number of tasks created</p>
<p><br></p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<h4 id="example">Example</h4>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> <span style="color: #A90D91">uint8_t</span> <span style="color: #000000">num_tasks</span>;
<span style="color: #000000">num_tasks</span> <span style="color: #000000">=</span> <span style="color: #000000">os_task_count</span>();
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/task/os_task_info_get_next/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/task/os_task_info_get_next/index.html b/os/core_os/task/os_task_info_get_next/index.html
index b30fd93..595c29d 100644
--- a/os/core_os/task/os_task_info_get_next/index.html
+++ b/os/core_os/task/os_task_info_get_next/index.html
@@ -16,6 +16,7 @@
<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=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="os_task_info_get_next">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <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" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
-
-
- <ul class="current-toc">
-
-
-
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../task/">Tasks</a></li>
+ <li ><a href="../task/">Tasks</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -306,48 +254,42 @@
../os_task_count/
">Functions</a>
-
- <ul class="current-toc">
+
+ <ul>
-
- <li>
+ <li >
<a href="../os_task_count/">os_task_count</a>
</li>
-
-
<li class="active">
- os_task_info_get_next
+ <a href="./">os_task_info_get_next</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_task_init/">os_task_init</a>
</li>
-
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -355,10 +297,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -366,10 +308,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -377,10 +319,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -388,10 +330,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -399,10 +341,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -417,8 +359,8 @@
">Memory Buffers</a>
-
- </li>
+
+ </li>
@@ -426,10 +368,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -437,16 +379,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -454,10 +396,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -465,10 +407,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -476,10 +418,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -487,10 +429,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -505,8 +447,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -514,10 +456,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -525,10 +467,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -536,20 +478,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -557,10 +497,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -568,10 +508,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -579,10 +519,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -590,16 +530,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -611,40 +551,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -656,8 +592,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -668,45 +604,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -728,7 +630,7 @@
</div>
</div>
- <h2 id="os_task_info_get_next"><font color="F2853F" style="font-size:24pt"> os_task_info_get_next</font><a class="headerlink" href="#os_task_info_get_next" title="Permanent link">¶</a></h2>
+ <h2 id="os_task_info_get_next"><font color="F2853F" style="font-size:24pt"> os_task_info_get_next</font></h2>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">struct</span> <span style="color: #000000">os_task</span> <span style="color: #000000">*os_task_info_get_next</span>(<span style="color: #A90D91">const</span> <span style="color: #A90D91">struct</span> <span style="color: #000000">os_task</span> <span style="color: #000000">*prev</span>, <span style="color: #A90D91">struct</span> <span style="color: #000000">os_task_info</span> <span style="color: #000000">*oti</span>);
</pre></div>
@@ -740,7 +642,7 @@ list if <em>prev</em> is NULL, or the next task in the task list (the next point
<p>If there are no tasks initialized, NULL is returned. Otherwise, the task
structure used to populate <em>oti</em> is returned.</p>
<p><br></p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<h4 id="arguments">Arguments</h4>
<table>
<thead>
<tr>
@@ -760,11 +662,11 @@ structure used to populate <em>oti</em> is returned.</p>
</tbody>
</table>
<p><br></p>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<h4 id="returned-values">Returned values</h4>
<p>Returns a pointer to the os task structure that was used to populate the task
information structure. NULL means that no tasks were created.</p>
<p><br></p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<h4 id="example">Example</h4>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">void</span>
<span style="color: #000000">get_task_info</span>(<span style="color: #A90D91">void</span>)
{
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/eab28af6/os/core_os/task/os_task_init/index.html
----------------------------------------------------------------------
diff --git a/os/core_os/task/os_task_init/index.html b/os/core_os/task/os_task_init/index.html
index 580ebb1..d73fc69 100644
--- a/os/core_os/task/os_task_init/index.html
+++ b/os/core_os/task/os_task_init/index.html
@@ -16,6 +16,7 @@
<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=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="../../../../extra.css" rel="stylesheet">
@@ -43,11 +44,10 @@
<body class="os_task_init">
- <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -64,75 +64,37 @@
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav navbar-right">
- <li>
+ <li
+ class=""
+>
<a href="/">Home</a>
</li>
- <li>
- <a href="/about/">About</a>
+ <li
+ class="important"
+>
+ <a href="/quick-start/">Quick Start</a>
</li>
- <li class="dropdown">
- <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
- <ul class="dropdown-menu">
-
-
-
-
-
-
- <li >
- <a href="../../../../documentation/">
- Overview
- </a>
- </li>
-
-
-
-
-
-
-
-
-
- <li class="active">
- <a href="../../../get_started/introduction/">
- Mynewt OS Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newt/newt_intro/">
- Newt Tool Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../newtmgr/overview/">
- Newt Manager Manual
- </a>
- </li>
-
-
-
- <li >
- <a href="../../../../faq/how_to_edit_docs/">
- Appendix
- </a>
- </li>
-
-
- </ul>
+ <li
+ class=""
+>
+ <a href="/about/">About</a>
</li>
<li>
+ <a href="/os/introduction/">Documentation</a>
+ </li>
+ <li
+ class=""
+>
<a href="/download/">Download</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/community/">Community</a>
</li>
- <li>
+ <li
+ class=""
+>
<a href="/events/">Events</a>
</li>
</ul>
@@ -142,27 +104,26 @@
</ul>
</div>
- # </div>
-</div>
+ </div>
+</nav>
- <div class="container-fluid">
+ <div class="container">
- <div class="row sm-extra-padding">
- <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-top">
+ <div class="row">
+ <div class="col-md-3 v2-sidebar"><div class="hidden-print" role="complementary">
+ <div class="top">
<img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
- <div class="small" role="search">
- <form id ="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+ <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" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
</div>
</form>
</div>
</div>
- <ul class="nav bs-sidenav">
+ <ul class="toc-nav">
@@ -180,42 +141,29 @@
- <li><a href="
- ../../../get_started/introduction/
-">Mynewt OS Manual</a>
-
-
- <ul class="current-toc">
-
-
-
+ <li ><a href="../../../introduction/">Mynewt Documentation</a>
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
+ <ul>
+
- <li ><a href="../../../get_started/get_started/">Quick Start</a></li>
+ <li ><a href="../../../get_started/get_started/">Basic Setup</a>
-
- </li>
+
+ </li>
-
-
- <li ><a href="../../../get_started/vocabulary/">Concepts</a></li>
-
-
- </li>
+ <li >
+ <a href="../../../get_started/vocabulary/">Concepts</a>
+ </li>
@@ -223,10 +171,10 @@
- <li ><a href="../../../tutorials/tutorials/">Tutorials</a></li>
+ <li ><a href="../../../tutorials/tutorials/">Tutorials</a>
-
- </li>
+
+ </li>
@@ -234,10 +182,10 @@
- <li ><a href="../../../os_user_guide/">OS User Guide</a></li>
+ <li ><a href="../../../os_user_guide/">OS User Guide</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -245,10 +193,10 @@
- <li ><a href="../../mynewt_os/">OS Core</a></li>
+ <li ><a href="../../mynewt_os/">OS Core</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -260,8 +208,8 @@
../../os_init/
">System-level Functions</a>
-
- </li>
+
+ </li>
@@ -269,10 +217,10 @@
- <li ><a href="../../context_switch/context_switch/">Scheduler</a></li>
+ <li ><a href="../../context_switch/context_switch/">Scheduler</a>
-
- </li>
+
+ </li>
@@ -280,10 +228,10 @@
- <li ><a href="../../time/os_time/">Time</a></li>
+ <li ><a href="../../time/os_time/">Time</a>
-
- </li>
+
+ </li>
@@ -291,10 +239,10 @@
- <li ><a href="../task/">Tasks</a></li>
+ <li ><a href="../task/">Tasks</a>
-
- <ul class="current-toc">
+
+ <ul>
@@ -306,48 +254,42 @@
../os_task_count/
">Functions</a>
-
- <ul class="current-toc">
+
+ <ul>
-
- <li>
+ <li >
<a href="../os_task_count/">os_task_count</a>
</li>
-
-
- <li>
+ <li >
<a href="../os_task_info_get_next/">os_task_info_get_next</a>
</li>
-
-
<li class="active">
- os_task_init
+ <a href="./">os_task_init</a>
</li>
-
- </ul>
-
- </li>
+ </ul>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -355,10 +297,10 @@
- <li ><a href="../../event_queue/event_queue/">Event Queues</a></li>
+ <li ><a href="../../event_queue/event_queue/">Event Queues</a>
-
- </li>
+
+ </li>
@@ -366,10 +308,10 @@
- <li ><a href="../../semaphore/semaphore/">Semaphores</a></li>
+ <li ><a href="../../semaphore/semaphore/">Semaphores</a>
-
- </li>
+
+ </li>
@@ -377,10 +319,10 @@
- <li ><a href="../../mutex/mutex/">Mutexes</a></li>
+ <li ><a href="../../mutex/mutex/">Mutexes</a>
-
- </li>
+
+ </li>
@@ -388,10 +330,10 @@
- <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a></li>
+ <li ><a href="../../memory_pool/memory_pool/">Memory Pools</a>
-
- </li>
+
+ </li>
@@ -399,10 +341,10 @@
- <li ><a href="../../heap/heap/">Heap</a></li>
+ <li ><a href="../../heap/heap/">Heap</a>
-
- </li>
+
+ </li>
@@ -417,8 +359,8 @@
">Memory Buffers</a>
-
- </li>
+
+ </li>
@@ -426,10 +368,10 @@
- <li ><a href="../../sanity/sanity/">Sanity</a></li>
+ <li ><a href="../../sanity/sanity/">Sanity</a>
-
- </li>
+
+ </li>
@@ -437,16 +379,16 @@
- <li ><a href="../../callout/callout/">Callouts</a></li>
+ <li ><a href="../../callout/callout/">Callouts</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -454,10 +396,10 @@
- <li ><a href="../../porting/port_os/">Porting to your Platform</a></li>
+ <li ><a href="../../porting/port_os/">Porting to your Platform</a>
-
- </li>
+
+ </li>
@@ -465,10 +407,10 @@
- <li ><a href="../../../modules/console/console/">Console</a></li>
+ <li ><a href="../../../modules/console/console/">Console</a>
-
- </li>
+
+ </li>
@@ -476,10 +418,10 @@
- <li ><a href="../../../modules/shell/shell/">Shell</a></li>
+ <li ><a href="../../../modules/shell/shell/">Shell</a>
-
- </li>
+
+ </li>
@@ -487,10 +429,10 @@
- <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a></li>
+ <li ><a href="../../../modules/bootloader/bootloader/">Bootloader</a>
-
- </li>
+
+ </li>
@@ -505,8 +447,8 @@
">File System</a>
-
- </li>
+
+ </li>
@@ -514,10 +456,10 @@
- <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a></li>
+ <li ><a href="../../../modules/hal/hal/">Hardware Abstraction Layer</a>
-
- </li>
+
+ </li>
@@ -525,10 +467,10 @@
- <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a></li>
+ <li ><a href="../../../modules/testutil/testutil/">Test Utilities</a>
-
- </li>
+
+ </li>
@@ -536,20 +478,18 @@
- <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a></li>
+ <li ><a href="../../../modules/imgmgr/imgmgr/">Image Manager</a>
-
- </li>
+
+ </li>
-
- <li>
+ <li >
<a href="../../../modules/baselibc/">Baselibc library</a>
</li>
-
@@ -557,10 +497,10 @@
- <li ><a href="../../../modules/elua/elua/">Embedded Lua</a></li>
+ <li ><a href="../../../modules/elua/elua/">Embedded Lua</a>
-
- </li>
+
+ </li>
@@ -568,10 +508,10 @@
- <li ><a href="../../../modules/json/json/">JSON</a></li>
+ <li ><a href="../../../modules/json/json/">JSON</a>
-
- </li>
+
+ </li>
@@ -579,10 +519,10 @@
- <li ><a href="../../../modules/stats/stats/">Stats</a></li>
+ <li ><a href="../../../modules/stats/stats/">Stats</a>
-
- </li>
+
+ </li>
@@ -590,16 +530,16 @@
- <li ><a href="../../../modules/logs/logs/">Logs</a></li>
+ <li ><a href="../../../modules/logs/logs/">Logs</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
+ </ul>
+
+ </li>
@@ -611,40 +551,36 @@
../../../../network/ble/ble_intro/
">BLE User Guide</a>
-
- </li>
+
+ </li>
- </ul>
-
- </li>
-
-
-
-
-
+
+
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
+ <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
-
- </li>
+
+ </li>
-
-
-
+
+
+
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
+ <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
-
- </li>
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
@@ -656,8 +592,8 @@
../../../../faq/how_to_edit_docs/
">Appendix</a>
-
- </li>
+
+ </li>
@@ -668,45 +604,11 @@
<button class="show-sidebar">Docs Menu</button>
</div>
- <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+ <div class="col-md-9" role="main">
<div class="row doc-header">
- <div class="col-sm-6">
-
-<ul class="nav nav-pills">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li class="active" role="presentation"><a href="../../../get_started/introduction/">Mynewt OS</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newt/newt_intro/">Newt Tool</a></li>
-
-
-
- <li role="presentation"><a href="../../../../newtmgr/overview/">Newt Mgr</a></li>
-
-
-
-
-</ul>
- </div>
- <div class="col-sm-6">
+ <div class="col-sm-12">
<div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
+ <ul class="wy-breadcrumbs pull-right">
<li><a href="/documentation/">Docs</a></li>
@@ -728,7 +630,7 @@
</div>
</div>
- <h2 id="os_task_init"><font color="F2853F" style="font-size:24pt"> os_task_init</font><a class="headerlink" href="#os_task_init" title="Permanent link">¶</a></h2>
+ <h2 id="os_task_init"><font color="F2853F" style="font-size:24pt"> os_task_init</font></h2>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">int</span> <span style="color: #000000">os_task_init</span>(<span style="color: #A90D91">struct</span> <span style="color: #000000">os_task</span> <span style="color: #000000">*t</span>, <span style="color: #A90D91">char</span> <span style="color: #000000">*name</span>, <span style="color: #A90D91">os_task_func_t</span> <span style="color: #000000">func</span>, <span style="color: #A90D91">void</span> <span style="color: #000000">*arg</span>,
<span style="color: #A90D91">uint8_t</span> <span style="color: #000000">prio</span>, <span style="color: #A90D91">os_time_t</span> <span style="color: #000000">sanity_itvl</span>, <span style="color: #A90D91">os_stack_t</span> <span style="color: #000000">*stack_bottom</span>,
<span style="color: #A90D91">uint16_t</span> <span style="color: #000000">stack_size</span>)
@@ -738,7 +640,7 @@
<p>Called to create a task. This adds the task object to the list of ready to run
tasks.</p>
<p><br></p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<h4 id="arguments">Arguments</h4>
<table>
<thead>
<tr>
@@ -782,11 +684,11 @@ tasks.</p>
</tbody>
</table>
<p><br></p>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<h4 id="returned-values">Returned values</h4>
<p>OS_OK: task initialization successful.</p>
<p>All other error codes indicate an internal error.</p>
<p><br></p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<h4 id="example">Example</h4>
<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> <span style="color: #177500">/* Create the task */</span>
<span style="color: #A90D91">int</span> <span style="color: #000000">rc</span>;