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/03/01 19:40:58 UTC
[1/3] incubator-mynewt-site git commit: added info on filing bugs
Repository: incubator-mynewt-site
Updated Branches:
refs/heads/asf-site c7a3894b8 -> 19a9789aa
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_tx_char/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_tx_char/index.html b/os/modules/console/console_tx_char/index.html
deleted file mode 100644
index 91e123c..0000000
--- a/os/modules/console/console_tx_char/index.html
+++ /dev/null
@@ -1,525 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_tx_char/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_tx_char - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_tx_char">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../console_add_char/
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li class="active">
- console_tx_char
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_tx_char</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_tx_char"><font color="#F2853F" style="font-size:24pt"> console_tx_char </font><a class="headerlink" href="#console_tx_char" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static int
- console_tx_char(void *arg)
-</code></pre>
-
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>xx</td>
-<td>explain argument xx</td>
-</tr>
-<tr>
-<td>yy</td>
-<td>explain argument yy</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>List any values returned.
-Error codes?</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Any special feature/special benefit that we want to tout.
-Does it need to be used with some other specific functions?
-Any caveats to be careful about (e.g. high memory requirements).</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<p>Give at least one example of usage.</p>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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/19a9789a/os/modules/console/console_write/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_write/index.html b/os/modules/console/console_write/index.html
index e5295ab..1f20208 100644
--- a/os/modules/console/console_write/index.html
+++ b/os/modules/console/console_write/index.html
@@ -196,7 +196,7 @@
<li><a href="
- ../console_add_char/
+ ../console_blocking_mode/
">Functions</a>
<ul class="current-toc">
@@ -204,14 +204,6 @@
<li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_blocking_mode/">console_blocking_mode</a>
</li>
@@ -220,7 +212,7 @@
<li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
+ <a href="../console_echo/">console_echo</a>
</li>
@@ -236,7 +228,7 @@
<li>
- <a href="../console_printf/">console_printf</a>
+ <a href="../console_is_init/">console_is_init</a>
</li>
@@ -244,23 +236,7 @@
<li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
+ <a href="../console_printf/">console_printf</a>
</li>
@@ -275,22 +251,6 @@
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
<li class="active">
console_write
</li>
[3/3] incubator-mynewt-site git commit: added info on filing bugs
Posted by ad...@apache.org.
added info on filing bugs
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/19a9789a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/19a9789a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/19a9789a
Branch: refs/heads/asf-site
Commit: 19a9789aa78f609019adc044a6ff7da159a02734
Parents: c7a3894
Author: aditihilbert <ad...@runtime.io>
Authored: Tue Mar 1 10:40:48 2016 -0800
Committer: aditihilbert <ad...@runtime.io>
Committed: Tue Mar 1 10:40:48 2016 -0800
----------------------------------------------------------------------
community/index.html | 5 +-
mkdocs/search_index.json | 238 ++------
os/modules/console/console/index.html | 33 +-
os/modules/console/console_add_char/index.html | 533 ------------------
.../console/console_blocking_mode/index.html | 48 +-
.../console/console_blocking_tx/index.html | 534 ------------------
os/modules/console/console_echo/index.html | 505 +++++++++++++++++
os/modules/console/console_init/index.html | 48 +-
os/modules/console/console_is_init/index.html | 476 ++++++++++++++++
os/modules/console/console_printf/index.html | 50 +-
os/modules/console/console_pull_char/index.html | 534 ------------------
.../console/console_pull_char_head/index.html | 546 -------------------
.../console/console_queue_char/index.html | 522 ------------------
os/modules/console/console_read/index.html | 48 +-
os/modules/console/console_rx_char/index.html | 525 ------------------
os/modules/console/console_tx_char/index.html | 525 ------------------
os/modules/console/console_write/index.html | 48 +-
17 files changed, 1054 insertions(+), 4164 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/community/index.html
----------------------------------------------------------------------
diff --git a/community/index.html b/community/index.html
index 59eb5de..2a0af9a 100644
--- a/community/index.html
+++ b/community/index.html
@@ -212,12 +212,13 @@
<div class="container">
<div class="row">
<div class="col-md-12">
- <h2>Issue Tracking</h2>
+ <h2>Bug Submission and Issue Tracking</h2>
<p>Issues, features, improvements, and wish-lists are tracked using the Atlassian JIRA software on Apache Software Foundation:
-
<li>
<a href="https://issues.apache.org/jira/browse/Mynewt/">ASF JIRA</a> </p>
</li>
+ <p>
+ Sign up for an account on JIRA and submit a request to the @dev mailing list for your JIRA username to be added to the Apache Mynewt (MYNEWT) project. You can view the issues on JIRA for the MYNEWT project without an account but you need to log in for reporting a bug, getting a task assigned to you, or updating a ticket. Once you have a JIRA account, log in and report a bug by choosing the "MYNEWT" project, clicking on the "Create" button, and creating a ticket with an appropriate Issue Type (e.g. Bug, Wish).
</div>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/mkdocs/search_index.json
----------------------------------------------------------------------
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
index bb196b7..1bd3c94 100644
--- a/mkdocs/search_index.json
+++ b/mkdocs/search_index.json
@@ -2177,7 +2177,7 @@
},
{
"location": "/os/modules/console/console/",
- "text": "Console\n\n\nThe console is an operating system window where users interact with system programs of the operating system or a console application by entering text input (typically from a keyboard) and reading text output (typically on the computer terminal or monitor). The text written on the console brings some information and is a sequence of characters sent by the OS or programs running on the OS. \n\n\nSupport is currently available for console access via the serial port on the hardware board.\n\n\nDescription\n\n\nIn the Mynewt OS, the console library comes in two versions:\n\n\n\n\nfull - containing the full implementation\n\n\nstub - containing stubs for the API\n\n\n\n\nBoth of these have \negg.yml\n file which states that they provide the \nconsole\n API. If an egg uses this API, it should list \nconsole\n as a requirement.\nFor example, the shell egg is defined by the following egg.yml file:\n\n\n egg.name: libs/shell \n egg.vers: 0.1\n egg.de
ps:\n - libs/os\n - libs/util\n egg.reqs:\n - console\n egg.identities:\n - SHELL \n\n\n\n\nThe project .yml file decides which version of the console egg should be included. \nIf project requires the full console capability it lists dependency \nlibs/console/full\n in its egg.yml file. \nOn the other hand, a project may not have a physical console (e.g. a UART port to connect a terminal to) but may have a dependency on an egg that has console capability. In that case you would use a console stub. Another example would be the bootloader project where we want to keep the size of the image small. It includes the \nlibs/os\n egg that can print out messages on a console (e.g. if there is a hard fault) and the \nlibs/util\n egg that uses full console (but only if SHELL is present to provide a CLI). However, we do not want to use any console I/O capability in this particular bootloader project to keep the size small. We simply use the console stub instead
and the egg.yml file for the project boot egg looks like the following:\n\n\n project.name: boot\n project.identities: bootloader\n project.eggs:\n - libs/os\n - libs/bootutil\n - libs/nffs\n - libs/console/stub\n - libs/util \n\n\n\n\nConsole has 2 modes for transmit; blocking and non-blocking mode. Usually the non-blocking mode is the active one; the output buffer is drained by getting TX completion interrupts from hardware, and more data is added based on these interrupts.\nBlocking mode is used when we don't want TX completion interrupts. This is used when system crashes, and we still want to output info related to that crash.\n\n\nData structures\n\n\nConsole interaction is intrinsically composed of two unidirectional systems. The console implementation uses two ring buffers containing input (receive) and output (transmit) characters, respectively. Read and write operations on the console_ring structure are managed by labeling the re
ad location indicator the \ncr_tail\n and the write location indicator the \ncr_head\n. The console ring length is variable and is specified as the \ncr_size\n member of the data structure. \ncr_buf\n is the pointer to the actual array of data contained.\n\n\nstruct console_ring {\n 32 uint8_t cr_head;\n 33 uint8_t cr_tail;\n 34 uint8_t cr_size;\n 35 uint8_t _pad;\n 36 uint8_t *cr_buf;\n 37 }\n\n\n\n\nstruct console_tty {\n 40 struct console_ring ct_tx;\n 41 uint8_t ct_tx_buf[CONSOLE_TX_BUF_SZ]; /* must be after console_ring */\n 42 struct console_ring ct_rx;\n 43 uint8_t ct_rx_buf[CONSOLE_RX_BUF_SZ]; /* must be after console_ring */\n 44 console_rx_cb ct_rx_cb; /* callback that input is ready */\n 45 console_write_char ct_write_char;\n 46 } console_tty\n\n\n\n\nList of Functions\n\n\nThe functions available in console are:\n\n\n\n\nconsole_add_char\n\n\nconsole_blocking_mode\n\n\nconsole_blocking_tx\n\n\nconsole_init\n\n\
nconsole_printf\n\n\nconsole_pull_char\n\n\nconsole_pull_char_head\n\n\nconsole_queue_char\n\n\nconsole_read\n\n\nconsole_rx_char\n\n\nconsole_tx_char\n\n\nconsole_write",
+ "text": "Console\n\n\nThe console is an operating system window where users interact with system programs of the operating system or a console application by entering text input (typically from a keyboard) and reading text output (typically on the computer terminal or monitor). The text written on the console brings some information and is a sequence of characters sent by the OS or programs running on the OS. \n\n\nSupport is currently available for console access via the serial port on the hardware board.\n\n\nDescription\n\n\nIn the Mynewt OS, the console library comes in two versions:\n\n\n\n\nfull - containing the full implementation\n\n\nstub - containing stubs for the API\n\n\n\n\nBoth of these have \negg.yml\n file which states that they provide the \nconsole\n API. If an egg uses this API, it should list \nconsole\n as a requirement.\nFor example, the shell egg is defined by the following egg.yml file:\n\n\n egg.name: libs/shell \n egg.vers: 0.1\n egg.de
ps:\n - libs/os\n - libs/util\n egg.reqs:\n - console\n egg.identities:\n - SHELL \n\n\n\n\nThe project .yml file decides which version of the console egg should be included. \nIf project requires the full console capability it lists dependency \nlibs/console/full\n in its egg.yml file. \nOn the other hand, a project may not have a physical console (e.g. a UART port to connect a terminal to) but may have a dependency on an egg that has console capability. In that case you would use a console stub. Another example would be the bootloader project where we want to keep the size of the image small. It includes the \nlibs/os\n egg that can print out messages on a console (e.g. if there is a hard fault) and the \nlibs/util\n egg that uses full console (but only if SHELL is present to provide a CLI). However, we do not want to use any console I/O capability in this particular bootloader project to keep the size small. We simply use the console stub instead
and the egg.yml file for the project boot egg looks like the following:\n\n\n project.name: boot\n project.identities: bootloader\n project.eggs:\n - libs/os\n - libs/bootutil\n - libs/nffs\n - libs/console/stub\n - libs/util \n\n\n\n\nConsole has 2 modes for transmit; blocking and non-blocking mode. Usually the non-blocking mode is the active one; the output buffer is drained by getting TX completion interrupts from hardware, and more data is added based on these interrupts.\nBlocking mode is used when we don't want TX completion interrupts. This is used when system crashes, and we still want to output info related to that crash.\n\n\nConsole, by default, echoes everything it receives back. Terminal programs expect this, and is a way for the user to know that the console is connected and responsive. Whether echoing happens or not can be controlled programmatically.\n\n\nData structures\n\n\nN/A\n\n\nList of Functions\n\n\nThe functions a
vailable in console are:\n\n\n\n\nconsole_blocking_mode\n\n\nconsole_echo\n\n\nconsole_init\n\n\nconsole_is_init\n\n\nconsole_printf\n\n\nconsole_read\n\n\nconsole_write",
"title": "Overview"
},
{
@@ -2187,50 +2187,20 @@
},
{
"location": "/os/modules/console/console/#description",
- "text": "In the Mynewt OS, the console library comes in two versions: full - containing the full implementation stub - containing stubs for the API Both of these have egg.yml file which states that they provide the console API. If an egg uses this API, it should list console as a requirement.\nFor example, the shell egg is defined by the following egg.yml file: egg.name: libs/shell \n egg.vers: 0.1\n egg.deps:\n - libs/os\n - libs/util\n egg.reqs:\n - console\n egg.identities:\n - SHELL The project .yml file decides which version of the console egg should be included. \nIf project requires the full console capability it lists dependency libs/console/full in its egg.yml file. \nOn the other hand, a project may not have a physical console (e.g. a UART port to connect a terminal to) but may have a dependency on an egg that has console capability. In that case you would use a console stub. Another example would be t
he bootloader project where we want to keep the size of the image small. It includes the libs/os egg that can print out messages on a console (e.g. if there is a hard fault) and the libs/util egg that uses full console (but only if SHELL is present to provide a CLI). However, we do not want to use any console I/O capability in this particular bootloader project to keep the size small. We simply use the console stub instead and the egg.yml file for the project boot egg looks like the following: project.name: boot\n project.identities: bootloader\n project.eggs:\n - libs/os\n - libs/bootutil\n - libs/nffs\n - libs/console/stub\n - libs/util Console has 2 modes for transmit; blocking and non-blocking mode. Usually the non-blocking mode is the active one; the output buffer is drained by getting TX completion interrupts from hardware, and more data is added based on these interrupts.\nBlocking mode is used when we don't want TX completi
on interrupts. This is used when system crashes, and we still want to output info related to that crash.",
+ "text": "In the Mynewt OS, the console library comes in two versions: full - containing the full implementation stub - containing stubs for the API Both of these have egg.yml file which states that they provide the console API. If an egg uses this API, it should list console as a requirement.\nFor example, the shell egg is defined by the following egg.yml file: egg.name: libs/shell \n egg.vers: 0.1\n egg.deps:\n - libs/os\n - libs/util\n egg.reqs:\n - console\n egg.identities:\n - SHELL The project .yml file decides which version of the console egg should be included. \nIf project requires the full console capability it lists dependency libs/console/full in its egg.yml file. \nOn the other hand, a project may not have a physical console (e.g. a UART port to connect a terminal to) but may have a dependency on an egg that has console capability. In that case you would use a console stub. Another example would be t
he bootloader project where we want to keep the size of the image small. It includes the libs/os egg that can print out messages on a console (e.g. if there is a hard fault) and the libs/util egg that uses full console (but only if SHELL is present to provide a CLI). However, we do not want to use any console I/O capability in this particular bootloader project to keep the size small. We simply use the console stub instead and the egg.yml file for the project boot egg looks like the following: project.name: boot\n project.identities: bootloader\n project.eggs:\n - libs/os\n - libs/bootutil\n - libs/nffs\n - libs/console/stub\n - libs/util Console has 2 modes for transmit; blocking and non-blocking mode. Usually the non-blocking mode is the active one; the output buffer is drained by getting TX completion interrupts from hardware, and more data is added based on these interrupts.\nBlocking mode is used when we don't want TX completi
on interrupts. This is used when system crashes, and we still want to output info related to that crash. Console, by default, echoes everything it receives back. Terminal programs expect this, and is a way for the user to know that the console is connected and responsive. Whether echoing happens or not can be controlled programmatically.",
"title": "Description"
},
{
"location": "/os/modules/console/console/#data-structures",
- "text": "Console interaction is intrinsically composed of two unidirectional systems. The console implementation uses two ring buffers containing input (receive) and output (transmit) characters, respectively. Read and write operations on the console_ring structure are managed by labeling the read location indicator the cr_tail and the write location indicator the cr_head . The console ring length is variable and is specified as the cr_size member of the data structure. cr_buf is the pointer to the actual array of data contained. struct console_ring {\n 32 uint8_t cr_head;\n 33 uint8_t cr_tail;\n 34 uint8_t cr_size;\n 35 uint8_t _pad;\n 36 uint8_t *cr_buf;\n 37 } struct console_tty {\n 40 struct console_ring ct_tx;\n 41 uint8_t ct_tx_buf[CONSOLE_TX_BUF_SZ]; /* must be after console_ring */\n 42 struct console_ring ct_rx;\n 43 uint8_t ct_rx_buf[CONSOLE_RX_BUF_SZ]; /* must be after console_ring */\n 44 console_rx_
cb ct_rx_cb; /* callback that input is ready */\n 45 console_write_char ct_write_char;\n 46 } console_tty",
+ "text": "N/A",
"title": "Data structures"
},
{
"location": "/os/modules/console/console/#list-of-functions",
- "text": "The functions available in console are: console_add_char console_blocking_mode console_blocking_tx console_init console_printf console_pull_char console_pull_char_head console_queue_char console_read console_rx_char console_tx_char console_write",
+ "text": "The functions available in console are: console_blocking_mode console_echo console_init console_is_init console_printf console_read console_write",
"title": "List of Functions"
},
{
- "location": "/os/modules/console/console_add_char/",
- "text": "console_add_char\n\n\n static void\n console_add_char(struct console_ring *cr, char ch)\n\n\n\n\nAdds a character to the console ring buffer. When you store an item in the buffer you store it at the head location, and the head advances to the next location.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\n*cr\n\n\nPointer to a console ring data structure whose \ncr_head\n variable is to be set to the second argument in this function call\n\n\n\n\n\n\nch\n\n\nCharacter to be inserted to the ring\n\n\n\n\n\n\n\n\nReturned values\n\n\nNone\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nAdd a new line character to the output (transmit) buffer.\n\n\nvoid\ntask()\n{\n struct console_ring *tx = \nct-\nct_tx;\n\n console_add_char(tx, '\\n');\n}",
- "title": "console_add_char"
- },
- {
- "location": "/os/modules/console/console_add_char/#console_add_char",
- "text": "static void\n console_add_char(struct console_ring *cr, char ch) Adds a character to the console ring buffer. When you store an item in the buffer you store it at the head location, and the head advances to the next location.",
- "title": " console_add_char"
- },
- {
- "location": "/os/modules/console/console_add_char/#arguments",
- "text": "Arguments Description *cr Pointer to a console ring data structure whose cr_head variable is to be set to the second argument in this function call ch Character to be inserted to the ring",
- "title": "Arguments"
- },
- {
- "location": "/os/modules/console/console_add_char/#returned-values",
- "text": "None",
- "title": "Returned values"
- },
- {
- "location": "/os/modules/console/console_add_char/#notes",
- "text": "Any special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).",
- "title": "Notes"
- },
- {
- "location": "/os/modules/console/console_add_char/#example",
- "text": "Add a new line character to the output (transmit) buffer. void\ntask()\n{\n struct console_ring *tx = ct- ct_tx;\n\n console_add_char(tx, '\\n');\n}",
- "title": "Example"
- },
- {
"location": "/os/modules/console/console_blocking_mode/",
"text": "console_blocking_mode \n\n\n void\n console_blocking_mode(void)\n\n\n\n\nCalls the console_blocking_tx function to flush the buffered console output (transmit) queue. The function OS_ENTER_CRITICAL() is called to disable interrupts and OS_EXIT_CRITICAL() is called to enable interrupts back again once the buffer is flushed.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\n\n\n\n\n\n\n\n\nnone\n\n\n\n\n\n\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nHere is an example of calling \nconsole_blocking_mode\n and printing crash information from an assert to help debug.\n\n\nvoid\n_assert_func(const char *file, int line, const char *func, const char *e)\n{\n int sr;\n\n OS_ENTER_CRITICAL(sr);\n (void)sr;\n os_die_line =
line;\n os_die_module = file;\n console_blocking_mode();\n console_printf(\nAssert %s; failed in %s:%d\\n\n, e ? e : \n, file, line);\n system_reset();\n}",
"title": "console_blocking_mode"
@@ -2261,33 +2231,33 @@
"title": "Example"
},
{
- "location": "/os/modules/console/console_blocking_tx/",
- "text": "console_blocking_tx \n\n\n static void\n console_blocking_tx(char ch)\n\n\n\n\nCalls the hal function hal_uart_blocking_tx to transmit a byte to the console over UART in a blocking mode until the entire character has been sent. Hence it must be called with interrupts disabled. It is used when printing diagnostic output from system crash.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nch\n\n\n8 bit character (data) to be transmitted\n\n\n\n\n\n\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nHere is an example of a console output queue being flushed.\n\n\nvoid\ntask(void)\n{\n struct console_tty *ct = \nconsole_tty;\n uint8_t byte;\n\n while (ct-\nct_tx.cr_head != ct-\nct_tx.cr_tail)
{\n byte = console_pull_char(\nct-\nct_tx);\n console_blocking_tx(byte);\n }\n}",
- "title": "console_blocking_tx"
+ "location": "/os/modules/console/console_echo/",
+ "text": "console_echo \n\n\n void console_echo(int on)\n\n\n\n\nControls whether echoing is on or off for the console. When echoing is on, all characters received are transmitted back.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\n\n\n\n\n\n\n\n\non\n\n\n\n\n\n\n\n\nReturned values\n\n\nNone\n\n\nNotes\n\n\nExample\n\n\nHere is an example where newtmgr protocol handler is controlling whether echoing is on or off. Newtmgr, the tool, turns echoing off when it's transmitting large chunks of data to target board.\n\n\nstatic int\nnmgr_def_console_echo(struct nmgr_jbuf *njb)\n{\n int echo_on = 1;\n int rc;\n struct json_attr_t attrs[3] = {\n [0] = {\n .attribute = \necho\n,\n .type = t_integer,\n .addr.integer = \necho_on,\n .nodefault = 1\n },\n [1] = {\n .attribute = NULL\n }\n };\n\n rc = json_read_object(\nnjb-\nnjb_buf, attrs);\n if (rc) {\n return OS_EINVAL;\n
}\n\n if (echo_on) {\n console_echo(1);\n } else {\n console_echo(0);\n }\n return (0);\n}",
+ "title": "console_echo"
},
{
- "location": "/os/modules/console/console_blocking_tx/#console_blocking_tx",
- "text": "static void\n console_blocking_tx(char ch) Calls the hal function hal_uart_blocking_tx to transmit a byte to the console over UART in a blocking mode until the entire character has been sent. Hence it must be called with interrupts disabled. It is used when printing diagnostic output from system crash.",
- "title": " console_blocking_tx "
+ "location": "/os/modules/console/console_echo/#console_echo",
+ "text": "void console_echo(int on) Controls whether echoing is on or off for the console. When echoing is on, all characters received are transmitted back.",
+ "title": " console_echo "
},
{
- "location": "/os/modules/console/console_blocking_tx/#arguments",
- "text": "Arguments Description ch 8 bit character (data) to be transmitted",
+ "location": "/os/modules/console/console_echo/#arguments",
+ "text": "Arguments on",
"title": "Arguments"
},
{
- "location": "/os/modules/console/console_blocking_tx/#returned-values",
- "text": "List any values returned.\nError codes?",
+ "location": "/os/modules/console/console_echo/#returned-values",
+ "text": "None",
"title": "Returned values"
},
{
- "location": "/os/modules/console/console_blocking_tx/#notes",
- "text": "Any special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).",
+ "location": "/os/modules/console/console_echo/#notes",
+ "text": "",
"title": "Notes"
},
{
- "location": "/os/modules/console/console_blocking_tx/#example",
- "text": "Here is an example of a console output queue being flushed. void\ntask(void)\n{\n struct console_tty *ct = console_tty;\n uint8_t byte;\n\n while (ct- ct_tx.cr_head != ct- ct_tx.cr_tail) {\n byte = console_pull_char( ct- ct_tx);\n console_blocking_tx(byte);\n }\n}",
+ "location": "/os/modules/console/console_echo/#example",
+ "text": "Here is an example where newtmgr protocol handler is controlling whether echoing is on or off. Newtmgr, the tool, turns echoing off when it's transmitting large chunks of data to target board. static int\nnmgr_def_console_echo(struct nmgr_jbuf *njb)\n{\n int echo_on = 1;\n int rc;\n struct json_attr_t attrs[3] = {\n [0] = {\n .attribute = echo ,\n .type = t_integer,\n .addr.integer = echo_on,\n .nodefault = 1\n },\n [1] = {\n .attribute = NULL\n }\n };\n\n rc = json_read_object( njb- njb_buf, attrs);\n if (rc) {\n return OS_EINVAL;\n }\n\n if (echo_on) {\n console_echo(1);\n } else {\n console_echo(0);\n }\n return (0);\n}",
"title": "Example"
},
{
@@ -2321,123 +2291,63 @@
"title": "Example"
},
{
- "location": "/os/modules/console/console_printf/",
- "text": "console_printf\n\n\n void\n console_printf(const char *fmt, ...)\n\n\n\n\nWrites a formatted message instead of raw output to the console. It first composes a C string containing text specified as arguments to the function or containing the elements in the variable argument list passed to it using snprintf or vsnprintf, respectively. It then uses function \nconsole_write\n to output the formatted data (messages) on the console.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nfmt\n\n\nPointer to C string that contains a format string that follows the same specifications as format in printf. The string is printed to console.\n\n\n\n\n\n\n...\n\n\nDepending on the format string, the function may expect either a sequence of additional arguments to be used to replace a format specifier in the format string or a variable arguments list. va_list is a special type defined in \n in stdarg.h.\n\n\n\n\n\n\n\n\nReturned values\n\n\nNone
\n\n\nNotes\n\n\nWhile \nconsole_printf\n, with its well understood formatting options in C, is more convenient and easy on the eyes than the raw output of \nconsole_write\n, the associated code size is considerably larger.\n\n\nExample\n\n\nExample #1:\n\n\nchar adv_data_buf[32];\n\nvoid\ntask()\n{\n char adv_data_buf[32];\n\n console_printf(\n%s\n, adv_data_buf);\n}\n\n\n\n\nExample #2:\n\n\nstruct exception_frame {\n uint32_t r0;\n uint32_t r1;\n\nstruct trap_frame {\n struct exception_frame *ef;\n uint32_t r2;\n uint32_t r3;\n};\n\nvoid\ntask(struct trap_frame *tf)\n{\n console_printf(\n r0:%8.8x r1:%8.8x\n, tf-\nef-\nr0, tf-\nef-\nr1);\n console_printf(\n r8:%8.8x r9:%8.8x\n, tf-\nr2, tf-\nr3);\n}",
- "title": "console_printf"
+ "location": "/os/modules/console/console_is_init/",
+ "text": "console_is_init \n\n\n int console_is_init(void)\n\n\n\n\nReturns whether console has been initialized or not. I.e. whether \nconsole_init()\n has been called yet.\n\n\nArguments\n\n\nNone\n\n\nReturned values\n\n\nReturns 1 if console has been initialized. 0 if not.\n\n\nNotes\n\n\nExample\n\n\nstatic int\nlog_console_append(struct log *log, void *buf, int len)\n{\n ....\n\n if (!console_is_init()) {\n return (0);\n }\n\n /* print log entry to console */\n ....\n}",
+ "title": "console_is_init"
},
{
- "location": "/os/modules/console/console_printf/#console_printf",
- "text": "void\n console_printf(const char *fmt, ...) Writes a formatted message instead of raw output to the console. It first composes a C string containing text specified as arguments to the function or containing the elements in the variable argument list passed to it using snprintf or vsnprintf, respectively. It then uses function console_write to output the formatted data (messages) on the console.",
- "title": " console_printf"
+ "location": "/os/modules/console/console_is_init/#console_is_init",
+ "text": "int console_is_init(void) Returns whether console has been initialized or not. I.e. whether console_init() has been called yet.",
+ "title": " console_is_init "
},
{
- "location": "/os/modules/console/console_printf/#arguments",
- "text": "Arguments Description fmt Pointer to C string that contains a format string that follows the same specifications as format in printf. The string is printed to console. ... Depending on the format string, the function may expect either a sequence of additional arguments to be used to replace a format specifier in the format string or a variable arguments list. va_list is a special type defined in in stdarg.h.",
- "title": "Arguments"
- },
- {
- "location": "/os/modules/console/console_printf/#returned-values",
+ "location": "/os/modules/console/console_is_init/#arguments",
"text": "None",
- "title": "Returned values"
- },
- {
- "location": "/os/modules/console/console_printf/#notes",
- "text": "While console_printf , with its well understood formatting options in C, is more convenient and easy on the eyes than the raw output of console_write , the associated code size is considerably larger.",
- "title": "Notes"
- },
- {
- "location": "/os/modules/console/console_printf/#example",
- "text": "Example #1: char adv_data_buf[32];\n\nvoid\ntask()\n{\n char adv_data_buf[32];\n\n console_printf( %s , adv_data_buf);\n} Example #2: struct exception_frame {\n uint32_t r0;\n uint32_t r1;\n\nstruct trap_frame {\n struct exception_frame *ef;\n uint32_t r2;\n uint32_t r3;\n};\n\nvoid\ntask(struct trap_frame *tf)\n{\n console_printf( r0:%8.8x r1:%8.8x , tf- ef- r0, tf- ef- r1);\n console_printf( r8:%8.8x r9:%8.8x , tf- r2, tf- r3);\n}",
- "title": "Example"
- },
- {
- "location": "/os/modules/console/console_pull_char/",
- "text": "console_pull_char \n\n\n static uint8_t\n console_pull_char(struct console_ring *cr)\n\n\n\n\nReads (remove) a byte from the console ring buffer. When you read (pull) an item, you read it at the current tail location, and the tail advances to the next position.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\n*cr\n\n\nPointer to the console ring buffer from where a character is to be removed\n\n\n\n\n\n\n\n\nReturned values\n\n\nReturns the character pulled from the ring buffer.\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nRead the characters in the ring buffer into a string.\n\n\nvoid\ntask(struct console_ring *cr, char *str, int cnt)\n{\n for (i = 0; i \n cnt; i++) {\n if (cr-\ncr_head == cr-\ncr_tail) {\n i = -1;\n
break;\n }\n ch = console_pull_char(cr);\n *str++ = ch;\n }\n}",
- "title": "console_pull_char"
- },
- {
- "location": "/os/modules/console/console_pull_char/#console_pull_char",
- "text": "static uint8_t\n console_pull_char(struct console_ring *cr) Reads (remove) a byte from the console ring buffer. When you read (pull) an item, you read it at the current tail location, and the tail advances to the next position.",
- "title": " console_pull_char "
- },
- {
- "location": "/os/modules/console/console_pull_char/#arguments",
- "text": "Arguments Description *cr Pointer to the console ring buffer from where a character is to be removed",
"title": "Arguments"
},
{
- "location": "/os/modules/console/console_pull_char/#returned-values",
- "text": "Returns the character pulled from the ring buffer.",
+ "location": "/os/modules/console/console_is_init/#returned-values",
+ "text": "Returns 1 if console has been initialized. 0 if not.",
"title": "Returned values"
},
{
- "location": "/os/modules/console/console_pull_char/#notes",
- "text": "Any special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).",
+ "location": "/os/modules/console/console_is_init/#notes",
+ "text": "",
"title": "Notes"
},
{
- "location": "/os/modules/console/console_pull_char/#example",
- "text": "Read the characters in the ring buffer into a string. void\ntask(struct console_ring *cr, char *str, int cnt)\n{\n for (i = 0; i cnt; i++) {\n if (cr- cr_head == cr- cr_tail) {\n i = -1;\n break;\n }\n ch = console_pull_char(cr);\n *str++ = ch;\n }\n}",
+ "location": "/os/modules/console/console_is_init/#example",
+ "text": "static int\nlog_console_append(struct log *log, void *buf, int len)\n{\n ....\n\n if (!console_is_init()) {\n return (0);\n }\n\n /* print log entry to console */\n ....\n}",
"title": "Example"
},
{
- "location": "/os/modules/console/console_pull_char_head/",
- "text": "console_pull_char_head \n\n\n static void\n console_pull_char_head(struct console_ring *cr)\n\n\n\n\nRemoves the last character inserted into the ring buffer by moving back the head location and shrinking the ring size by 1.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\ncr\n\n\nPointer to the console ring buffer from which the last inserted character must be deleted\n\n\n\n\n\n\n\n\nReturned values\n\n\nNone\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nIn order to see a character getting deleted when a user hits backspace while typying a command, the following needs to happen in sequence:\n\n\n\n\noutput a backspace (move cursor back one character)\n\n\noutput space (erasing whatever character there was before)\n\n\noutput backspace (move cursor back one
character)\n\n\nremove the previous character from incoming RX queue\n\n\n\n\nThe example below shows console_pull_char_head being used for the last step.\n\n\nvoid\ntask(uint8_t data)\n{\n struct console_tty *ct = (struct console_tty *)arg;\n struct console_ring *tx = \nct-\nct_tx;\n struct console_ring *rx = \nct-\nct_rx;\n\n switch (data) {\n case '\\b':\n console_add_char(tx, '\\b');\n console_add_char(tx, ' ');\n console_add_char(tx, '\\b');\n console_pull_char_head(rx);\n break;\n }\n}",
- "title": "console_pull_char_head"
+ "location": "/os/modules/console/console_printf/",
+ "text": "console_printf\n\n\n void\n console_printf(const char *fmt, ...)\n\n\n\n\nWrites a formatted message instead of raw output to the console. It first composes a C string containing text specified as arguments to the function or containing the elements in the variable argument list passed to it using snprintf or vsnprintf, respectively. It then uses function \nconsole_write\n to output the formatted data (messages) on the console.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nfmt\n\n\nPointer to C string that contains a format string that follows the same specifications as format in printf. The string is printed to console.\n\n\n\n\n\n\n...\n\n\nDepending on the format string, the function may expect either a sequence of additional arguments to be used to replace a format specifier in the format string or a variable arguments list. va_list is a special type defined in \n in stdarg.h.\n\n\n\n\n\n\n\n\nReturned values\n\n\nNone
\n\n\nNotes\n\n\nWhile \nconsole_printf\n, with its well understood formatting options in C, is more convenient and easy on the eyes than the raw output of \nconsole_write\n, the associated code size is considerably larger.\n\n\nExample\n\n\nExample #1:\n\n\nchar adv_data_buf[32];\n\nvoid\ntask()\n{\n char adv_data_buf[32];\n\n console_printf(\n%s\n, adv_data_buf);\n}\n\n\n\n\nExample #2:\n\n\nstruct exception_frame {\n uint32_t r0;\n uint32_t r1;\n\nstruct trap_frame {\n struct exception_frame *ef;\n uint32_t r2;\n uint32_t r3;\n};\n\nvoid\ntask(struct trap_frame *tf)\n{\n console_printf(\n r0:%8.8x r1:%8.8x\n, tf-\nef-\nr0, tf-\nef-\nr1);\n console_printf(\n r8:%8.8x r9:%8.8x\n, tf-\nr2, tf-\nr3);\n}",
+ "title": "console_printf"
},
{
- "location": "/os/modules/console/console_pull_char_head/#console_pull_char_head",
- "text": "static void\n console_pull_char_head(struct console_ring *cr) Removes the last character inserted into the ring buffer by moving back the head location and shrinking the ring size by 1.",
- "title": " console_pull_char_head "
+ "location": "/os/modules/console/console_printf/#console_printf",
+ "text": "void\n console_printf(const char *fmt, ...) Writes a formatted message instead of raw output to the console. It first composes a C string containing text specified as arguments to the function or containing the elements in the variable argument list passed to it using snprintf or vsnprintf, respectively. It then uses function console_write to output the formatted data (messages) on the console.",
+ "title": " console_printf"
},
{
- "location": "/os/modules/console/console_pull_char_head/#arguments",
- "text": "Arguments Description cr Pointer to the console ring buffer from which the last inserted character must be deleted",
+ "location": "/os/modules/console/console_printf/#arguments",
+ "text": "Arguments Description fmt Pointer to C string that contains a format string that follows the same specifications as format in printf. The string is printed to console. ... Depending on the format string, the function may expect either a sequence of additional arguments to be used to replace a format specifier in the format string or a variable arguments list. va_list is a special type defined in in stdarg.h.",
"title": "Arguments"
},
{
- "location": "/os/modules/console/console_pull_char_head/#returned-values",
+ "location": "/os/modules/console/console_printf/#returned-values",
"text": "None",
"title": "Returned values"
},
{
- "location": "/os/modules/console/console_pull_char_head/#notes",
- "text": "Any special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).",
- "title": "Notes"
- },
- {
- "location": "/os/modules/console/console_pull_char_head/#example",
- "text": "In order to see a character getting deleted when a user hits backspace while typying a command, the following needs to happen in sequence: output a backspace (move cursor back one character) output space (erasing whatever character there was before) output backspace (move cursor back one character) remove the previous character from incoming RX queue The example below shows console_pull_char_head being used for the last step. void\ntask(uint8_t data)\n{\n struct console_tty *ct = (struct console_tty *)arg;\n struct console_ring *tx = ct- ct_tx;\n struct console_ring *rx = ct- ct_rx;\n\n switch (data) {\n case '\\b':\n console_add_char(tx, '\\b');\n console_add_char(tx, ' ');\n console_add_char(tx, '\\b');\n console_pull_char_head(rx);\n break;\n }\n}",
- "title": "Example"
- },
- {
- "location": "/os/modules/console/console_queue_char/",
- "text": "console_queue_char \n\n\n static void\n console_queue_char(char ch)\n\n\n\n\nManage the buffer queue before inserting a character into it. If the head of the output (transmit) console ring is right up to its tail, the queue needs to be drained first before any data can be added. Then it uses console_add_char function to add the character.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nch\n\n\nCharacter to be inserted to the queue\n\n\n\n\n\n\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nFunction blocks interrupts as a way of protecting against concurrent access to TX buffer.\n\n\nIf TX buffer is full, the function waits for TX buffer to drain. And the way it does it currently is by calling os_time_delay(). Therefore this function should only be called from within a task context, not from an interrupt handler. We might want to change this...\n\n\nExample\n\n\nInsert example",
- "title": "console_queue_char"
- },
- {
- "location": "/os/modules/console/console_queue_char/#console_queue_char",
- "text": "static void\n console_queue_char(char ch) Manage the buffer queue before inserting a character into it. If the head of the output (transmit) console ring is right up to its tail, the queue needs to be drained first before any data can be added. Then it uses console_add_char function to add the character.",
- "title": " console_queue_char "
- },
- {
- "location": "/os/modules/console/console_queue_char/#arguments",
- "text": "Arguments Description ch Character to be inserted to the queue",
- "title": "Arguments"
- },
- {
- "location": "/os/modules/console/console_queue_char/#returned-values",
- "text": "List any values returned.\nError codes?",
- "title": "Returned values"
- },
- {
- "location": "/os/modules/console/console_queue_char/#notes",
- "text": "Function blocks interrupts as a way of protecting against concurrent access to TX buffer. If TX buffer is full, the function waits for TX buffer to drain. And the way it does it currently is by calling os_time_delay(). Therefore this function should only be called from within a task context, not from an interrupt handler. We might want to change this...",
+ "location": "/os/modules/console/console_printf/#notes",
+ "text": "While console_printf , with its well understood formatting options in C, is more convenient and easy on the eyes than the raw output of console_write , the associated code size is considerably larger.",
"title": "Notes"
},
{
- "location": "/os/modules/console/console_queue_char/#example",
- "text": "Insert example",
+ "location": "/os/modules/console/console_printf/#example",
+ "text": "Example #1: char adv_data_buf[32];\n\nvoid\ntask()\n{\n char adv_data_buf[32];\n\n console_printf( %s , adv_data_buf);\n} Example #2: struct exception_frame {\n uint32_t r0;\n uint32_t r1;\n\nstruct trap_frame {\n struct exception_frame *ef;\n uint32_t r2;\n uint32_t r3;\n};\n\nvoid\ntask(struct trap_frame *tf)\n{\n console_printf( r0:%8.8x r1:%8.8x , tf- ef- r0, tf- ef- r1);\n console_printf( r8:%8.8x r9:%8.8x , tf- r2, tf- r3);\n}",
"title": "Example"
},
{
@@ -2466,66 +2376,6 @@
"title": "Example"
},
{
- "location": "/os/modules/console/console_rx_char/",
- "text": "console_rx_char \n\n\n static int\n console_rx_char(void *arg, uint8_t data)\n\n\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nxx\n\n\nexplain argument xx\n\n\n\n\n\n\nyy\n\n\nexplain argument yy\n\n\n\n\n\n\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nGive at least one example of usage.",
- "title": "console_rx_char"
- },
- {
- "location": "/os/modules/console/console_rx_char/#console_rx_char",
- "text": "static int\n console_rx_char(void *arg, uint8_t data)",
- "title": " console_rx_char "
- },
- {
- "location": "/os/modules/console/console_rx_char/#arguments",
- "text": "Arguments Description xx explain argument xx yy explain argument yy",
- "title": "Arguments"
- },
- {
- "location": "/os/modules/console/console_rx_char/#returned-values",
- "text": "List any values returned.\nError codes?",
- "title": "Returned values"
- },
- {
- "location": "/os/modules/console/console_rx_char/#notes",
- "text": "Any special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).",
- "title": "Notes"
- },
- {
- "location": "/os/modules/console/console_rx_char/#example",
- "text": "Give at least one example of usage.",
- "title": "Example"
- },
- {
- "location": "/os/modules/console/console_tx_char/",
- "text": "console_tx_char \n\n\n static int\n console_tx_char(void *arg)\n\n\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nxx\n\n\nexplain argument xx\n\n\n\n\n\n\nyy\n\n\nexplain argument yy\n\n\n\n\n\n\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nGive at least one example of usage.",
- "title": "console_tx_char"
- },
- {
- "location": "/os/modules/console/console_tx_char/#console_tx_char",
- "text": "static int\n console_tx_char(void *arg)",
- "title": " console_tx_char "
- },
- {
- "location": "/os/modules/console/console_tx_char/#arguments",
- "text": "Arguments Description xx explain argument xx yy explain argument yy",
- "title": "Arguments"
- },
- {
- "location": "/os/modules/console/console_tx_char/#returned-values",
- "text": "List any values returned.\nError codes?",
- "title": "Returned values"
- },
- {
- "location": "/os/modules/console/console_tx_char/#notes",
- "text": "Any special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).",
- "title": "Notes"
- },
- {
- "location": "/os/modules/console/console_tx_char/#example",
- "text": "Give at least one example of usage.",
- "title": "Example"
- },
- {
"location": "/os/modules/console/console_write/",
"text": "console_write \n\n\n void\n console_write(char *str, int cnt)\n\n\n\n\nTransmit characters to console display over serial port.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\n*str\n\n\npointer to the character or packet to be transmitted\n\n\n\n\n\n\ncnt\n\n\nsize of the character or packet\n\n\n\n\n\n\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nAny special feature/special benefit that we want to tout.\nDoes it need to be used with some other specific functions?\nAny caveats to be careful about (e.g. high memory requirements).\n\n\nExample\n\n\nHere is an example of the function being used in an echo command with a newline at the end.\n\n\nstatic int\nshell_echo_cmd(int argc, char **argv)\n{\n int i;\n\n for (i = 1; i \n argc; i++) {\n console_write(argv[i], strlen(argv[i]));\n console_write(\n \n, sizeof(\n \n)-1);\n }\n console_write(\n\\n\n, sizeof(\n\\n\n)-1)
;\n\n return (0);\n}",
"title": "console_write"
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console/index.html b/os/modules/console/console/index.html
index 1d62ac0..fcd1685 100644
--- a/os/modules/console/console/index.html
+++ b/os/modules/console/console/index.html
@@ -196,7 +196,7 @@
<li><a href="
- ../console_add_char/
+ ../console_blocking_mode/
">Functions</a>
</li>
@@ -385,41 +385,18 @@ On the other hand, a project may not have a physical console (e.g. a UART port t
<p>Console has 2 modes for transmit; blocking and non-blocking mode. Usually the non-blocking mode is the active one; the output buffer is drained by getting TX completion interrupts from hardware, and more data is added based on these interrupts.
Blocking mode is used when we don't want TX completion interrupts. This is used when system crashes, and we still want to output info related to that crash.</p>
+<p>Console, by default, echoes everything it receives back. Terminal programs expect this, and is a way for the user to know that the console is connected and responsive. Whether echoing happens or not can be controlled programmatically.</p>
<h2 id="data-structures">Data structures<a class="headerlink" href="#data-structures" title="Permanent link">¶</a></h2>
-<p>Console interaction is intrinsically composed of two unidirectional systems. The console implementation uses two ring buffers containing input (receive) and output (transmit) characters, respectively. Read and write operations on the console_ring structure are managed by labeling the read location indicator the <code>cr_tail</code> and the write location indicator the <code>cr_head</code>. The console ring length is variable and is specified as the <code>cr_size</code> member of the data structure. <code>cr_buf</code> is the pointer to the actual array of data contained.</p>
-<pre><code class="no-highlight">struct console_ring {
- 32 uint8_t cr_head;
- 33 uint8_t cr_tail;
- 34 uint8_t cr_size;
- 35 uint8_t _pad;
- 36 uint8_t *cr_buf;
- 37 }
-</code></pre>
-
-<pre><code class="no-highlight">struct console_tty {
- 40 struct console_ring ct_tx;
- 41 uint8_t ct_tx_buf[CONSOLE_TX_BUF_SZ]; /* must be after console_ring */
- 42 struct console_ring ct_rx;
- 43 uint8_t ct_rx_buf[CONSOLE_RX_BUF_SZ]; /* must be after console_ring */
- 44 console_rx_cb ct_rx_cb; /* callback that input is ready */
- 45 console_write_char ct_write_char;
- 46 } console_tty
-</code></pre>
-
+<p>N/A</p>
<h2 id="list-of-functions">List of Functions<a class="headerlink" href="#list-of-functions" title="Permanent link">¶</a></h2>
<p>The functions available in console are:</p>
<ul>
-<li><a href="../console_add_char/">console_add_char</a></li>
<li><a href="../console_blocking_mode/">console_blocking_mode</a></li>
-<li><a href="../console_blocking_tx/">console_blocking_tx</a></li>
+<li><a href="../console_echo/">console_echo</a></li>
<li><a href="../console_init/">console_init</a></li>
+<li><a href="../console_is_init/">console_is_init</a></li>
<li><a href="../console_printf/">console_printf</a></li>
-<li><a href="../console_pull_char/">console_pull_char</a></li>
-<li><a href="../console_pull_char_head/">console_pull_char_head</a></li>
-<li><a href="../console_queue_char/">console_queue_char</a></li>
<li><a href="../console_read/">console_read</a></li>
-<li><a href="../console_rx_char/">console_rx_char</a></li>
-<li><a href="../console_tx_char/">console_tx_char</a></li>
<li><a href="../console_write/">console_write</a></li>
</ul>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_add_char/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_add_char/index.html b/os/modules/console/console_add_char/index.html
deleted file mode 100644
index 3610e19..0000000
--- a/os/modules/console/console_add_char/index.html
+++ /dev/null
@@ -1,533 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_add_char/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_add_char - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_add_char">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ./
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li class="active">
- console_add_char
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_add_char</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_add_char"><font color="#F2853F" style="font-size:24pt"> console_add_char</font><a class="headerlink" href="#console_add_char" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static void
- console_add_char(struct console_ring *cr, char ch)
-</code></pre>
-
-<p>Adds a character to the console ring buffer. When you store an item in the buffer you store it at the head location, and the head advances to the next location.</p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>*cr</td>
-<td>Pointer to a console ring data structure whose <code>cr_head</code> variable is to be set to the second argument in this function call</td>
-</tr>
-<tr>
-<td>ch</td>
-<td>Character to be inserted to the ring</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>None</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Any special feature/special benefit that we want to tout.
-Does it need to be used with some other specific functions?
-Any caveats to be careful about (e.g. high memory requirements).</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<p>Add a new line character to the output (transmit) buffer.</p>
-<pre><code class="no-highlight">void
-task()
-{
- struct console_ring *tx = &ct->ct_tx;
-
- console_add_char(tx, '\n');
-}
-</code></pre>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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/19a9789a/os/modules/console/console_blocking_mode/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_blocking_mode/index.html b/os/modules/console/console_blocking_mode/index.html
index df59a1d..d9276b1 100644
--- a/os/modules/console/console_blocking_mode/index.html
+++ b/os/modules/console/console_blocking_mode/index.html
@@ -196,21 +196,13 @@
<li><a href="
- ../console_add_char/
+ ./
">Functions</a>
<ul class="current-toc">
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
<li class="active">
console_blocking_mode
</li>
@@ -220,7 +212,7 @@
<li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
+ <a href="../console_echo/">console_echo</a>
</li>
@@ -236,7 +228,7 @@
<li>
- <a href="../console_printf/">console_printf</a>
+ <a href="../console_is_init/">console_is_init</a>
</li>
@@ -244,23 +236,7 @@
<li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
+ <a href="../console_printf/">console_printf</a>
</li>
@@ -276,22 +252,6 @@
<li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_write/">console_write</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_blocking_tx/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_blocking_tx/index.html b/os/modules/console/console_blocking_tx/index.html
deleted file mode 100644
index bfc925f..0000000
--- a/os/modules/console/console_blocking_tx/index.html
+++ /dev/null
@@ -1,534 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_blocking_tx/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_blocking_tx - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_blocking_tx">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../console_add_char/
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li class="active">
- console_blocking_tx
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_blocking_tx</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_blocking_tx"><font color="#F2853F" style="font-size:24pt"> console_blocking_tx </font><a class="headerlink" href="#console_blocking_tx" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static void
- console_blocking_tx(char ch)
-</code></pre>
-
-<p>Calls the hal function hal_uart_blocking_tx to transmit a byte to the console over UART in a blocking mode until the entire character has been sent. Hence it must be called with interrupts disabled. It is used when printing diagnostic output from system crash.</p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>ch</td>
-<td>8 bit character (data) to be transmitted</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>List any values returned.
-Error codes?</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Any special feature/special benefit that we want to tout.
-Does it need to be used with some other specific functions?
-Any caveats to be careful about (e.g. high memory requirements).</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<p>Here is an example of a console output queue being flushed.</p>
-<pre><code class="no-highlight">void
-task(void)
-{
- struct console_tty *ct = &console_tty;
- uint8_t byte;
-
- while (ct->ct_tx.cr_head != ct->ct_tx.cr_tail) {
- byte = console_pull_char(&ct->ct_tx);
- console_blocking_tx(byte);
- }
-}
-</code></pre>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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
[2/3] incubator-mynewt-site git commit: added info on filing bugs
Posted by ad...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_echo/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_echo/index.html b/os/modules/console/console_echo/index.html
new file mode 100644
index 0000000..5e55324
--- /dev/null
+++ b/os/modules/console/console_echo/index.html
@@ -0,0 +1,505 @@
+<!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">
+
+
+ <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_echo/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>console_echo - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.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='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">
+
+ <!-- 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', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="console_echo">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- 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>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../get_started/introduction/
+">Apache Mynewt Manual</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../../../get_started/introduction/">Introduction</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../../../get_started/project1/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">Tutorials</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+
+
+ ../../../core_os/mynewt_os/
+
+
+">Manual</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+
+
+ ../../../core_os/mynewt_os/
+
+">OS Core</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../console/
+">Console</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../console/">Overview</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../console_blocking_mode/
+">Functions</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../console_blocking_mode/">console_blocking_mode</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ console_echo
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_init/">console_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_is_init/">console_is_init</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_printf/">console_printf</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_read/">console_read</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_write/">console_write</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../shell/shell/
+">Shell</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../bootloader/bootloader/
+">Bootloader</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../filesystem/">File System Abstraction</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../../nffs/">Newtron Flash File System</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../../testutil/testutil/
+">Test Utilities</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../imgmgr/imgmgr/
+">Image Manager</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../baselibc/">Baselibc library</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../../elua/elua/
+">Embedded Lua</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../json/json/
+">JSON</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newt/newt_intro/
+">Newt Tool Manual</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Newt Manager Manual</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Console »</li>
+
+
+
+ <li>Functions »</li>
+
+
+
+ <li>console_echo</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+ <h2 id="console_echo"><font color="#F2853F" style="font-size:24pt"> console_echo </font><a class="headerlink" href="#console_echo" title="Permanent link">¶</a></h2>
+<pre><code class="no-highlight"> void console_echo(int on)
+</code></pre>
+
+<p>Controls whether echoing is on or off for the console. When echoing is on, all characters received are transmitted back.</p>
+<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<table>
+<thead>
+<tr>
+<th>Arguments</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>on</td>
+</tr>
+</tbody>
+</table>
+<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<p>None</p>
+<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
+<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<p>Here is an example where newtmgr protocol handler is controlling whether echoing is on or off. Newtmgr, the tool, turns echoing off when it's transmitting large chunks of data to target board.</p>
+<pre><code class="no-highlight">static int
+nmgr_def_console_echo(struct nmgr_jbuf *njb)
+{
+ int echo_on = 1;
+ int rc;
+ struct json_attr_t attrs[3] = {
+ [0] = {
+ .attribute = "echo",
+ .type = t_integer,
+ .addr.integer = &echo_on,
+ .nodefault = 1
+ },
+ [1] = {
+ .attribute = NULL
+ }
+ };
+
+ rc = json_read_object(&njb->njb_buf, attrs);
+ if (rc) {
+ return OS_EINVAL;
+ }
+
+ if (echo_on) {
+ console_echo(1);
+ } else {
+ console_echo(0);
+ }
+ return (0);
+}
+</code></pre>
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <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>
+ </div>
+ </div>
+</footer>
+ </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/19a9789a/os/modules/console/console_init/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_init/index.html b/os/modules/console/console_init/index.html
index 4ae8ab4..425b46b 100644
--- a/os/modules/console/console_init/index.html
+++ b/os/modules/console/console_init/index.html
@@ -196,7 +196,7 @@
<li><a href="
- ../console_add_char/
+ ../console_blocking_mode/
">Functions</a>
<ul class="current-toc">
@@ -204,14 +204,6 @@
<li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_blocking_mode/">console_blocking_mode</a>
</li>
@@ -220,7 +212,7 @@
<li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
+ <a href="../console_echo/">console_echo</a>
</li>
@@ -236,7 +228,7 @@
<li>
- <a href="../console_printf/">console_printf</a>
+ <a href="../console_is_init/">console_is_init</a>
</li>
@@ -244,23 +236,7 @@
<li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
+ <a href="../console_printf/">console_printf</a>
</li>
@@ -276,22 +252,6 @@
<li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_write/">console_write</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_is_init/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_is_init/index.html b/os/modules/console/console_is_init/index.html
new file mode 100644
index 0000000..c48fd29
--- /dev/null
+++ b/os/modules/console/console_is_init/index.html
@@ -0,0 +1,476 @@
+<!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">
+
+
+ <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_is_init/">
+ <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+ <title>console_is_init - Apache Mynewt</title>
+
+ <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link href="../../../../css/font-awesome-4.0.3.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='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">
+
+ <!-- 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', 'mynewt.incubator.apache.org');
+ ga('send', 'pageview');
+ </script>
+
+ </head>
+
+
+ <body class="console_is_init">
+
+
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="logo-container">
+ <img src="/img/logo.svg">
+ </div>
+ <div class="container-fluid">
+ <!-- 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>
+ <a href="/">Home</a>
+ </li>
+ <li>
+ <a href="/documentation/">Docs</a>
+ </li>
+ <li>
+ <a href="/download/">Download</a>
+ </li>
+ <li>
+ <a href="/community/">Community</a>
+ </li>
+ <li>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</div>
+
+ <div class="container-fluid">
+
+ <div class="row sm-extra-padding">
+ <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+ <div class="sidebar-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 class="form-group">
+ <input type="text" name="q" placeholder="Search documentation" />
+ <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="nav bs-sidenav">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../get_started/introduction/
+">Apache Mynewt Manual</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../../../get_started/introduction/">Introduction</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../../../get_started/project1/
+">Get Started</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../../get_acclimated/project2/
+">Tutorials</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+
+
+
+
+ ../../../core_os/mynewt_os/
+
+
+">Manual</a>
+
+ <ul class="current-toc">
+
+
+
+ <li><a href="
+
+
+ ../../../core_os/mynewt_os/
+
+">OS Core</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../console/
+">Console</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../console/">Overview</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../console_blocking_mode/
+">Functions</a>
+
+ <ul class="current-toc">
+
+
+
+ <li>
+ <a href="../console_blocking_mode/">console_blocking_mode</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_echo/">console_echo</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_init/">console_init</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ console_is_init
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_printf/">console_printf</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_read/">console_read</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../console_write/">console_write</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../shell/shell/
+">Shell</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../bootloader/bootloader/
+">Bootloader</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../filesystem/">File System Abstraction</a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="../../nffs/">Newtron Flash File System</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../../testutil/testutil/
+">Test Utilities</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../imgmgr/imgmgr/
+">Image Manager</a>
+
+ </li>
+
+
+
+
+ <li>
+ <a href="../../baselibc/">Baselibc library</a>
+ </li>
+
+
+
+
+
+ <li><a href="
+ ../../elua/elua/
+">Embedded Lua</a>
+
+ </li>
+
+
+
+
+ <li><a href="
+ ../../json/json/
+">JSON</a>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newt/newt_intro/
+">Newt Tool Manual</a>
+
+ </li>
+
+
+
+
+
+
+ <li><a href="
+ ../../../../newtmgr/overview/
+">Newt Manager Manual</a>
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="show-sidebar-container">
+ <button class="show-sidebar">Docs Menu</button>
+ </div>
+
+ <div class="col-md-9 documentation-viewer" role="main">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="../../../..">Docs</a> »</li>
+
+
+
+ <li>Console »</li>
+
+
+
+ <li>Functions »</li>
+
+
+
+ <li>console_is_init</li>
+ <li class="wy-breadcrumbs-aside">
+
+ </li>
+ </ul>
+ <hr/>
+</div>
+
+ <h2 id="console_is_init"><font color="#F2853F" style="font-size:24pt"> console_is_init </font><a class="headerlink" href="#console_is_init" title="Permanent link">¶</a></h2>
+<pre><code class="no-highlight"> int console_is_init(void)
+</code></pre>
+
+<p>Returns whether console has been initialized or not. I.e. whether <em>console_init()</em> has been called yet.</p>
+<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
+<p>None</p>
+<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
+<p>Returns 1 if console has been initialized. 0 if not.</p>
+<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
+<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
+<pre><code class="no-highlight">static int
+log_console_append(struct log *log, void *buf, int len)
+{
+ ....
+
+ if (!console_is_init()) {
+ return (0);
+ }
+
+ /* print log entry to console */
+ ....
+}
+</code></pre>
+
+ </div>
+ </div>
+
+ <div class="row">
+ <footer>
+ <div class="row">
+ <div class="col-md-12">
+
+ <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+
+ </div>
+ </div>
+ <div class="copyright-logos">
+ <div class="row">
+ <div class="col-xs-6 text-right">
+ <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+ </div>
+ <div class="col-xs-6 text-left">
+ <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-12">
+ <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>
+ </div>
+ </div>
+</footer>
+ </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/19a9789a/os/modules/console/console_printf/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_printf/index.html b/os/modules/console/console_printf/index.html
index 3239648..077c76f 100644
--- a/os/modules/console/console_printf/index.html
+++ b/os/modules/console/console_printf/index.html
@@ -196,7 +196,7 @@
<li><a href="
- ../console_add_char/
+ ../console_blocking_mode/
">Functions</a>
<ul class="current-toc">
@@ -204,14 +204,6 @@
<li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_blocking_mode/">console_blocking_mode</a>
</li>
@@ -220,7 +212,7 @@
<li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
+ <a href="../console_echo/">console_echo</a>
</li>
@@ -235,32 +227,16 @@
- <li class="active">
- console_printf
- </li>
-
-
-
-
-
<li>
- <a href="../console_pull_char/">console_pull_char</a>
+ <a href="../console_is_init/">console_is_init</a>
</li>
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
+ <li class="active">
+ console_printf
</li>
@@ -276,22 +252,6 @@
<li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_write/">console_write</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_pull_char/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_pull_char/index.html b/os/modules/console/console_pull_char/index.html
deleted file mode 100644
index 47d8d05..0000000
--- a/os/modules/console/console_pull_char/index.html
+++ /dev/null
@@ -1,534 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_pull_char/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_pull_char - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_pull_char">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../console_add_char/
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li class="active">
- console_pull_char
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_pull_char</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_pull_char"><font color="#F2853F" style="font-size:24pt"> console_pull_char </font><a class="headerlink" href="#console_pull_char" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static uint8_t
- console_pull_char(struct console_ring *cr)
-</code></pre>
-
-<p>Reads (remove) a byte from the console ring buffer. When you read (pull) an item, you read it at the current tail location, and the tail advances to the next position.</p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>*cr</td>
-<td>Pointer to the console ring buffer from where a character is to be removed</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>Returns the character pulled from the ring buffer.</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Any special feature/special benefit that we want to tout.
-Does it need to be used with some other specific functions?
-Any caveats to be careful about (e.g. high memory requirements).</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<p>Read the characters in the ring buffer into a string.</p>
-<pre><code class="no-highlight">void
-task(struct console_ring *cr, char *str, int cnt)
-{
- for (i = 0; i < cnt; i++) {
- if (cr->cr_head == cr->cr_tail) {
- i = -1;
- break;
- }
- ch = console_pull_char(cr);
- *str++ = ch;
- }
-}
-</code></pre>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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/19a9789a/os/modules/console/console_pull_char_head/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_pull_char_head/index.html b/os/modules/console/console_pull_char_head/index.html
deleted file mode 100644
index 9235aaa..0000000
--- a/os/modules/console/console_pull_char_head/index.html
+++ /dev/null
@@ -1,546 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_pull_char_head/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_pull_char_head - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_pull_char_head">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../console_add_char/
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li class="active">
- console_pull_char_head
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_pull_char_head</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_pull_char_head"><font color="#F2853F" style="font-size:24pt"> console_pull_char_head </font><a class="headerlink" href="#console_pull_char_head" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static void
- console_pull_char_head(struct console_ring *cr)
-</code></pre>
-
-<p>Removes the last character inserted into the ring buffer by moving back the head location and shrinking the ring size by 1.</p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>cr</td>
-<td>Pointer to the console ring buffer from which the last inserted character must be deleted</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>None</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Any special feature/special benefit that we want to tout.
-Does it need to be used with some other specific functions?
-Any caveats to be careful about (e.g. high memory requirements).</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<p>In order to see a character getting deleted when a user hits backspace while typying a command, the following needs to happen in sequence:</p>
-<ul>
-<li>output a backspace (move cursor back one character)</li>
-<li>output space (erasing whatever character there was before)</li>
-<li>output backspace (move cursor back one character)</li>
-<li>remove the previous character from incoming RX queue</li>
-</ul>
-<p>The example below shows console_pull_char_head being used for the last step.</p>
-<pre><code class="no-highlight">void
-task(uint8_t data)
-{
- struct console_tty *ct = (struct console_tty *)arg;
- struct console_ring *tx = &ct->ct_tx;
- struct console_ring *rx = &ct->ct_rx;
-
- switch (data) {
- case '\b':
- console_add_char(tx, '\b');
- console_add_char(tx, ' ');
- console_add_char(tx, '\b');
- console_pull_char_head(rx);
- break;
- }
-}
-
-</code></pre>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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/19a9789a/os/modules/console/console_queue_char/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_queue_char/index.html b/os/modules/console/console_queue_char/index.html
deleted file mode 100644
index 1a6685e..0000000
--- a/os/modules/console/console_queue_char/index.html
+++ /dev/null
@@ -1,522 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_queue_char/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_queue_char - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_queue_char">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../console_add_char/
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li class="active">
- console_queue_char
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_queue_char</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_queue_char"><font color="#F2853F" style="font-size:24pt"> console_queue_char </font><a class="headerlink" href="#console_queue_char" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static void
- console_queue_char(char ch)
-</code></pre>
-
-<p>Manage the buffer queue before inserting a character into it. If the head of the output (transmit) console ring is right up to its tail, the queue needs to be drained first before any data can be added. Then it uses console_add_char function to add the character.</p>
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>ch</td>
-<td>Character to be inserted to the queue</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>List any values returned.
-Error codes?</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Function blocks interrupts as a way of protecting against concurrent access to TX buffer.</p>
-<p>If TX buffer is full, the function waits for TX buffer to drain. And the way it does it currently is by calling os_time_delay(). Therefore this function should only be called from within a task context, not from an interrupt handler. We might want to change this...</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<pre><code class="no-highlight">Insert example
-</code></pre>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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/19a9789a/os/modules/console/console_read/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_read/index.html b/os/modules/console/console_read/index.html
index 0e144e6..bb73656 100644
--- a/os/modules/console/console_read/index.html
+++ b/os/modules/console/console_read/index.html
@@ -196,7 +196,7 @@
<li><a href="
- ../console_add_char/
+ ../console_blocking_mode/
">Functions</a>
<ul class="current-toc">
@@ -204,14 +204,6 @@
<li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_blocking_mode/">console_blocking_mode</a>
</li>
@@ -220,7 +212,7 @@
<li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
+ <a href="../console_echo/">console_echo</a>
</li>
@@ -236,7 +228,7 @@
<li>
- <a href="../console_printf/">console_printf</a>
+ <a href="../console_is_init/">console_is_init</a>
</li>
@@ -244,23 +236,7 @@
<li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
+ <a href="../console_printf/">console_printf</a>
</li>
@@ -276,22 +252,6 @@
<li>
- <a href="../console_rx_char/">console_rx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
<a href="../console_write/">console_write</a>
</li>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/19a9789a/os/modules/console/console_rx_char/index.html
----------------------------------------------------------------------
diff --git a/os/modules/console/console_rx_char/index.html b/os/modules/console/console_rx_char/index.html
deleted file mode 100644
index 491d51f..0000000
--- a/os/modules/console/console_rx_char/index.html
+++ /dev/null
@@ -1,525 +0,0 @@
-<!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">
-
-
- <link rel="canonical" href="http://mynewt.apache.org/os/modules/console/console_rx_char/">
- <link rel="shortcut icon" href="../../../../img/favicon.ico">
-
- <title>console_rx_char - Apache Mynewt</title>
-
- <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link href="../../../../css/font-awesome-4.0.3.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='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">
-
- <!-- 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', 'mynewt.incubator.apache.org');
- ga('send', 'pageview');
- </script>
-
- </head>
-
-
- <body class="console_rx_char">
-
-
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="logo-container">
- <img src="/img/logo.svg">
- </div>
- <div class="container-fluid">
- <!-- 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>
- <a href="/">Home</a>
- </li>
- <li>
- <a href="/documentation/">Docs</a>
- </li>
- <li>
- <a href="/download/">Download</a>
- </li>
- <li>
- <a href="/community/">Community</a>
- </li>
- <li>
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</div>
-
- <div class="container-fluid">
-
- <div class="row sm-extra-padding">
- <div class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
- <div class="sidebar-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 class="form-group">
- <input type="text" name="q" placeholder="Search documentation" />
- <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
- </div>
- </form>
- </div>
- </div>
- <ul class="nav bs-sidenav">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li><a href="
- ../../../get_started/introduction/
-">Apache Mynewt Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../../../get_started/introduction/">Introduction</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../../get_started/project1/
-">Get Started</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../../get_acclimated/project2/
-">Tutorials</a>
-
- </li>
-
-
-
-
- <li><a href="
-
-
-
-
- ../../../core_os/mynewt_os/
-
-
-">Manual</a>
-
- <ul class="current-toc">
-
-
-
- <li><a href="
-
-
- ../../../core_os/mynewt_os/
-
-">OS Core</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../console/
-">Console</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console/">Overview</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../console_add_char/
-">Functions</a>
-
- <ul class="current-toc">
-
-
-
- <li>
- <a href="../console_add_char/">console_add_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_mode/">console_blocking_mode</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_blocking_tx/">console_blocking_tx</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_init/">console_init</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_printf/">console_printf</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char/">console_pull_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_pull_char_head/">console_pull_char_head</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_queue_char/">console_queue_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_read/">console_read</a>
- </li>
-
-
-
-
-
- <li class="active">
- console_rx_char
- </li>
-
-
-
-
-
- <li>
- <a href="../console_tx_char/">console_tx_char</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../console_write/">console_write</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
- <li><a href="
- ../../shell/shell/
-">Shell</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../bootloader/bootloader/
-">Bootloader</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../filesystem/">File System Abstraction</a>
- </li>
-
-
-
-
-
- <li>
- <a href="../../nffs/">Newtron Flash File System</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../testutil/testutil/
-">Test Utilities</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../imgmgr/imgmgr/
-">Image Manager</a>
-
- </li>
-
-
-
-
- <li>
- <a href="../../baselibc/">Baselibc library</a>
- </li>
-
-
-
-
-
- <li><a href="
- ../../elua/elua/
-">Embedded Lua</a>
-
- </li>
-
-
-
-
- <li><a href="
- ../../json/json/
-">JSON</a>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newt/newt_intro/
-">Newt Tool Manual</a>
-
- </li>
-
-
-
-
-
-
- <li><a href="
- ../../../../newtmgr/overview/
-">Newt Manager Manual</a>
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="show-sidebar-container">
- <button class="show-sidebar">Docs Menu</button>
- </div>
-
- <div class="col-md-9 documentation-viewer" role="main">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
- <li><a href="../../../..">Docs</a> »</li>
-
-
-
- <li>Console »</li>
-
-
-
- <li>Functions »</li>
-
-
-
- <li>console_rx_char</li>
- <li class="wy-breadcrumbs-aside">
-
- </li>
- </ul>
- <hr/>
-</div>
-
- <h2 id="console_rx_char"><font color="#F2853F" style="font-size:24pt"> console_rx_char </font><a class="headerlink" href="#console_rx_char" title="Permanent link">¶</a></h2>
-<pre><code class="no-highlight"> static int
- console_rx_char(void *arg, uint8_t data)
-</code></pre>
-
-<h4 id="arguments">Arguments<a class="headerlink" href="#arguments" title="Permanent link">¶</a></h4>
-<table>
-<thead>
-<tr>
-<th>Arguments</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>xx</td>
-<td>explain argument xx</td>
-</tr>
-<tr>
-<td>yy</td>
-<td>explain argument yy</td>
-</tr>
-</tbody>
-</table>
-<h4 id="returned-values">Returned values<a class="headerlink" href="#returned-values" title="Permanent link">¶</a></h4>
-<p>List any values returned.
-Error codes?</p>
-<h4 id="notes">Notes<a class="headerlink" href="#notes" title="Permanent link">¶</a></h4>
-<p>Any special feature/special benefit that we want to tout.
-Does it need to be used with some other specific functions?
-Any caveats to be careful about (e.g. high memory requirements).</p>
-<h4 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h4>
-<p>Give at least one example of usage.</p>
-
- </div>
- </div>
-
- <div class="row">
- <footer>
- <div class="row">
- <div class="col-md-12">
-
- <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-
- </div>
- </div>
- <div class="copyright-logos">
- <div class="row">
- <div class="col-xs-6 text-right">
- <img src="/img/apache-feather.png" alt="Apache" title="Apache">
- </div>
- <div class="col-xs-6 text-left">
- <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <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>
- </div>
- </div>
-</footer>
- </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