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/01/14 00:52:51 UTC
incubator-mynewt-site git commit: code syntax highlighting removed
for event_queue doc except one example
Repository: incubator-mynewt-site
Updated Branches:
refs/heads/master 2e215108b -> 770ff4003
code syntax highlighting removed for event_queue doc except one example
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/770ff400
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/770ff400
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/770ff400
Branch: refs/heads/master
Commit: 770ff4003786c49a1c9dbe8e3ec3de34560aa033
Parents: 2e21510
Author: aditihilbert <ad...@runtime.io>
Authored: Wed Jan 13 15:52:43 2016 -0800
Committer: aditihilbert <ad...@runtime.io>
Committed: Wed Jan 13 15:52:43 2016 -0800
----------------------------------------------------------------------
docs/os/event_queue.md | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/770ff400/docs/os/event_queue.md
----------------------------------------------------------------------
diff --git a/docs/os/event_queue.md b/docs/os/event_queue.md
index b849e02..04f0d7a 100644
--- a/docs/os/event_queue.md
+++ b/docs/os/event_queue.md
@@ -23,7 +23,6 @@ Note that os_callout subsystem assumes that event queue is used as the wakeup me
## Data structures
-<code>
```no-highlight
struct os_event {
uint8_t ev_queued;
@@ -32,7 +31,6 @@ struct os_event {
STAILQ_ENTRY(os_event) ev_next;
};
```
-</code>
| Element | Description |
|---------|-------------|
@@ -41,14 +39,14 @@ struct os_event {
| ev_arg | Can be used further as input to task processing this event |
| ev_next | Linkage attaching this event to an event queue |
-<code>
+
```no-highlight
struct os_eventq {
struct os_task *evq_task;
STAILQ_HEAD(, os_event) evq_list;
};
```
-</code>
+
| Element | Description |
|---------|-------------|
@@ -101,8 +99,8 @@ Usually done at subsystem init time; before OS has been started, and before inte
<Add text to set up the context for the example here>
This initializes event queue used by newtmgr task.
-<code>
-```no-highlight
+
+```c
struct os_eventq g_nmgr_evq;
int
@@ -115,7 +113,6 @@ nmgr_task_init(uint8_t prio, os_stack_t *stack_ptr, uint16_t stack_len)
/* initialization continues here */
}
```
-</code>
---------------------
@@ -237,7 +234,6 @@ Will return with a pointer to first *struct event* which is in the queue.
#### Example
-<Add text to set up the context for the example here>
Main loop of an example task.
```no-highlight