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/02/19 18:18:43 UTC

[1/2] incubator-mynewt-site git commit: adding more function pages for bootloader, testutil, json, and image manager

Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master d253eed6b -> 87e9d34c3


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell.md b/docs/modules/shell.md
deleted file mode 100644
index 0febb4f..0000000
--- a/docs/modules/shell.md
+++ /dev/null
@@ -1,159 +0,0 @@
-# Shell
-
-The shell is the program which puts up a prompt for a command, processes commands, and returns output. Interacting with the console of a device is done using a shell program.
-
-
-## Description
-
-Shell processes console input one line at a time. Eggs can register handlers for their commands. Shell parses the input, matches it against the set of registered commands, and then calls the handler it finds.
-
-A few commands are currently available in the shell - `tasks`, `log`, and `stat stat`. A $ prompt sign will be coming soon!
-
-Create a sim target to check out these commands available in shell.
-
-```no-highlight
-user@~/dev/larva$ newt target create blinky_sim
-Creating target blinky_sim
-Target blinky_sim successfully created!
-user@~/dev/larva$ newt target set blinky_sim name=blinky_sim
-Target blinky_sim successfully set name to blinky_sim
-user@~/dev/larva$ newt target set blinky_sim arch=sim
-Target blinky_sim successfully set arch to sim
-user@~/dev/larva$ newt target set blinky_sim project=blinky
-Target blinky_sim successfully set project to blinky
-user@~/dev/larva$ newt target set blinky_sim bsp=hw/bsp/native
-Target blinky_sim successfully set bsp to hw/bsp/native
-user@~/dev/larva$ newt target set blinky_sim compiler_def=debug
-Target blinky_sim successfully set compiler_def to debug
-user@~/dev/larva$ newt target set blinky_sim compiler=sim
-Target blinky_sim successfully set compiler to sim
-user@~/dev/larva$ newt target show
-blinky_sim
-	arch: sim
-	bsp: hw/bsp/native
-	compiler: sim
-	compiler_def: debug
-	name: blinky_sim
-	project: blinky
-user@~/dev/larva$ newt target build blinky_sim
-Building target blinky_sim (project = blinky)
-Compiling case.c
-Compiling suite.c
-Compiling testutil.c
-..
-..
-Building project blinky
-Linking blinky.elf
-Successfully run!
-
-user@~/dev/larva$ ./project/blinky/bin/blinky_sim/blinky.elf
-uart0 at /dev/ttys005
-
-```
-
-Open up a new terminal to run minicom, a text-based serial port control and terminal emulation program. Set device name to the serial port of the target. 
-
-```no-highlight
-user@~$ minicom -D /dev/ttys005
-Welcome to minicom 2.7
-
-OPTIONS: 
-Compiled on Nov 24 2015, 16:14:21.
-Port /dev/ttys005, 11:32:17
-
-Press Meta-Z for help on special keys
-
-log 
-174578:[0] bla
-174578:[0] bab
-
-tasks
-217809:6 tasks: 
-217809:  shell (prio: 3, nw: 0, flags: 0x0, ssize: 0, cswcnt: 59, tot_run_time: 0ms)
-217840:  idle (prio: 255, nw: 0, flags: 0x0, ssize: 0, cswcnt: 18763, tot_run_time: 217809ms)
-217878:  uart_poller (prio: 0, nw: 217819, flags: 0x0, ssize: 0, cswcnt: 18667, tot_run_time: 0ms)
-217923:  task1 (prio: 1, nw: 218710, flags: 0x0, ssize: 0, cswcnt: 218, tot_run_time: 0ms)
-217953:  os_sanity (prio: 254, nw: 218710, flags: 0x0, ssize: 0, cswcnt: 218, tot_run_time: 0ms)
-218010:  task2 (prio: 2, nw: 217709, flags: 0x3, ssize: 0, cswcnt: 218, tot_run_time: 0ms)
-
-stat stat
-229881:s0: 1
-
-```
-
-
-## Data structures
-
-Replace this with the list of data structures used, why, any neat features
-
-## List of Functions
-
-<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
-
-The functions available in this OS feature are:
-
-* [shell_cmd_register](#shell_cmd_register)
-* add the rest
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> shell_cmd_register </font>
-
-```no-highlight
-    int 
-    shell_cmd_register(struct shell_cmd *sc, char *cmd, shell_cmd_func_t func)
-```
-
-Register a shell command. When shell reads a line of input which starts with `cmd`, it calls the handler `func`. Caller must allocate data structure `sc`. Shell internally links this to it's list of command handlers.
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| sc |  Pointer to data structure shell egg uses to store info about the registered command |
-| cmd |  Command getting registered  |
-| func |  Function to call when command is received from console  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-Shell splits the arguments following the command into an array of character pointers, and passes these to registered handler. The function will be called in shell task's context, so the command handler should look out for possible issues due to concurrency.
-
-#### Example
-
-Here is FS registering command for 'ls'.
-
-```no-highlight
-static struct shell_cmd fs_ls_struct;
-
-static int
-fs_ls_cmd(int argc, char **argv)
-{
-    /* XXX do some stuff */
-    console_printf("%d files\n", file_cnt);
-    return 0;
-}
-
-void
-fs_cli_init(void)
-{
-    int rc;
-
-    rc = shell_cmd_register(&fs_ls_struct, "ls", fs_ls_cmd);
-    if (rc != 0) {
-        return;
-    }
-}
-
-```
-
----------------------
-

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell.md b/docs/modules/shell/shell.md
new file mode 100644
index 0000000..db575bc
--- /dev/null
+++ b/docs/modules/shell/shell.md
@@ -0,0 +1,115 @@
+# Shell
+
+The shell is the program which puts up a prompt for a command, processes commands, and returns output. Interacting with the console of a device is done using a shell program.
+
+
+## Description
+
+Shell processes console input one line at a time. Eggs can register handlers for their commands. Shell parses the input, matches it against the set of registered commands, and then calls the handler it finds.
+
+A few commands are currently available in the shell - `tasks`, `log`, and `stat stat`. A $ prompt sign will be coming soon!
+
+Create a sim target to check out these commands available in shell.
+
+```no-highlight
+user@~/dev/larva$ newt target create blinky_sim
+Creating target blinky_sim
+Target blinky_sim successfully created!
+user@~/dev/larva$ newt target set blinky_sim name=blinky_sim
+Target blinky_sim successfully set name to blinky_sim
+user@~/dev/larva$ newt target set blinky_sim arch=sim
+Target blinky_sim successfully set arch to sim
+user@~/dev/larva$ newt target set blinky_sim project=blinky
+Target blinky_sim successfully set project to blinky
+user@~/dev/larva$ newt target set blinky_sim bsp=hw/bsp/native
+Target blinky_sim successfully set bsp to hw/bsp/native
+user@~/dev/larva$ newt target set blinky_sim compiler_def=debug
+Target blinky_sim successfully set compiler_def to debug
+user@~/dev/larva$ newt target set blinky_sim compiler=sim
+Target blinky_sim successfully set compiler to sim
+user@~/dev/larva$ newt target show
+blinky_sim
+	arch: sim
+	bsp: hw/bsp/native
+	compiler: sim
+	compiler_def: debug
+	name: blinky_sim
+	project: blinky
+user@~/dev/larva$ newt target build blinky_sim
+Building target blinky_sim (project = blinky)
+Compiling case.c
+Compiling suite.c
+Compiling testutil.c
+..
+..
+Building project blinky
+Linking blinky.elf
+Successfully run!
+
+user@~/dev/larva$ ./project/blinky/bin/blinky_sim/blinky.elf
+uart0 at /dev/ttys005
+
+```
+
+Open up a new terminal to run minicom, a text-based serial port control and terminal emulation program. Set device name to the serial port of the target. 
+
+```no-highlight
+user@~$ minicom -D /dev/ttys005
+Welcome to minicom 2.7
+
+OPTIONS: 
+Compiled on Nov 24 2015, 16:14:21.
+Port /dev/ttys005, 11:32:17
+
+Press Meta-Z for help on special keys
+
+log 
+174578:[0] bla
+174578:[0] bab
+
+tasks
+217809:6 tasks: 
+217809:  shell (prio: 3, nw: 0, flags: 0x0, ssize: 0, cswcnt: 59, tot_run_time: 0ms)
+217840:  idle (prio: 255, nw: 0, flags: 0x0, ssize: 0, cswcnt: 18763, tot_run_time: 217809ms)
+217878:  uart_poller (prio: 0, nw: 217819, flags: 0x0, ssize: 0, cswcnt: 18667, tot_run_time: 0ms)
+217923:  task1 (prio: 1, nw: 218710, flags: 0x0, ssize: 0, cswcnt: 218, tot_run_time: 0ms)
+217953:  os_sanity (prio: 254, nw: 218710, flags: 0x0, ssize: 0, cswcnt: 218, tot_run_time: 0ms)
+218010:  task2 (prio: 2, nw: 217709, flags: 0x3, ssize: 0, cswcnt: 218, tot_run_time: 0ms)
+
+stat stat
+229881:s0: 1
+
+```
+
+
+## Data structures
+
+Replace this with the list of data structures used, why, any neat features
+
+## List of Functions
+
+<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
+
+The functions available in this OS feature are:
+
+* [shell_cmd](shell_cmd.md)
+* [shell_cmd_list_lock](shell_cmd_list_lock.md)
+* [shell_cmd_list_unlock](shell_cmd_list_unlock.md)
+* [shell_cmd_register](shell_cmd_register.md)
+* [shell_console_rx_cb](shell_console_rx_cb.md)
+* [shell_echo_cmd](shell_echo_cmd.md)
+* [shell_help_cmd](shell_help_cmd.md)
+* [shell_nlip_input_register](shell_nlip_input_register.md)
+* [shell_nlip_mqueue_process](shell_nlip_mqueue_process.md)
+* [shell_nlip_mtx](shell_nlip_mtx.md)
+* [shell_nlip_output](shell_nlip_output.md)
+* [shell_nlip_process](shell_nlip_process.md)
+* [shell_os_mpool_display_cmd](shell_os_mpool_display_cmd.md)
+* [shell_os_tasks_display_cmd](shell_os_tasks_display_cmd.md)
+* [shell_process_command](shell_process_command.md)
+* [shell_read_console](shell_read_console.md)
+* [shell_task_func](shell_task_func.md)
+* [shell_task_init](shell_task_init.md)
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_cmd.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_cmd.md b/docs/modules/shell/shell_cmd.md
new file mode 100644
index 0000000..4aad702
--- /dev/null
+++ b/docs/modules/shell/shell_cmd.md
@@ -0,0 +1,39 @@
+## <font color="F2853F" style="font-size:24pt"> shell_cmd </font>
+
+```no-highlight
+    static int 
+    shell_cmd(char *cmd, char **argv, int argc)
+```
+
+<Put description here>
+
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| arg1 |  description |
+| arg2 |  description |
+| arg3 |  description |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes 
+
+What to look out for, special cases, things to consider
+
+#### Example
+
+
+
+```no-highlight
+
+   give an example
+
+``` 
+
+---------------------
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_cmd_list_lock.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_cmd_list_lock.md b/docs/modules/shell/shell_cmd_list_lock.md
new file mode 100644
index 0000000..44977cb
--- /dev/null
+++ b/docs/modules/shell/shell_cmd_list_lock.md
@@ -0,0 +1,39 @@
+## <font color="F2853F" style="font-size:24pt"> shell_cmd_list_lock </font>
+
+```no-highlight
+    static int 
+    shell_cmd_list_lock(void)
+```
+
+<Put description here>
+
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| arg1 |  description |
+| arg2 |  description |
+| arg3 |  description |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes 
+
+What to look out for, special cases, things to consider
+
+#### Example
+
+
+
+```no-highlight
+
+    give an example
+    
+``` 
+
+---------------------
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_cmd_list_unlock.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_cmd_list_unlock.md b/docs/modules/shell/shell_cmd_list_unlock.md
new file mode 100644
index 0000000..6604294
--- /dev/null
+++ b/docs/modules/shell/shell_cmd_list_unlock.md
@@ -0,0 +1,38 @@
+## <font color="F2853F" style="font-size:24pt"> shell_cmd_list_unlock </font>
+
+```no-highlight
+    static int 
+    shell_cmd_list_unlock(void)
+```
+
+<Put description here>
+
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| arg1 |  description |
+| arg2 |  description |
+| arg3 |  description |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes 
+
+What to look out for, special cases, things to consider
+
+#### Example
+
+
+
+```no-highlight
+
+    give an example
+    
+``` 
+
+---------------------
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_cmd_register.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_cmd_register.md b/docs/modules/shell/shell_cmd_register.md
new file mode 100644
index 0000000..9d2b3d6
--- /dev/null
+++ b/docs/modules/shell/shell_cmd_register.md
@@ -0,0 +1,46 @@
+```no-highlight
+    int 
+    shell_cmd_register(struct shell_cmd *sc, char *cmd, shell_cmd_func_t func)
+```
+
+Register a shell command. When shell reads a line of input which starts with `cmd`, it calls the handler `func`. Caller must allocate data structure `sc`. Shell internally links this to it's list of command handlers.
+
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| sc |  Pointer to data structure shell egg uses to store info about the registered command |
+| cmd |  Command getting registered  |
+| func |  Function to call when command is received from console  |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes 
+
+Shell splits the arguments following the command into an array of character pointers, and passes these to registered handler. The function will be called in shell task's context, so the command handler should look out for possible issues due to concurrency.
+
+#### Example
+
+Here is FS registering command for 'ls'.
+
+```no-highlight
+static struct shell_cmd fs_ls_struct;
+
+void
+fs_cli_init(void)
+{
+    int rc;
+
+    rc = shell_cmd_register(&fs_ls_struct, "ls", fs_ls_cmd);
+    if (rc != 0) {
+        return;
+    }
+}
+
+```
+
+---------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_console_rx_cb.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_console_rx_cb.md b/docs/modules/shell/shell_console_rx_cb.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_echo_cmd.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_echo_cmd.md b/docs/modules/shell/shell_echo_cmd.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_help_cmd.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_help_cmd.md b/docs/modules/shell/shell_help_cmd.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_nlip_input_register.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_nlip_input_register.md b/docs/modules/shell/shell_nlip_input_register.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_nlip_mqueue_process.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_nlip_mqueue_process.md b/docs/modules/shell/shell_nlip_mqueue_process.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_nlip_mtx.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_nlip_mtx.md b/docs/modules/shell/shell_nlip_mtx.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_nlip_output.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_nlip_output.md b/docs/modules/shell/shell_nlip_output.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_nlip_process.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_nlip_process.md b/docs/modules/shell/shell_nlip_process.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_os_mpool_display_cmd.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_os_mpool_display_cmd.md b/docs/modules/shell/shell_os_mpool_display_cmd.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_os_tasks_display_cmd.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_os_tasks_display_cmd.md b/docs/modules/shell/shell_os_tasks_display_cmd.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_process_command.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_process_command.md b/docs/modules/shell/shell_process_command.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_read_console.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_read_console.md b/docs/modules/shell/shell_read_console.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_task_func.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_task_func.md b/docs/modules/shell/shell_task_func.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shell/shell_task_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/shell/shell_task_init.md b/docs/modules/shell/shell_task_init.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgmgr_module_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgmgr_module_init.md b/docs/modules/shelltest/imgmgr_module_init.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_boot_read.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_boot_read.md b/docs/modules/shelltest/imgr_boot_read.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_boot_write.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_boot_write.md b/docs/modules/shelltest/imgr_boot_write.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_file_download.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_file_download.md b/docs/modules/shelltest/imgr_file_download.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_file_upload.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_file_upload.md b/docs/modules/shelltest/imgr_file_upload.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_list.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_list.md b/docs/modules/shelltest/imgr_list.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_noop.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_noop.md b/docs/modules/shelltest/imgr_noop.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_read_file.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_read_file.md b/docs/modules/shelltest/imgr_read_file.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_read_main.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_read_main.md b/docs/modules/shelltest/imgr_read_main.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_read_test.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_read_test.md b/docs/modules/shelltest/imgr_read_test.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_read_ver.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_read_ver.md b/docs/modules/shelltest/imgr_read_ver.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_upload.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_upload.md b/docs/modules/shelltest/imgr_upload.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_ver_jsonstr.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_ver_jsonstr.md b/docs/modules/shelltest/imgr_ver_jsonstr.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_ver_parse.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_ver_parse.md b/docs/modules/shelltest/imgr_ver_parse.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_ver_str.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_ver_str.md b/docs/modules/shelltest/imgr_ver_str.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/imgr_write_file.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/imgr_write_file.md b/docs/modules/shelltest/imgr_write_file.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/shelltest/shelltest.md
----------------------------------------------------------------------
diff --git a/docs/modules/shelltest/shelltest.md b/docs/modules/shelltest/shelltest.md
new file mode 100644
index 0000000..45535b5
--- /dev/null
+++ b/docs/modules/shelltest/shelltest.md
@@ -0,0 +1,92 @@
+# Console
+
+
+The 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. 
+
+Support is currently available for console access via the serial port on the hardware board.
+
+
+## Description
+
+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.
+For example, the shell egg is defined by the following egg.yml file:
+```no-highlight
+    egg.name: libs/shell 
+    egg.vers: 0.1
+    egg.deps:
+        - libs/os
+        - libs/util
+    egg.reqs:
+        - console
+    egg.identities:
+        - SHELL 
+```
+The project .yml file decides which version of the console egg should be included. 
+If project requires the full console capability it lists dependency `libs/console/full` in its egg.yml file. 
+On 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 `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:
+```no-highlight
+    project.name: boot
+    project.identities: bootloader
+    project.eggs:
+        - libs/os
+        - libs/bootutil
+        - libs/nffs
+        - libs/console/stub
+        - 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.
+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.
+
+## Data structures
+
+
+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.
+
+
+```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 }
+```
+
+
+```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
+```
+
+## List of Functions
+The functions available in shelltest are:
+
+* [imgmgr_module_init](imgmgr_module_init.md)
+* [imgr_boot_read](imgr_boot_read.md)
+* [imgr_boot_write](imgr_boot_write.md)
+* [imgr_file_download](imgr_file_download.md)
+* [imgr_file_upload](imgr_file_upload.md)
+* [imgr_list](imgr_list.md)
+* [imgr_noop](imgr_noop.md)
+* [imgr_read_file](imgr_read_file.md)
+* [imgr_read_main](imgr_read_main.md)
+* [imgr_read_test](imgr_read_test.md)
+* [imgr_read_ver](imgr_read_ver.md)
+* [imgr_upload](imgr_upload.md)
+* [imgr_ver_jsonstr](imgr_ver_jsonstr.md)
+* [imgr_ver_parse](imgr_ver_parse.md)
+* [imgr_ver_str](imgr_ver_str.md)
+* [imgr_write_file](imgr_write_file.md)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil.md b/docs/modules/testutil.md
deleted file mode 100644
index 78a9575..0000000
--- a/docs/modules/testutil.md
+++ /dev/null
@@ -1,140 +0,0 @@
-# testutil
-
-
-Insert synopsis here
-
-
-## Description
-
-Describe module here, special features, how pieces fit together etc.
-
-## Data structures
-
-Replace this with the list of data structures used, why, any neat features
-
-## List of Functions
-
-<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
-
-The functions available in this OS feature are:
-
-* [tu_init](#tu_init)
-* [tu_restart](#tu_restart)
-* add the rest
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> tu_init </font>
-
-```no-highlight
-    int
-    tu_init(void)
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> tu_restart </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> next_one </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/testutil.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/testutil.md b/docs/modules/testutil/testutil.md
new file mode 100644
index 0000000..821f64b
--- /dev/null
+++ b/docs/modules/testutil/testutil.md
@@ -0,0 +1,38 @@
+# testutil
+
+
+Insert synopsis here
+
+
+## Description
+
+Describe module here, special features, how pieces fit together etc.
+
+## Data structures
+
+Replace this with the list of data structures used, why, any neat features
+
+## List of Functions
+
+<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
+
+The functions available in testutil are:
+
+* [tu_case_abort](tu_case_abort.md)
+* [tu_case_append_assert_msg](tu_case_append_assert_msg.md)
+* [tu_case_append_buf](tu_case_append_buf.md)
+* [tu_case_append_file_info](tu_case_append_file_info.md)
+* [tu_case_append_manual_pass_msg](tu_case_append_manual_pass_msg.md)
+* [tu_case_complete](tu_case_complete.md)
+* [tu_case_fail_assert](tu_case_fail_assert.md)
+* [tu_case_init](tu_case_init.md)
+* [tu_case_pass_manual](tu_case_pass_manual.md)
+* [tu_case_set_name](tu_case_set_name.md)
+* [tu_case_vappend_buf](tu_case_vappend_buf.md)
+* [tu_case_write_fail_buf](tu_case_write_fail_buf.md)
+* [tu_case_write_pass_auto](tu_case_write_pass_auto.md)
+* [tu_case_write_pass_buf](tu_case_write_pass_buf.md)
+* [tu_init](tu_init.md)
+* [tu_restart](tu_restart.md)
+* [tu_suite_init](tu_suite_init.md)
+* [tu_suite_set_name](tu_suite_set_name.md)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_abort.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_abort.md b/docs/modules/testutil/tu_case_abort.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_append_assert_msg.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_append_assert_msg.md b/docs/modules/testutil/tu_case_append_assert_msg.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_append_buf.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_append_buf.md b/docs/modules/testutil/tu_case_append_buf.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_append_file_info.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_append_file_info.md b/docs/modules/testutil/tu_case_append_file_info.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_append_manual_pass_msg.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_append_manual_pass_msg.md b/docs/modules/testutil/tu_case_append_manual_pass_msg.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_complete.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_complete.md b/docs/modules/testutil/tu_case_complete.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_fail_assert.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_fail_assert.md b/docs/modules/testutil/tu_case_fail_assert.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_init.md b/docs/modules/testutil/tu_case_init.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_pass_manual.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_pass_manual.md b/docs/modules/testutil/tu_case_pass_manual.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_set_name.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_set_name.md b/docs/modules/testutil/tu_case_set_name.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_vappend_buf.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_vappend_buf.md b/docs/modules/testutil/tu_case_vappend_buf.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_write_fail_buf.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_write_fail_buf.md b/docs/modules/testutil/tu_case_write_fail_buf.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_write_pass_auto.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_write_pass_auto.md b/docs/modules/testutil/tu_case_write_pass_auto.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_case_write_pass_buf.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_case_write_pass_buf.md b/docs/modules/testutil/tu_case_write_pass_buf.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_init.md b/docs/modules/testutil/tu_init.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_restart.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_restart.md b/docs/modules/testutil/tu_restart.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_suite_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_suite_init.md b/docs/modules/testutil/tu_suite_init.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/testutil/tu_suite_set_name.md
----------------------------------------------------------------------
diff --git a/docs/modules/testutil/tu_suite_set_name.md b/docs/modules/testutil/tu_suite_set_name.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/mkdocs.yml
----------------------------------------------------------------------
diff --git a/mkdocs.yml b/mkdocs.yml
index 3094337..59d5f5a 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -50,15 +50,107 @@ pages:
        - 'console_rx_char': 'modules/console/console_rx_char.md'
        - 'console_tx_char': 'modules/console/console_tx_char.md'
        - 'console_write': 'modules/console/console_write.md'
-    - 'Shell': 'modules/shell.md'
-    - 'Bootloader': 'modules/bootloader.md'
+    - Shell: 
+       - 'shell overview': 'modules/shell/shell.md'
+       - 'shell_cmd': 'modules/shell/shell_cmd.md'
+       - 'shell_cmd_list_lock': 'modules/shell/shell_cmd_list_lock.md'
+       - 'shell_cmd_list_unlock': 'modules/shell/shell_cmd_list_unlock.md'
+       - 'shell_cmd_register': 'modules/shell/shell_cmd_register.md'
+       - 'shell_console_rx_cb': 'modules/shell/shell_console_rx_cb.md'
+       - 'shell_echo_cmd': 'modules/shell/shell_echo_cmd.md'
+       - 'shell_help_cmd': 'modules/shell/shell_help_cmd.md'
+       - 'shell_nlip_input_register': 'modules/shell/shell_nlip_input_register.md'
+       - 'shell_nlip_mqueue_process': 'modules/shell/shell_nlip_mqueue_process.md'
+       - 'shell_nlip_mtx': 'modules/shell/shell_nlip_mtx.md'
+       - 'shell_nlip_output': 'modules/shell/shell_nlip_output.md'
+       - 'shell_nlip_process': 'modules/shell/shell_nlip_process.md'
+       - 'shell_os_mpool_display_cmd': 'modules/shell/shell_os_mpool_display_cmd.md'
+       - 'shell_os_tasks_display_cmd': 'modules/shell/shell_os_tasks_display_cmd.md'
+       - 'shell_process_command': 'modules/shell/shell_process_command.md'
+       - 'shell_read_console': 'modules/shell/shell_read_console.md'
+       - 'shell_task_func': 'modules/shell/shell_task_func.md'
+       - 'shell_task_init': 'modules/shell/shell_task_init.md'
+    - Bootloader: 
+       - 'bootloader overview': 'modules/bootloader/bootloader.md'
+       - 'boot_build_status': 'modules/bootloader/boot_build_status.md'
+       - 'boot_build_status_one': 'modules/bootloader/boot_build_status_one.md'
+       - 'boot_clear_status': 'modules/bootloader/boot_clear_status.md'
+       - 'boot_copy_area': 'modules/bootloader/boot_copy_area.md'
+       - 'boot_copy_image': 'modules/bootloader/boot_copy_image.md'
+       - 'boot_erase_area': 'modules/bootloader/boot_erase_area.md'
+       - 'boot_fill_slot': 'modules/bootloader/boot_fill_slot.md'
+       - 'boot_find_image_area_idx': 'modules/bootloader/boot_find_image_area_idx.md'
+       - 'boot_find_image_part': 'modules/bootloader/boot_find_image_part.md'
+       - 'boot_find_image_slot': 'modules/bootloader/boot_find_image_slot.md'
+       - 'boot_go': 'modules/bootloader/boot_go.md'
+       - 'boot_init_flash': 'modules/bootloader/boot_init_flash.md'
+       - 'boot_move_area': 'modules/bootloader/boot_move_area.md'
+       - 'boot_read_image_header': 'modules/bootloader/boot_read_image_header.md'
+       - 'boot_read_image_headers': 'modules/bootloader/boot_read_image_headers.md'
+       - 'boot_read_status': 'modules/bootloader/boot_read_status.md'
+       - 'boot_select_image_slot': 'modules/bootloader/boot_select_image_slot.md'
+       - 'boot_slot_addr': 'modules/bootloader/boot_slot_addr.md'
+       - 'boot_slot_to_area_idx': 'modules/bootloader/boot_slot_to_area_idx.md'
+       - 'boot_swap_areas': 'modules/bootloader/boot_swap_areas.md'
+       - 'boot_vect_delete_main': 'modules/bootloader/boot_vect_delete_main.md'
+       - 'boot_vect_delete_test': 'modules/bootloader/boot_vect_delete_test.md'
+       - 'boot_vect_read_main': 'modules/bootloader/boot_vect_read_main.md'
+       - 'boot_vect_read_one': 'modules/bootloader/boot_vect_read_one.md'
+       - 'boot_vect_read_test': 'modules/bootloader/boot_vect_read_test.md'
+       - 'boot_write_status': 'modules/bootloader/boot_write_status.md'
     - 'File System Abstraction': 'modules/filesystem.md'
     - 'Newtron Flash File System': 'modules/nffs.md'
-    - 'Test Utilities': 'modules/testutil.md'
-    - 'Image Manager': 'modules/imgmgr.md'
+    - Test Utilities:
+       - 'testutil overview': 'modules/testutil/testutil.md'
+       - 'tu_case_abort': 'modules/testutil/tu_case_abort.md'
+       - 'tu_case_append_assert_msg': 'modules/testutil/tu_case_append_assert_msg.md'
+       - 'tu_case_append_buf': 'modules/testutil/tu_case_append_buf.md'
+       - 'tu_case_append_file_info': 'modules/testutil/tu_case_append_file_info.md'
+       - 'tu_case_append_manual_pass_msg': 'modules/testutil/tu_case_append_manual_pass_msg.md'
+       - 'tu_case_complete': 'modules/testutil/tu_case_complete.md'
+       - 'tu_case_fail_assert': 'modules/testutil/tu_case_fail_assert.md'
+       - 'tu_case_init': 'modules/testutil/tu_case_init.md'
+       - 'tu_case_pass_manual': 'modules/testutil/tu_case_pass_manual.md'
+       - 'tu_case_set_name': 'modules/testutil/tu_case_set_name.md'
+       - 'tu_case_vappend_buf': 'modules/testutil/tu_case_vappend_buf.md'
+       - 'tu_case_write_fail_buf': 'modules/testutil/tu_case_write_fail_buf.md'
+       - 'tu_case_write_pass_auto': 'modules/testutil/tu_case_write_pass_auto.md'
+       - 'tu_case_write_pass_buf': 'modules/testutil/tu_case_write_pass_buf.md'
+       - 'tu_init': 'modules/testutil/tu_init.md'
+       - 'tu_restart': 'modules/testutil/tu_restart.md'
+       - 'tu_suite_init': 'modules/testutil/tu_suite_init.md'
+       - 'tu_suite_set_name': 'modules/testutil/tu_suite_set_name.md'
+    - Image Manager:
+       - 'imgmgr overview': 'modules/imgmgr/imgmgr.md'
+       - 'imgmgr_module_init': 'modules/imgmgr/imgmgr_module_init.md'
+       - 'imgr_boot_read': 'modules/imgmgr/imgr_boot_read.md'
+       - 'imgr_boot_write': 'modules/imgmgr/imgr_boot_write.md'
+       - 'imgr_file_download': 'modules/imgmgr/imgr_file_download.md'
+       - 'imgr_file_upload': 'modules/imgmgr/imgr_file_upload.md'
+       - 'imgr_list': 'modules/imgmgr/imgr_list.md'
+       - 'imgr_noop': 'modules/imgmgr/imgr_noop.md'
+       - 'imgr_read_file': 'modules/imgmgr/imgr_read_file.md'
+       - 'imgr_read_main': 'modules/imgmgr/imgr_read_main.md'
+       - 'imgr_read_test': 'modules/imgmgr/imgr_read_test.md'
+       - 'imgr_read_ver': 'modules/imgmgr/imgr_read_ver.md'
+       - 'imgr_upload': 'modules/imgmgr/imgr_upload.md'
+       - 'imgr_ver_jsonstr': 'modules/imgmgr/imgr_ver_jsonstr.md'
+       - 'imgr_ver_parse': 'modules/imgmgr/imgr_ver_parse.md'
+       - 'imgr_ver_str': 'modules/imgmgr/imgr_ver_str.md'
+       - 'imgr_write_file': 'modules/imgmgr/imgr_write_file.md'
     - 'Baselibc library': 'modules/baselibc.md'
     - 'Embedded Lua': 'modules/elua.md'
-    - 'JSON': 'modules/json.md'
+    - JSON: 
+       - 'JSON overview': 'modules/json/json.md'
+       - 'json_encode_object_entry': 'modules/json/json_encode_object_entry.md'
+       - 'json_encode_object_finish': 'modules/json/json_encode_object_finish.md'
+       - 'json_encode_object_key': 'modules/json/json_encode_object_key.md'
+       - 'json_encode_object_start': 'modules/json/json_encode_object_start.md'
+       - 'json_encode_value': 'modules/json/json_encode_value.md'
+       - 'json_internal_read_object': 'modules/json/json_internal_read_object.md'
+       - 'json_read_array': 'modules/json/json_read_array.md'
+       - 'json_read_object': 'modules/json/json_read_object.md'
+       - 'json_target_address': 'modules/json/json_target_address.md'
 - Chapter 6 - Newt Manager:
     - 'Overview': 'newtmgr/overview.md'
     - 'Protocol': 'newtmgr/protocol.md'


[2/2] incubator-mynewt-site git commit: adding more function pages for bootloader, testutil, json, and image manager

Posted by ad...@apache.org.
adding more function pages for bootloader, testutil, json, and image manager


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

Branch: refs/heads/master
Commit: 87e9d34c3c84678331253d540b6c6e6b2a01befc
Parents: d253eed
Author: aditihilbert <ad...@runtime.io>
Authored: Fri Feb 19 09:18:16 2016 -0800
Committer: aditihilbert <ad...@runtime.io>
Committed: Fri Feb 19 09:18:16 2016 -0800

----------------------------------------------------------------------
 docs/modules/bootloader.md                      | 139 -----
 docs/modules/bootloader/boot_build_status.md    |   0
 .../modules/bootloader/boot_build_status_one.md |   0
 docs/modules/bootloader/boot_clear_status.md    |   0
 docs/modules/bootloader/boot_copy_area.md       |   0
 docs/modules/bootloader/boot_copy_image.md      |   0
 docs/modules/bootloader/boot_erase_area.md      |   0
 docs/modules/bootloader/boot_fill_slot.md       |   0
 .../bootloader/boot_find_image_area_idx.md      |   0
 docs/modules/bootloader/boot_find_image_part.md |   0
 docs/modules/bootloader/boot_find_image_slot.md |   0
 docs/modules/bootloader/boot_go.md              |   0
 docs/modules/bootloader/boot_init_flash.md      |   0
 docs/modules/bootloader/boot_move_area.md       |   0
 .../bootloader/boot_read_image_header.md        |   0
 .../bootloader/boot_read_image_headers.md       |   0
 docs/modules/bootloader/boot_read_status.md     |   0
 .../bootloader/boot_select_image_slot.md        |   0
 docs/modules/bootloader/boot_slot_addr.md       |   0
 .../modules/bootloader/boot_slot_to_area_idx.md |   0
 docs/modules/bootloader/boot_swap_areas.md      |   0
 .../modules/bootloader/boot_vect_delete_main.md |   0
 .../modules/bootloader/boot_vect_delete_test.md |   0
 docs/modules/bootloader/boot_vect_read_main.md  |   0
 docs/modules/bootloader/boot_vect_read_one.md   |   0
 docs/modules/bootloader/boot_vect_read_test.md  |   0
 docs/modules/bootloader/boot_write_status.md    |   0
 docs/modules/bootloader/bootloader.md           |  46 ++
 docs/modules/console.md                         | 611 -------------------
 docs/modules/console/console.md                 |  92 +++
 docs/modules/console/console_add_char.md        |  41 ++
 docs/modules/console/console_blocking_mode.md   |  46 ++
 docs/modules/console/console_blocking_tx.md     |  46 ++
 docs/modules/console/console_init.md            |  32 +
 docs/modules/console/console_printf.md          |  61 ++
 docs/modules/console/console_pull_char.md       |  47 ++
 docs/modules/console/console_pull_char_head.md  |  57 ++
 docs/modules/console/console_queue_char.md      |  33 +
 docs/modules/console/console_read.md            |  31 +
 docs/modules/console/console_rx_char.md         |  30 +
 docs/modules/console/console_tx_char.md         |  30 +
 docs/modules/console/console_write.md           |  46 ++
 docs/modules/elua.md                            | 124 +---
 docs/modules/imgmgr.md                          | 139 -----
 docs/modules/imgmgr/imgmgr.md                   |  35 ++
 docs/modules/imgmgr/imgmgr_module_init.md       |   0
 docs/modules/imgmgr/imgr_boot_read.md           |   0
 docs/modules/imgmgr/imgr_boot_write.md          |   0
 docs/modules/imgmgr/imgr_file_download.md       |   0
 docs/modules/imgmgr/imgr_file_upload.md         |   0
 docs/modules/imgmgr/imgr_list.md                |   0
 docs/modules/imgmgr/imgr_noop.md                |   0
 docs/modules/imgmgr/imgr_read_file.md           |   0
 docs/modules/imgmgr/imgr_read_main.md           |   0
 docs/modules/imgmgr/imgr_read_test.md           |   0
 docs/modules/imgmgr/imgr_read_ver.md            |   0
 docs/modules/imgmgr/imgr_upload.md              |   0
 docs/modules/imgmgr/imgr_ver_jsonstr.md         |   0
 docs/modules/imgmgr/imgr_ver_parse.md           |   0
 docs/modules/imgmgr/imgr_ver_str.md             |   0
 docs/modules/imgmgr/imgr_write_file.md          |   0
 docs/modules/json.md                            | 139 -----
 docs/modules/json/json.md                       |  28 +
 docs/modules/json/json_encode_object_entry.md   |   0
 docs/modules/json/json_encode_object_finish.md  |   0
 docs/modules/json/json_encode_object_key.md     |   0
 docs/modules/json/json_encode_object_start.md   |   0
 docs/modules/json/json_encode_value.md          |   0
 docs/modules/json/json_internal_read_object.md  |   0
 docs/modules/json/json_read_array.md            |   0
 docs/modules/json/json_read_object.md           |   0
 docs/modules/json/json_target_address.md        |   0
 docs/modules/shell.md                           | 159 -----
 docs/modules/shell/shell.md                     | 115 ++++
 docs/modules/shell/shell_cmd.md                 |  39 ++
 docs/modules/shell/shell_cmd_list_lock.md       |  39 ++
 docs/modules/shell/shell_cmd_list_unlock.md     |  38 ++
 docs/modules/shell/shell_cmd_register.md        |  46 ++
 docs/modules/shell/shell_console_rx_cb.md       |   0
 docs/modules/shell/shell_echo_cmd.md            |   0
 docs/modules/shell/shell_help_cmd.md            |   0
 docs/modules/shell/shell_nlip_input_register.md |   0
 docs/modules/shell/shell_nlip_mqueue_process.md |   0
 docs/modules/shell/shell_nlip_mtx.md            |   0
 docs/modules/shell/shell_nlip_output.md         |   0
 docs/modules/shell/shell_nlip_process.md        |   0
 .../modules/shell/shell_os_mpool_display_cmd.md |   0
 .../modules/shell/shell_os_tasks_display_cmd.md |   0
 docs/modules/shell/shell_process_command.md     |   0
 docs/modules/shell/shell_read_console.md        |   0
 docs/modules/shell/shell_task_func.md           |   0
 docs/modules/shell/shell_task_init.md           |   0
 docs/modules/shelltest/imgmgr_module_init.md    |   0
 docs/modules/shelltest/imgr_boot_read.md        |   0
 docs/modules/shelltest/imgr_boot_write.md       |   0
 docs/modules/shelltest/imgr_file_download.md    |   0
 docs/modules/shelltest/imgr_file_upload.md      |   0
 docs/modules/shelltest/imgr_list.md             |   0
 docs/modules/shelltest/imgr_noop.md             |   0
 docs/modules/shelltest/imgr_read_file.md        |   0
 docs/modules/shelltest/imgr_read_main.md        |   0
 docs/modules/shelltest/imgr_read_test.md        |   0
 docs/modules/shelltest/imgr_read_ver.md         |   0
 docs/modules/shelltest/imgr_upload.md           |   0
 docs/modules/shelltest/imgr_ver_jsonstr.md      |   0
 docs/modules/shelltest/imgr_ver_parse.md        |   0
 docs/modules/shelltest/imgr_ver_str.md          |   0
 docs/modules/shelltest/imgr_write_file.md       |   0
 docs/modules/shelltest/shelltest.md             |  92 +++
 docs/modules/testutil.md                        | 140 -----
 docs/modules/testutil/testutil.md               |  38 ++
 docs/modules/testutil/tu_case_abort.md          |   0
 .../testutil/tu_case_append_assert_msg.md       |   0
 docs/modules/testutil/tu_case_append_buf.md     |   0
 .../testutil/tu_case_append_file_info.md        |   0
 .../testutil/tu_case_append_manual_pass_msg.md  |   0
 docs/modules/testutil/tu_case_complete.md       |   0
 docs/modules/testutil/tu_case_fail_assert.md    |   0
 docs/modules/testutil/tu_case_init.md           |   0
 docs/modules/testutil/tu_case_pass_manual.md    |   0
 docs/modules/testutil/tu_case_set_name.md       |   0
 docs/modules/testutil/tu_case_vappend_buf.md    |   0
 docs/modules/testutil/tu_case_write_fail_buf.md |   0
 .../modules/testutil/tu_case_write_pass_auto.md |   0
 docs/modules/testutil/tu_case_write_pass_buf.md |   0
 docs/modules/testutil/tu_init.md                |   0
 docs/modules/testutil/tu_restart.md             |   0
 docs/modules/testutil/tu_suite_init.md          |   0
 docs/modules/testutil/tu_suite_set_name.md      |   0
 mkdocs.yml                                      | 102 +++-
 130 files changed, 1206 insertions(+), 1455 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader.md b/docs/modules/bootloader.md
deleted file mode 100644
index a17a2c5..0000000
--- a/docs/modules/bootloader.md
+++ /dev/null
@@ -1,139 +0,0 @@
-# Bootloader
-
-Insert synopsis here
-
-
-## Description
-
-Describe module here, special features, how pieces fit together etc.
-
-## Data structures
-
-Replace this with the list of data structures used, why, any neat features
-
-## List of Functions
-
-<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
-
-The functions available in this OS feature are:
-
-* [boot_slot_addr](#boot_slot_addr)
-* [boot_find_image_slot](#boot_find_image_slot)
-* add the rest
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> boot_slot_addr </font>
-
-```no-highlight
-    static void
-    boot_slot_addr(int slot_num, uint8_t *flash_id, uint32_t *address)
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> boot_find_image_slot </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> next_one </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_build_status.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_build_status.md b/docs/modules/bootloader/boot_build_status.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_build_status_one.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_build_status_one.md b/docs/modules/bootloader/boot_build_status_one.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_clear_status.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_clear_status.md b/docs/modules/bootloader/boot_clear_status.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_copy_area.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_copy_area.md b/docs/modules/bootloader/boot_copy_area.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_copy_image.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_copy_image.md b/docs/modules/bootloader/boot_copy_image.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_erase_area.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_erase_area.md b/docs/modules/bootloader/boot_erase_area.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_fill_slot.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_fill_slot.md b/docs/modules/bootloader/boot_fill_slot.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_find_image_area_idx.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_find_image_area_idx.md b/docs/modules/bootloader/boot_find_image_area_idx.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_find_image_part.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_find_image_part.md b/docs/modules/bootloader/boot_find_image_part.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_find_image_slot.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_find_image_slot.md b/docs/modules/bootloader/boot_find_image_slot.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_go.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_go.md b/docs/modules/bootloader/boot_go.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_init_flash.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_init_flash.md b/docs/modules/bootloader/boot_init_flash.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_move_area.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_move_area.md b/docs/modules/bootloader/boot_move_area.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_read_image_header.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_read_image_header.md b/docs/modules/bootloader/boot_read_image_header.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_read_image_headers.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_read_image_headers.md b/docs/modules/bootloader/boot_read_image_headers.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_read_status.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_read_status.md b/docs/modules/bootloader/boot_read_status.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_select_image_slot.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_select_image_slot.md b/docs/modules/bootloader/boot_select_image_slot.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_slot_addr.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_slot_addr.md b/docs/modules/bootloader/boot_slot_addr.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_slot_to_area_idx.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_slot_to_area_idx.md b/docs/modules/bootloader/boot_slot_to_area_idx.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_swap_areas.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_swap_areas.md b/docs/modules/bootloader/boot_swap_areas.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_vect_delete_main.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_vect_delete_main.md b/docs/modules/bootloader/boot_vect_delete_main.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_vect_delete_test.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_vect_delete_test.md b/docs/modules/bootloader/boot_vect_delete_test.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_vect_read_main.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_vect_read_main.md b/docs/modules/bootloader/boot_vect_read_main.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_vect_read_one.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_vect_read_one.md b/docs/modules/bootloader/boot_vect_read_one.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_vect_read_test.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_vect_read_test.md b/docs/modules/bootloader/boot_vect_read_test.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/boot_write_status.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/boot_write_status.md b/docs/modules/bootloader/boot_write_status.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/bootloader/bootloader.md
----------------------------------------------------------------------
diff --git a/docs/modules/bootloader/bootloader.md b/docs/modules/bootloader/bootloader.md
new file mode 100644
index 0000000..fd4bc8e
--- /dev/null
+++ b/docs/modules/bootloader/bootloader.md
@@ -0,0 +1,46 @@
+# Bootloader
+
+Insert synopsis here
+
+
+## Description
+
+Describe module here, special features, how pieces fit together etc.
+
+## Data structures
+
+Replace this with the list of data structures used, why, any neat features
+
+## List of Functions
+
+<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
+
+
+The functions available in bootloader are:
+
+* [boot_build_status](boot_build_status.md)
+* [boot_build_status_one](boot_build_status_one.md)
+* [boot_clear_status](boot_clear_status.md)
+* [boot_copy_area](boot_copy_area.md)
+* [boot_copy_image](boot_copy_image.md)
+* [boot_erase_area](boot_erase_area.md)
+* [boot_fill_slot](boot_fill_slot.md)
+* [boot_find_image_area_idx](boot_find_image_area_idx.md)
+* [boot_find_image_part](boot_find_image_part.md)
+* [boot_find_image_slot](boot_find_image_slot.md)
+* [boot_go](boot_go.md)
+* [boot_init_flash](boot_init_flash.md)
+* [boot_move_area](boot_move_area.md)
+* [boot_read_image_header](boot_read_image_header.md)
+* [boot_read_image_headers](boot_read_image_headers.md)
+* [boot_read_status](boot_read_status.md)
+* [boot_select_image_slot](boot_select_image_slot.md)
+* [boot_slot_addr](boot_slot_addr.md)
+* [boot_slot_to_area_idx](boot_slot_to_area_idx.md)
+* [boot_swap_areas](boot_swap_areas.md)
+* [boot_vect_delete_main](boot_vect_delete_main.md)
+* [boot_vect_delete_test](boot_vect_delete_test.md)
+* [boot_vect_read_main](boot_vect_read_main.md)
+* [boot_vect_read_one](boot_vect_read_one.md)
+* [boot_vect_read_test](boot_vect_read_test.md)
+* [boot_write_status](boot_write_status.md)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console.md
----------------------------------------------------------------------
diff --git a/docs/modules/console.md b/docs/modules/console.md
deleted file mode 100644
index 539db61..0000000
--- a/docs/modules/console.md
+++ /dev/null
@@ -1,611 +0,0 @@
-# Console
-
-
-The 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. 
-
-Support is currently available for console access via the serial port on the hardware board.
-
-
-## Description
-
-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.
-For example, the shell egg is defined by the following egg.yml file:
-```no-highlight
-    egg.name: libs/shell 
-    egg.vers: 0.1
-    egg.deps:
-        - libs/os
-        - libs/util
-    egg.reqs:
-        - console
-    egg.identities:
-        - SHELL 
-```
-The project .yml file decides which version of the console egg should be included. 
-If project requires the full console capability it lists dependency `libs/console/full` in its egg.yml file. 
-On 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 `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:
-```no-highlight
-    project.name: boot
-    project.identities: bootloader
-    project.eggs:
-        - libs/os
-        - libs/bootutil
-        - libs/nffs
-        - libs/console/stub
-        - 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.
-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.
-
-## Data structures
-
-
-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.
-
-
-```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 }
-```
-
-
-```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
-```
-
-## List of Functions
-
-The functions available in console are:
-
-* [console_printf](#console_printf)
-* [console_add_char](#console_add_char)
-* [console_pull_char](#console_pull_char)
-* [console_pull_char_head](#console_pull_char_head)
-* [console_queue_char](#console_queue_char)
-* [console_blocking_tx](#console_blocking_tx)
-* [console_blocking_mode](#console_blocking_mode)
-* [console_write](#console_write)
-* [console_read](#console_read)
-* [console_tx_char](#console_tx_char)
-* [console_rx_char](#console_rx_char)
-* [console_init](#console_init)
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> console_printf</font>
-
-```no-highlight
-    void 
-    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.
-
-
-#### Arguments
-
-| 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 <cstdarg> in stdarg.h. |
-
-#### Returned values
-
-None
-
-#### Notes 
-
-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.
-
-#### Example
-Example #1:
-
-```no-highlight
-char adv_data_buf[32];
-    
-void
-task()
-{ 
-   char adv_data_buf[32];
-   
-   console_printf("%s", adv_data_buf);
-}
-```   
-
-Example #2:
-
-```no-highlight
-struct exception_frame {
-    uint32_t r0;
-    uint32_t r1;
-
-struct trap_frame {
-    struct exception_frame *ef;
-    uint32_t r2;
-    uint32_t r3;
-};
-
-void
-task(struct trap_frame *tf)
-{
-     console_printf(" r0:%8.8x  r1:%8.8x", tf->ef->r0, tf->ef->r1);
-     console_printf(" r8:%8.8x  r9:%8.8x", tf->r2, tf->r3);
-}
-```
-  
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> console_add_char</font>
-
-```no-highlight
-   static void
-   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.
-
-#### Arguments
-
-| 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 |
-
-#### Returned values
-
-None
-
-#### Notes 
-
-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).
-
-#### Example
-
-Add a new line character to the output (transmit) buffer.
-
-```no-highlight
-void
-task()
-{
-     struct console_ring *tx = &ct->ct_tx;
-     
-     console_add_char(tx, '\n');
-}
-```
-
--------------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_pull_char </font>
-
-```no-highlight
-   static uint8_t
-   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. 
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| *cr | Pointer to the console ring buffer from where a character is to be removed  |
-
-
-#### Returned values
-
-Returns the character pulled from the ring buffer.
-
-#### Notes 
-
-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).
-
-#### Example
-
-Read the characters in the ring buffer into a string.
-
-```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;
-     }
-}
-```
-
----------------
-      
-## <font color="#F2853F" style="font-size:24pt"> console_pull_char_head </font>
-
-```no-highlight
-   static void
-   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. 
-  
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| cr |  Pointer to the console ring buffer from which the last inserted character must be deleted |
-
-
-#### Returned values
-
-None
-
-#### Notes 
-
-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).
-
-#### Example
-
-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.
-
-```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;
-      }
-}
-
-```
-
--------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_queue_char </font>
-
-```no-highlight 
-   static void
-   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.
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| ch |  Character to be inserted to the queue  |
-
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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...
-
-#### Example
-
-```no-highlight
-Insert example
-``` 
-------------------
- 
-## <font color="#F2853F" style="font-size:24pt"> console_blocking_tx </font>
-
-```no-highlight
-    static void
-    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. 
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| ch |  8 bit character (data) to be transmitted |
-
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Here is an example of a console output queue being flushed.
-
-```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);
-    }
-}
-```
-
------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_blocking_mode </font>
-
-```no-highlight
-   void
-   console_blocking_mode(void)
-```
-   Calls 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.
-
-#### Arguments
-
-| Arguments | Description |
-|-------------------------|
-| none |  none  |
-
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Here is an example of calling `console_blocking_mode` and printing crash information from an assert to help debug.
-
-```no-highlight
-void
-_assert_func(const char *file, int line, const char *func, const char *e)
-{
-    int sr;
-
-    OS_ENTER_CRITICAL(sr);
-    (void)sr;
-    os_die_line = line;
-    os_die_module = file;
-    console_blocking_mode();
-    console_printf("Assert %s; failed in %s:%d\n", e ? e : "", file, line);
-    system_reset();
-}
-```
-
------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_write </font>
- 
-```no-highlight
-   void
-   console_write(char *str, int cnt)
-```
-Transmit characters to console display over serial port. 
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| *str |  pointer to the character or packet to be transmitted  |
-| cnt  |  size of the character or packet |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Here is an example of the function being used in an echo command with a newline at the end.
-
-```no-highlight
-static int
-shell_echo_cmd(int argc, char **argv)
-{
-    int i;
-
-    for (i = 1; i < argc; i++) {
-        console_write(argv[i], strlen(argv[i]));
-        console_write(" ", sizeof(" ")-1);
-    }
-    console_write("\n", sizeof("\n")-1);
-
-    return (0);
-}
-```
-
------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_read </font>
-
-```no-highlight   
-  int
-  console_read(char *str, int cnt)
-```
-  Calls hal function hal_uart_start_rx to start receiving input from console terminal over serial port.
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Give at least one example of usage.
-
------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_tx_char </font>
-
-```no-highlight   
-   static int
-   console_tx_char(void *arg)
-```
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Give at least one example of usage.
-
------------
-  
-## <font color="#F2853F" style="font-size:24pt"> console_rx_char </font>
-
-```no-highlight
-   static int
-   console_rx_char(void *arg, uint8_t data)
-```
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Give at least one example of usage.
-
-
------------
-
-## <font color="#F2853F" style="font-size:24pt"> console_init </font>
-
-```no-highlight
-   int
-   console_init(console_rx_cb rx_cb)
-```
-   
-  Initializes console receive buffer and calls hal funtions hal_uart_init_cbs and hal_uart_config to initialize serial port connection and configure it (e.g. baud rate, flow control etc.)
-   
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-Give at least one example of usage.
-
------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console.md b/docs/modules/console/console.md
new file mode 100644
index 0000000..60c2b88
--- /dev/null
+++ b/docs/modules/console/console.md
@@ -0,0 +1,92 @@
+# Console
+
+
+The 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. 
+
+Support is currently available for console access via the serial port on the hardware board.
+
+
+## Description
+
+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.
+For example, the shell egg is defined by the following egg.yml file:
+```no-highlight
+    egg.name: libs/shell 
+    egg.vers: 0.1
+    egg.deps:
+        - libs/os
+        - libs/util
+    egg.reqs:
+        - console
+    egg.identities:
+        - SHELL 
+```
+The project .yml file decides which version of the console egg should be included. 
+If project requires the full console capability it lists dependency `libs/console/full` in its egg.yml file. 
+On 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 `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:
+```no-highlight
+    project.name: boot
+    project.identities: bootloader
+    project.eggs:
+        - libs/os
+        - libs/bootutil
+        - libs/nffs
+        - libs/console/stub
+        - 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.
+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.
+
+## Data structures
+
+
+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.
+
+
+```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 }
+```
+
+
+```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
+```
+
+## List of Functions
+
+The functions available in console are:
+
+* [console_add_char](console_add_char.md)
+* [console_blocking_mode](console_blocking_mode.md)
+* [console_blocking_tx](console_blocking_tx.md)
+* [console_init](console_init.md)
+* [console_printf](console_printf.md)
+* [console_pull_char](console_pull_char.md)
+* [console_pull_char_head](console_pull_char_head.md)
+* [console_queue_char](console_queue_char.md)
+* [console_read](console_read.md)
+* [console_rx_char](console_rx_char.md)
+* [console_tx_char](console_tx_char.md)
+* [console_write](console_write.md)
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_add_char.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_add_char.md b/docs/modules/console/console_add_char.md
new file mode 100644
index 0000000..739722d
--- /dev/null
+++ b/docs/modules/console/console_add_char.md
@@ -0,0 +1,41 @@
+## <font color="#F2853F" style="font-size:24pt"> console_add_char</font>
+
+```no-highlight
+   static void
+   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.
+
+#### Arguments
+
+| 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 |
+
+#### Returned values
+
+None
+
+#### Notes
+
+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).
+
+#### Example
+
+Add a new line character to the output (transmit) buffer.
+
+```no-highlight
+void
+task()
+{
+     struct console_ring *tx = &ct->ct_tx;
+
+     console_add_char(tx, '\n');
+}
+```
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_blocking_mode.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_blocking_mode.md b/docs/modules/console/console_blocking_mode.md
new file mode 100644
index 0000000..7023547
--- /dev/null
+++ b/docs/modules/console/console_blocking_mode.md
@@ -0,0 +1,46 @@
+## <font color="#F2853F" style="font-size:24pt"> console_blocking_mode </font>
+
+```no-highlight
+   void
+   console_blocking_mode(void)
+```
+   Calls 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.
+
+#### Arguments
+
+| Arguments | Description |
+|-------------------------|
+| none |  none  |
+
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Here is an example of calling `console_blocking_mode` and printing crash information from an assert to help debug.
+
+```no-highlight
+void
+_assert_func(const char *file, int line, const char *func, const char *e)
+{
+    int sr;
+
+    OS_ENTER_CRITICAL(sr);
+    (void)sr;
+    os_die_line = line;
+    os_die_module = file;
+    console_blocking_mode();
+    console_printf("Assert %s; failed in %s:%d\n", e ? e : "", file, line);
+    system_reset();
+}
+```
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_blocking_tx.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_blocking_tx.md b/docs/modules/console/console_blocking_tx.md
new file mode 100644
index 0000000..ee18b55
--- /dev/null
+++ b/docs/modules/console/console_blocking_tx.md
@@ -0,0 +1,46 @@
+## <font color="#F2853F" style="font-size:24pt"> console_blocking_tx </font>
+
+```no-highlight
+    static void
+    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.
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| ch |  8 bit character (data) to be transmitted |
+
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Here is an example of a console output queue being flushed.
+
+```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);
+    }
+}
+```
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_init.md b/docs/modules/console/console_init.md
new file mode 100644
index 0000000..e9598c5
--- /dev/null
+++ b/docs/modules/console/console_init.md
@@ -0,0 +1,32 @@
+## <font color="#F2853F" style="font-size:24pt"> console_init </font>
+
+```no-highlight
+   int
+   console_init(console_rx_cb rx_cb)
+```
+
+  Initializes console receive buffer and calls hal funtions hal_uart_init_cbs and hal_uart_config to initialize serial port connection and configure it (e.g. baud rate, flow control etc.)
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| xx |  explain argument xx  |
+| yy |  explain argument yy  |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Give at least one example of usage.
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_printf.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_printf.md b/docs/modules/console/console_printf.md
new file mode 100644
index 0000000..8eb2280
--- /dev/null
+++ b/docs/modules/console/console_printf.md
@@ -0,0 +1,61 @@
+## <font color="F2853F" style="font-size:24pt"> console_printf</font>
+
+```no-highlight
+    void
+    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.
+
+
+#### Arguments
+
+| 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 <cstdarg> in stdarg.h. |
+
+#### Returned values
+
+None
+
+#### Notes
+
+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.
+
+#### Example
+Example #1:
+
+```no-highlight
+char adv_data_buf[32];
+
+void
+task()
+{
+   char adv_data_buf[32];
+
+   console_printf("%s", adv_data_buf);
+}
+```
+
+Example #2:
+
+```no-highlight
+struct exception_frame {
+    uint32_t r0;
+    uint32_t r1;
+
+struct trap_frame {
+    struct exception_frame *ef;
+    uint32_t r2;
+    uint32_t r3;
+};
+
+void
+task(struct trap_frame *tf)
+{
+     console_printf(" r0:%8.8x  r1:%8.8x", tf->ef->r0, tf->ef->r1);
+     console_printf(" r8:%8.8x  r9:%8.8x", tf->r2, tf->r3);
+}
+```
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_pull_char.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_pull_char.md b/docs/modules/console/console_pull_char.md
new file mode 100644
index 0000000..7f06172
--- /dev/null
+++ b/docs/modules/console/console_pull_char.md
@@ -0,0 +1,47 @@
+## <font color="#F2853F" style="font-size:24pt"> console_pull_char </font>
+
+```no-highlight
+   static uint8_t
+   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.
+
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| *cr | Pointer to the console ring buffer from where a character is to be removed  |
+
+
+#### Returned values
+
+Returns the character pulled from the ring buffer.
+
+#### Notes
+
+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).
+
+#### Example
+
+Read the characters in the ring buffer into a string.
+
+```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;
+     }
+}
+```
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_pull_char_head.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_pull_char_head.md b/docs/modules/console/console_pull_char_head.md
new file mode 100644
index 0000000..c266e41
--- /dev/null
+++ b/docs/modules/console/console_pull_char_head.md
@@ -0,0 +1,57 @@
+## <font color="#F2853F" style="font-size:24pt"> console_pull_char_head </font>
+
+```no-highlight
+   static void
+   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.
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| cr |  Pointer to the console ring buffer from which the last inserted character must be deleted |
+
+
+#### Returned values
+
+None
+
+#### Notes
+
+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).
+
+#### Example
+
+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.
+
+```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;
+      }
+}
+
+```
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_queue_char.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_queue_char.md b/docs/modules/console/console_queue_char.md
new file mode 100644
index 0000000..74e34f3
--- /dev/null
+++ b/docs/modules/console/console_queue_char.md
@@ -0,0 +1,33 @@
+## <font color="#F2853F" style="font-size:24pt"> console_queue_char </font>
+
+```no-highlight
+   static void
+   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.
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| ch |  Character to be inserted to the queue  |
+
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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...
+
+#### Example
+
+```no-highlight
+Insert example
+```
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_read.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_read.md b/docs/modules/console/console_read.md
new file mode 100644
index 0000000..9c7460f
--- /dev/null
+++ b/docs/modules/console/console_read.md
@@ -0,0 +1,31 @@
+i## <font color="#F2853F" style="font-size:24pt"> console_read </font>
+
+```no-highlight
+  int
+  console_read(char *str, int cnt)
+```
+  Calls hal function hal_uart_start_rx to start receiving input from console terminal over serial port.
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| xx |  explain argument xx  |
+| yy |  explain argument yy  |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Give at least one example of usage.
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_rx_char.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_rx_char.md b/docs/modules/console/console_rx_char.md
new file mode 100644
index 0000000..bb3c338
--- /dev/null
+++ b/docs/modules/console/console_rx_char.md
@@ -0,0 +1,30 @@
+## <font color="#F2853F" style="font-size:24pt"> console_rx_char </font>
+
+```no-highlight
+   static int
+   console_rx_char(void *arg, uint8_t data)
+```
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| xx |  explain argument xx  |
+| yy |  explain argument yy  |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Give at least one example of usage.
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_tx_char.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_tx_char.md b/docs/modules/console/console_tx_char.md
new file mode 100644
index 0000000..d3f0dec
--- /dev/null
+++ b/docs/modules/console/console_tx_char.md
@@ -0,0 +1,30 @@
+## <font color="#F2853F" style="font-size:24pt"> console_tx_char </font>
+
+```no-highlight
+   static int
+   console_tx_char(void *arg)
+```
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| xx |  explain argument xx  |
+| yy |  explain argument yy  |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Give at least one example of usage.
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/console/console_write.md
----------------------------------------------------------------------
diff --git a/docs/modules/console/console_write.md b/docs/modules/console/console_write.md
new file mode 100644
index 0000000..1d7a524
--- /dev/null
+++ b/docs/modules/console/console_write.md
@@ -0,0 +1,46 @@
+## <font color="#F2853F" style="font-size:24pt"> console_write </font>
+
+```no-highlight
+   void
+   console_write(char *str, int cnt)
+```
+Transmit characters to console display over serial port.
+
+#### Arguments
+
+| Arguments | Description |
+|-----------|-------------|
+| *str |  pointer to the character or packet to be transmitted  |
+| cnt  |  size of the character or packet |
+
+#### Returned values
+
+List any values returned.
+Error codes?
+
+#### Notes
+
+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).
+
+#### Example
+
+Here is an example of the function being used in an echo command with a newline at the end.
+
+```no-highlight
+static int
+shell_echo_cmd(int argc, char **argv)
+{
+    int i;
+
+    for (i = 1; i < argc; i++) {
+        console_write(argv[i], strlen(argv[i]));
+        console_write(" ", sizeof(" ")-1);
+    }
+    console_write("\n", sizeof("\n")-1);
+
+    return (0);
+}
+```
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/elua.md
----------------------------------------------------------------------
diff --git a/docs/modules/elua.md b/docs/modules/elua.md
index a17a2c5..d49d9bb 100644
--- a/docs/modules/elua.md
+++ b/docs/modules/elua.md
@@ -1,4 +1,4 @@
-# Bootloader
+# elua
 
 Insert synopsis here
 
@@ -15,125 +15,3 @@ Replace this with the list of data structures used, why, any neat features
 
 <Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
 
-The functions available in this OS feature are:
-
-* [boot_slot_addr](#boot_slot_addr)
-* [boot_find_image_slot](#boot_find_image_slot)
-* add the rest
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> boot_slot_addr </font>
-
-```no-highlight
-    static void
-    boot_slot_addr(int slot_num, uint8_t *flash_id, uint32_t *address)
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> boot_find_image_slot </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> next_one </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr.md b/docs/modules/imgmgr.md
deleted file mode 100644
index a17a2c5..0000000
--- a/docs/modules/imgmgr.md
+++ /dev/null
@@ -1,139 +0,0 @@
-# Bootloader
-
-Insert synopsis here
-
-
-## Description
-
-Describe module here, special features, how pieces fit together etc.
-
-## Data structures
-
-Replace this with the list of data structures used, why, any neat features
-
-## List of Functions
-
-<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
-
-The functions available in this OS feature are:
-
-* [boot_slot_addr](#boot_slot_addr)
-* [boot_find_image_slot](#boot_find_image_slot)
-* add the rest
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> boot_slot_addr </font>
-
-```no-highlight
-    static void
-    boot_slot_addr(int slot_num, uint8_t *flash_id, uint32_t *address)
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> boot_find_image_slot </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> next_one </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgmgr.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgmgr.md b/docs/modules/imgmgr/imgmgr.md
new file mode 100644
index 0000000..650314b
--- /dev/null
+++ b/docs/modules/imgmgr/imgmgr.md
@@ -0,0 +1,35 @@
+# Image Manager
+
+Insert synopsis here
+
+
+## Description
+
+Describe module here, special features, how pieces fit together etc.
+
+## Data structures
+
+Replace this with the list of data structures used, why, any neat features
+
+## List of Functions
+
+<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
+
+The functions available in imgmgr are:
+
+* [imgmgr_module_init](imgmgr_module_init.md)
+* [imgr_boot_read](imgr_boot_read.md)
+* [imgr_boot_write](imgr_boot_write.md)
+* [imgr_file_download](imgr_file_download.md)
+* [imgr_file_upload](imgr_file_upload.md)
+* [imgr_list](imgr_list.md)
+* [imgr_noop](imgr_noop.md)
+* [imgr_read_file](imgr_read_file.md)
+* [imgr_read_main](imgr_read_main.md)
+* [imgr_read_test](imgr_read_test.md)
+* [imgr_read_ver](imgr_read_ver.md)
+* [imgr_upload](imgr_upload.md)
+* [imgr_ver_jsonstr](imgr_ver_jsonstr.md)
+* [imgr_ver_parse](imgr_ver_parse.md)
+* [imgr_ver_str](imgr_ver_str.md)
+* [imgr_write_file](imgr_write_file.md)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgmgr_module_init.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgmgr_module_init.md b/docs/modules/imgmgr/imgmgr_module_init.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_boot_read.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_boot_read.md b/docs/modules/imgmgr/imgr_boot_read.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_boot_write.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_boot_write.md b/docs/modules/imgmgr/imgr_boot_write.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_file_download.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_file_download.md b/docs/modules/imgmgr/imgr_file_download.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_file_upload.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_file_upload.md b/docs/modules/imgmgr/imgr_file_upload.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_list.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_list.md b/docs/modules/imgmgr/imgr_list.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_noop.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_noop.md b/docs/modules/imgmgr/imgr_noop.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_read_file.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_read_file.md b/docs/modules/imgmgr/imgr_read_file.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_read_main.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_read_main.md b/docs/modules/imgmgr/imgr_read_main.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_read_test.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_read_test.md b/docs/modules/imgmgr/imgr_read_test.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_read_ver.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_read_ver.md b/docs/modules/imgmgr/imgr_read_ver.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_upload.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_upload.md b/docs/modules/imgmgr/imgr_upload.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_ver_jsonstr.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_ver_jsonstr.md b/docs/modules/imgmgr/imgr_ver_jsonstr.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_ver_parse.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_ver_parse.md b/docs/modules/imgmgr/imgr_ver_parse.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_ver_str.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_ver_str.md b/docs/modules/imgmgr/imgr_ver_str.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/imgmgr/imgr_write_file.md
----------------------------------------------------------------------
diff --git a/docs/modules/imgmgr/imgr_write_file.md b/docs/modules/imgmgr/imgr_write_file.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json.md
----------------------------------------------------------------------
diff --git a/docs/modules/json.md b/docs/modules/json.md
deleted file mode 100644
index a17a2c5..0000000
--- a/docs/modules/json.md
+++ /dev/null
@@ -1,139 +0,0 @@
-# Bootloader
-
-Insert synopsis here
-
-
-## Description
-
-Describe module here, special features, how pieces fit together etc.
-
-## Data structures
-
-Replace this with the list of data structures used, why, any neat features
-
-## List of Functions
-
-<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
-
-The functions available in this OS feature are:
-
-* [boot_slot_addr](#boot_slot_addr)
-* [boot_find_image_slot](#boot_find_image_slot)
-* add the rest
-
-
-## Function Reference
-
-------------------
-
-## <font color="F2853F" style="font-size:24pt"> boot_slot_addr </font>
-
-```no-highlight
-    static void
-    boot_slot_addr(int slot_num, uint8_t *flash_id, uint32_t *address)
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> boot_find_image_slot </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------
-   
-## <font color="#F2853F" style="font-size:24pt"> next_one </font>
-
-```no-highlight
-   <Insert function callout here >
-```
-
-<Insert short description>
-
-
-#### Arguments
-
-| Arguments | Description |
-|-----------|-------------|
-| xx |  explain argument xx  |
-| yy |  explain argument yy  |
-
-#### Returned values
-
-List any values returned.
-Error codes?
-
-#### Notes 
-
-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).
-
-#### Example
-
-<Add text to set up the context for the example here>
-
-```no-highlight
-<Insert the code snippet here>
-```
-
----------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json.md b/docs/modules/json/json.md
new file mode 100644
index 0000000..4e1f920
--- /dev/null
+++ b/docs/modules/json/json.md
@@ -0,0 +1,28 @@
+# JSON
+
+Insert synopsis here
+
+
+## Description
+
+Describe module here, special features, how pieces fit together etc.
+
+## Data structures
+
+Replace this with the list of data structures used, why, any neat features
+
+## List of Functions
+
+<Comments such as these instructions are placed within angle brackets. List all the functions here. Note how the anchors work. You put the text you want to show up as a link within [] and the relevant #heading within (). Note that the header has to have at least 2 words for the anchor to work - that's how it is. "no-highlight" disables syntax highlighting. You can enable it for a particular language by specifying what the language is instead of "no-highlight". Be warned that this highlighting or no-highlighting specification may not show up nicely on Mou.>
+
+The functions available in json are:
+
+* [json_encode_object_entry](json_encode_object_entry.md)
+* [json_encode_object_finish](json_encode_object_finish.md)
+* [json_encode_object_key](json_encode_object_key.md)
+* [json_encode_object_start](json_encode_object_start.md)
+* [json_encode_value](json_encode_value.md)
+* [json_internal_read_object](json_internal_read_object.md)
+* [json_read_array](json_read_array.md)
+* [json_read_object](json_read_object.md)
+* [json_target_address](json_target_address.md)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_encode_object_entry.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_encode_object_entry.md b/docs/modules/json/json_encode_object_entry.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_encode_object_finish.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_encode_object_finish.md b/docs/modules/json/json_encode_object_finish.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_encode_object_key.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_encode_object_key.md b/docs/modules/json/json_encode_object_key.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_encode_object_start.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_encode_object_start.md b/docs/modules/json/json_encode_object_start.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_encode_value.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_encode_value.md b/docs/modules/json/json_encode_value.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_internal_read_object.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_internal_read_object.md b/docs/modules/json/json_internal_read_object.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_read_array.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_read_array.md b/docs/modules/json/json_read_array.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_read_object.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_read_object.md b/docs/modules/json/json_read_object.md
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/87e9d34c/docs/modules/json/json_target_address.md
----------------------------------------------------------------------
diff --git a/docs/modules/json/json_target_address.md b/docs/modules/json/json_target_address.md
new file mode 100644
index 0000000..e69de29