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/12/21 01:16:32 UTC

incubator-mynewt-site git commit: Forgot the task Handler This closes #136

Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop a1475526d -> 6a3585eb9


Forgot the task Handler
This closes #136


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/6a3585eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/6a3585eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/6a3585eb

Branch: refs/heads/develop
Commit: 6a3585eb9080bd97e60d5aea0de90b0f1fea40c8
Parents: a147552
Author: David G. Simmons <sa...@mac.com>
Authored: Tue Dec 20 08:58:44 2016 -0500
Committer: aditihilbert <ad...@runtime.io>
Committed: Tue Dec 20 17:06:58 2016 -0800

----------------------------------------------------------------------
 docs/os/tutorials/blinky_console.md | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6a3585eb/docs/os/tutorials/blinky_console.md
----------------------------------------------------------------------
diff --git a/docs/os/tutorials/blinky_console.md b/docs/os/tutorials/blinky_console.md
index d637fd6..f3fd9ff 100644
--- a/docs/os/tutorials/blinky_console.md
+++ b/docs/os/tutorials/blinky_console.md
@@ -88,7 +88,23 @@ os_eventq_dflt_set(&sys_evq);
 ```
 
 This will initialize the task, initialize the event queue, and then set the new event queue as
-the default event queue.        
+the default event queue.       
+
+Finally, we need to add the task handler for the event queue:
+
+```c
+/**
+ * This task serves as a container for the shell and newtmgr packages.  These
+ * packages enqueue timer events when they need this task to do work.
+ */
+static void
+sysevq_handler(void *arg)
+{
+    while (1) {
+        os_eventq_run(&sys_evq);
+    }
+}
+```
 
 ### Build targets