[7/7] incubator-mynewt-site git commit: Merge branch 'ide' of https://github.com/cwanda/incubator-mynewt-site into develop

2017-05-22 Thread aditi
Merge branch 'ide' of https://github.com/cwanda/incubator-mynewt-site into 
develop

This closes #183. This closes #184.


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

Branch: refs/heads/develop
Commit: 901c04db01663ed060039921ed262b57426c740b
Parents: 46fa024 83e95ec
Author: aditihilbert 
Authored: Mon May 22 09:04:37 2017 -0700
Committer: aditihilbert 
Committed: Mon May 22 09:04:37 2017 -0700

--
 docs/faq/ide.md | 243 +++
 docs/faq/pics/debug_new_config_small.png| Bin 0 -> 71855 bytes
 docs/faq/pics/gdb_debug_small.png   | Bin 0 -> 134895 bytes
 docs/faq/pics/gdb_server_small.png  | Bin 0 -> 99128 bytes
 docs/faq/pics/gdb_small.png | Bin 0 -> 59655 bytes
 docs/faq/pics/integrated_terminal_small.png | Bin 0 -> 51077 bytes
 docs/faq/pics/launch_small.png  | Bin 0 -> 92234 bytes
 docs/faq/pics/task_json_small.png   | Bin 0 -> 93487 bytes
 docs/faq/pics/task_runner_small.png | Bin 0 -> 92407 bytes
 docs/faq/pics/task_select_small.png | Bin 0 -> 66049 bytes
 docs/faq/pics/task_start_small.png  | Bin 0 -> 99242 bytes
 mkdocs.yml  |   1 +
 12 files changed, 244 insertions(+)
--




[2/7] incubator-mynewt-site git commit: Tell Windows Users to set vers to 0-dev for arduino_zero blinky and wifi tutorials. This is needed for both the apache-mynewt-core and mynewt_arduino_zero repo.

2017-05-22 Thread aditi
Tell Windows Users to set vers to 0-dev for arduino_zero blinky and wifi 
tutorials.
This is needed for both the apache-mynewt-core and mynewt_arduino_zero repo.


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

Branch: refs/heads/develop
Commit: 985809e415016782f030e092b00d8f1a15f83abd
Parents: 77cbe62
Author: cwanda 
Authored: Mon May 15 11:17:55 2017 -0700
Committer: cwanda 
Committed: Mon May 15 11:34:57 2017 -0700

--
 docs/os/tutorials/arduino_zero.md | 2 ++
 docs/os/tutorials/wi-fi_on_arduino.md | 5 +
 2 files changed, 3 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/985809e4/docs/os/tutorials/arduino_zero.md
--
diff --git a/docs/os/tutorials/arduino_zero.md 
b/docs/os/tutorials/arduino_zero.md
index bd0c02e..1bff4e4 100644
--- a/docs/os/tutorials/arduino_zero.md
+++ b/docs/os/tutorials/arduino_zero.md
@@ -50,6 +50,8 @@ Here is an example ```project.yml``` file with the Arduino 
Zero repository
 added. The sections with ```mynewt_arduino_zero``` that need to be added to
 your project file are highlighted.
 
+**Note:** On Windows platforms: You need to set `vers` to `0-dev` and use the 
latest master branch for both repositories.
+
 ```hl_lines="6 14 15 16 17 18"
 $ more project.yml
 project.name: "my_project"

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/985809e4/docs/os/tutorials/wi-fi_on_arduino.md
--
diff --git a/docs/os/tutorials/wi-fi_on_arduino.md 
b/docs/os/tutorials/wi-fi_on_arduino.md
index 1f5f9a6..55fc87c 100644
--- a/docs/os/tutorials/wi-fi_on_arduino.md
+++ b/docs/os/tutorials/wi-fi_on_arduino.md
@@ -59,14 +59,11 @@ low level operations. Sometimes this code is licensed only 
for the specific manu
 To fetch the package with MCU support for Atmel SAMD21 for Arduino Zero from 
the Runtime git repository, you need to add
 the repository to the `project.yml` file in your base project directory 
(`arduinowifi`).
 
-```
-user@~/dev/arduinowifi$ vi project.yml
-```
-
 Here is an example ```project.yml``` file with the Arduino Zero repository
 added. The sections with ```mynewt_arduino_zero``` that need to be added to
 your project file are highlighted.
 
+**Note:** On Windows platforms: You need to set `vers` to `0-dev` and use the 
latest master branch for both repositories.
 
 ```hl_lines="6 14 15 16 17 18"
 $ more project.yml



[4/7] incubator-mynewt-site git commit: Fixed typo in installing newtmgr on Windows.

2017-05-22 Thread aditi
Fixed typo in installing newtmgr on Windows.


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

Branch: refs/heads/develop
Commit: ceb0b4227d2fef4ab11637b6ed2c1093275989e1
Parents: 70ee1c5
Author: cwanda 
Authored: Tue May 16 13:43:59 2017 -0700
Committer: cwanda 
Committed: Tue May 16 13:43:59 2017 -0700

--
 docs/newtmgr/install_windows.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ceb0b422/docs/newtmgr/install_windows.md
--
diff --git a/docs/newtmgr/install_windows.md b/docs/newtmgr/install_windows.md
index 6ec23f1..0eecab2 100644
--- a/docs/newtmgr/install_windows.md
+++ b/docs/newtmgr/install_windows.md
@@ -26,7 +26,7 @@ Check that the newtmgr binary is installed and you are using 
the one from **$GOP
 ```no-highlight
 $ls $GOPATH/bin/newtmgr
 ~/dev/go/bin/newtmgr
-$which newt
+$which newtmgr
 ~/dev/go/bin/newtmgr
 ```
 



[6/7] incubator-mynewt-site git commit: Documentation on how to use Visual Studio Code to develop Mynewt Applications.

2017-05-22 Thread aditi
Documentation on how to use Visual Studio Code to develop Mynewt Applications.


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

Branch: refs/heads/develop
Commit: 83e95ecc65c5d9de254cd1889b1ea9af29eb3493
Parents: 80bbb50
Author: cwanda 
Authored: Fri May 19 23:53:32 2017 -0700
Committer: cwanda 
Committed: Sat May 20 20:34:45 2017 -0700

--
 docs/faq/ide.md | 243 +++
 docs/faq/pics/debug_new_config_small.png| Bin 0 -> 71855 bytes
 docs/faq/pics/gdb_debug_small.png   | Bin 0 -> 134895 bytes
 docs/faq/pics/gdb_server_small.png  | Bin 0 -> 99128 bytes
 docs/faq/pics/gdb_small.png | Bin 0 -> 59655 bytes
 docs/faq/pics/integrated_terminal_small.png | Bin 0 -> 51077 bytes
 docs/faq/pics/launch_small.png  | Bin 0 -> 92234 bytes
 docs/faq/pics/task_json_small.png   | Bin 0 -> 93487 bytes
 docs/faq/pics/task_runner_small.png | Bin 0 -> 92407 bytes
 docs/faq/pics/task_select_small.png | Bin 0 -> 66049 bytes
 docs/faq/pics/task_start_small.png  | Bin 0 -> 99242 bytes
 mkdocs.yml  |   1 +
 12 files changed, 244 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/83e95ecc/docs/faq/ide.md
--
diff --git a/docs/faq/ide.md b/docs/faq/ide.md
new file mode 100644
index 000..2f5307d
--- /dev/null
+++ b/docs/faq/ide.md
@@ -0,0 +1,243 @@
+## Developing Mynewt Applications with Visual Studio Code 
+
+This guide shows you how to set up Visual Studio Code to develop and debug 
Mynewt applications. Visual Studio Code is supported on Mac OS, Linux, and 
Windows.  This guide shows you how to:
+
+1. Install Visual Studio Code. 
+2. Install the C/C++ and debugger extensions.
+3. Define task configurations to build Mynewt applications.
+4. Define debugger configurations to debug Mynewt applications. 
+5. Launch the debugger. 
+
+Prerequisites:
+
+* Have Internet connectivity to fetch remote Mynewt components.
+* Have a computer to build a Mynewt application.
+* Perform [native installation](/os/get_started/native_install_intro.md) for 
the Mynewt tools and toolchains.
+* Read the Mynewt OS Concepts section.
+* Create a project space (directory structure) and populate it with the core 
code repository (apache-mynewt-core) or know how to as explained in Creating 
Your First Project.  
+* Complete one of the [Blinky Tutorials](/os/tutorials/blinky.md).
+
+**Notes:** 
+
+* This guide is not a tutorial for Visual Studio Code. It assumes you are 
familiar with Visual Studio Code. If this is your first time using Visual 
Studio Code, we recommend that you read the Visual Studio Code [documentation 
and tutorials](https://code.visualstudio.com/docs) and evaluate whether you 
would like to use it to develop Mynewt applications. 
+* This guide uses Visual Studio Code on Windows. Visual Studio Code is 
supported on Linux and Mac OS but may have some variations in the keyboard 
shortcuts and command names for these platforms. 
+* You can also use the Eclipse IDE to develop Mynewt applications. See 
[https://www.codecoup.pl/blog/hacking-mynewt-in-eclipse](https://www.codecoup.pl/blog/hacking-mynewt-in-eclipse)
 for more details.
+
+###Installing Visual Studio Code
+Download and install Visual Studio Code from 
[https://code.visualstudio.com/](https://code.visualstudio.com/).
+
+###Installing the C/C++ and Debugger Extensions
+
+You need to install two extensions:
+
+1. The C/C++ extension from Microsoft. This extension provides language 
support such as symbol searching, signatuare help, go to definition, and go to 
declaration.
+
+2. The Native Debug extension from webfreak. This extension provides GDB 
support. 
+
+
+To install the C/C++ extension:
+
+1. Press `Ctrl-P` to open the search box.
+2. Type `ext install cpptools` in the search box and press Enter.   You should 
see the extension at the top of the list. 
+3. Click `Install` to install the extension. 
+
+
+To install the Native Debugger:
+
+1. Press `Ctrl-P` to open the search box.
+2. Type `ext install webfreak.debug` in the search box and press Enter.  You 
should see the Native Debug extension at the top of the list.
+3. Click `Install` to install the extension. 
+
+###Defining Tasks for Mynewt Projects
+
+Two main concepts in Visual Studio Code are workspaces and tasks.  A workspace 
represents a folder that is open.  You can open multiple workspaces and switch 
between 

[1/7] incubator-mynewt-site git commit: Fix typos in installation instructions for Windows.

2017-05-22 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop 80bbb500f -> 901c04db0


Fix typos in installation instructions for Windows.


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

Branch: refs/heads/develop
Commit: 77cbe622ed043ed85c5d11480b9bb7cffd461f24
Parents: 80bbb50
Author: cwanda 
Authored: Mon May 15 10:21:28 2017 -0700
Committer: cwanda 
Committed: Mon May 15 10:38:24 2017 -0700

--
 docs/newt/install/newt_windows.md | 9 -
 docs/os/get_started/project_create.md | 2 +-
 2 files changed, 5 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/77cbe622/docs/newt/install/newt_windows.md
--
diff --git a/docs/newt/install/newt_windows.md 
b/docs/newt/install/newt_windows.md
index 5b9359f..a6efcc9 100644
--- a/docs/newt/install/newt_windows.md
+++ b/docs/newt/install/newt_windows.md
@@ -95,11 +95,10 @@ README.md   newtvm
 Check that the newt tool is installed and it is in your path:
 
 ```no-highlight
-$ls go/bin
-$ ls bin/newt
-bin/newt
-$which go
-/home//dev/go/bin/newt
+$ls $GOPATH/bin/newt
+~/dev/go/bin/newt
+$which newt
+~/dev/go/bin/newt
 $ newt version
 Apache Newt (incubating) version: 1.0.0-dev
 ```

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/77cbe622/docs/os/get_started/project_create.md
--
diff --git a/docs/os/get_started/project_create.md 
b/docs/os/get_started/project_create.md
index ecea21e..4cc8df3 100644
--- a/docs/os/get_started/project_create.md
+++ b/docs/os/get_started/project_create.md
@@ -311,7 +311,7 @@ All tests passed
 ### Building and Running the Simulated Blinky Application
 The section shows you how to build and run the blinky application to run on 
Mynewt's simulated hardware.
 
-**Note**: This is not yet supported on Windows. Refer to the [Blinky 
Tutorials](/os/tutorials/blinky.md) to create a blinky application on a target 
boards.
+**Note**: This is not yet supported on Windows. Refer to the [Blinky 
Tutorials](/os/tutorials/blinky.md) to create a blinky application for a target 
board.
 
 
 Building the Application



[3/7] incubator-mynewt-site git commit: More boards need to install usb driver on Windows 7 than Windows 10. 1) Added instructions to install usb driver for stm32f4discovery board in blinky tutorial (

2017-05-22 Thread aditi
More boards need to install usb driver on Windows 7 than Windows 10.
1) Added instructions to install usb driver for stm32f4discovery board in 
blinky tutorial
(This is needed in Widows 7 but not in Windows 10).
2) Also added the instructions to install usb driver for slinky tutorial for 
Olimex STM32-E407 board.
Instructions are provided for the blinky tutorial but not for slinky tutorial.
(This is needed for both Windows 7 and 10). Also cleaned up the instructions 
for the blinky tutorial.


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

Branch: refs/heads/develop
Commit: 70ee1c5886122e5acb58765bd49331f423750a6a
Parents: 985809e
Author: cwanda 
Authored: Mon May 15 16:37:45 2017 -0700
Committer: cwanda 
Committed: Mon May 15 16:47:08 2017 -0700

--
 docs/os/tutorials/blinky_stm32f4disc.md   | 9 +
 docs/os/tutorials/olimex.md   | 6 +++---
 docs/os/tutorials/project-stm32-slinky.md | 9 +
 3 files changed, 21 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/70ee1c58/docs/os/tutorials/blinky_stm32f4disc.md
--
diff --git a/docs/os/tutorials/blinky_stm32f4disc.md 
b/docs/os/tutorials/blinky_stm32f4disc.md
index 283e592..131334b 100644
--- a/docs/os/tutorials/blinky_stm32f4disc.md
+++ b/docs/os/tutorials/blinky_stm32f4disc.md
@@ -156,6 +156,15 @@ Run the `newt load stm32f4disc_boot` command to load the 
bootloader onto the boa
 $newt load stm32f4disc_boot
 Loading bootloader
 ```
+
+Note: If you are using Windows and get a `open failed` or  `no device found` 
error, you will need to install the usb driver. Download 
[Zadig](http://zadig.akeo.ie) and run it:
+
+* Select Options > List All Devices.
+* Select `STM32 STLink` from the drop down menu.
+* Select the `WinUSB` driver.
+* Click Install Driver.
+* Run the `newt load stm32f4disc_boot` command again.
+
 
 Run the `newt load stm32f4disc_blinky` command to load the Blinky application 
image onto the board.
 ```no-highlight

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/70ee1c58/docs/os/tutorials/olimex.md
--
diff --git a/docs/os/tutorials/olimex.md b/docs/os/tutorials/olimex.md
index 290f6d4..be6f728 100644
--- a/docs/os/tutorials/olimex.md
+++ b/docs/os/tutorials/olimex.md
@@ -158,11 +158,11 @@ Load command: 
~/dev/myproj/repos/apache-mynewt-core/hw/bsp/olimex_stm32-e407_dev
 Successfully loaded image.
 ```
 
-Note: If you are using Windows and get the `no device found` error, you will 
need to install the usb drivers for your Olimex debugger. Download 
[Zadig](http://zadig.akeo.ie) and run it:
+Note: If you are using Windows and get a `no device found` error, you will 
need to install the usb driver. Download [Zadig](http://zadig.akeo.ie) and run 
it:
 
 * Select Options > List All Devices.
-* Select Olimex OpenOCD JTAG ARM-USB-TINY-H from the drop down menu.
-* Select the WinUSB drivers.
+* Select `Olimex OpenOCD JTAG ARM-USB-TINY-H` from the drop down menu.
+* Select the `WinUSB` driver.
 * Click Install Driver.
 * Run the `newt load boot_olimex` command again. 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/70ee1c58/docs/os/tutorials/project-stm32-slinky.md
--
diff --git a/docs/os/tutorials/project-stm32-slinky.md 
b/docs/os/tutorials/project-stm32-slinky.md
index e7d9127..2d87349 100644
--- a/docs/os/tutorials/project-stm32-slinky.md
+++ b/docs/os/tutorials/project-stm32-slinky.md
@@ -129,6 +129,15 @@ Loading bootloader
 $
 ```
 
+Note: If you are using Windows and get a `no device found` error, you will 
need to install the usb driver. Download [Zadig](http://zadig.akeo.ie) and run 
it:
+
+* Select Options > List All Devices.
+* Select `Olimex OpenOCD JTAG ARM-USB-TINY-H` from the drop down menu.
+* Select the `WinUSB` driver.
+* Click Install Driver.
+* Run the `newt load stm32_boot` command again.
+
+
 Run the `newt load stm32_slinky` command to load the Slinky application image 
onto the board:
 ```no-highlight
 $ newt load stm32_slinky



[3/5] incubator-mynewt-site git commit: This closes #183. This closes #184. Adding instructions to use Visual Studio for Mynewt developers

2017-05-22 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/develop/newt/install/newt_windows/index.html
--
diff --git a/develop/newt/install/newt_windows/index.html 
b/develop/newt/install/newt_windows/index.html
index a744b87..9a87f91 100644
--- a/develop/newt/install/newt_windows/index.html
+++ b/develop/newt/install/newt_windows/index.html
@@ -491,11 +491,10 @@ README.md   newtvm
 
 
 Check that the newt tool is installed and it is in your path:
-$ls go/bin
-$ ls bin/newt
-bin/newt
-$which go
-/home/user/dev/go/bin/newt
+$ls $GOPATH/bin/newt
+~/dev/go/bin/newt
+$which newt
+~/dev/go/bin/newt
 $ newt version
 Apache Newt (incubating) version: 1.0.0-dev
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/develop/newtmgr/install_windows/index.html
--
diff --git a/develop/newtmgr/install_windows/index.html 
b/develop/newtmgr/install_windows/index.html
index 1f5cbeb..90c482c 100644
--- a/develop/newtmgr/install_windows/index.html
+++ b/develop/newtmgr/install_windows/index.html
@@ -403,7 +403,7 @@ nothing to commit, working directory clean
 Check that the newtmgr binary is installed and you are using the one from 
$GOPATH/bin:
 $ls $GOPATH/bin/newtmgr
 ~/dev/go/bin/newtmgr
-$which newt
+$which newtmgr
 ~/dev/go/bin/newtmgr
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/develop/os/get_started/project_create/index.html
--
diff --git a/develop/os/get_started/project_create/index.html 
b/develop/os/get_started/project_create/index.html
index 76afa39..a149ee2 100644
--- a/develop/os/get_started/project_create/index.html
+++ b/develop/os/get_started/project_create/index.html
@@ -641,7 +641,7 @@ All tests passed
 
 Building and 
Running the Simulated Blinky Application
 The section shows you how to build and run the blinky application to run on 
Mynewt's simulated hardware.
-Note: This is not yet supported on Windows. Refer to the 
Blinky Tutorials to create a blinky 
application on a target boards.
+Note: This is not yet supported on Windows. Refer to the 
Blinky Tutorials to create a blinky 
application for a target board.
 
 Building the Application
 To build the simulated blinky application, run newt build 
my_blinky_sim:

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/develop/os/tutorials/arduino_zero/index.html
--
diff --git a/develop/os/tutorials/arduino_zero/index.html 
b/develop/os/tutorials/arduino_zero/index.html
index 8ea6365..76cc371 100644
--- a/develop/os/tutorials/arduino_zero/index.html
+++ b/develop/os/tutorials/arduino_zero/index.html
@@ -573,6 +573,7 @@ the repository to the project.yml file in your 
base project directo
 Here is an example project.yml file with the Arduino Zero 
repository
 added. The sections with mynewt_arduino_zero that need to be 
added to
 your project file are highlighted.
+Note: On Windows platforms: You need to set 
vers to 0-dev and use the latest master branch for 
both repositories.
 $ more project.yml
 project.name: my_project
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/develop/os/tutorials/blinky_primo/index.html
--
diff --git a/develop/os/tutorials/blinky_primo/index.html 
b/develop/os/tutorials/blinky_primo/index.html
index 6c6fa1a..46ae00d 100644
--- a/develop/os/tutorials/blinky_primo/index.html
+++ b/develop/os/tutorials/blinky_primo/index.html
@@ -671,7 +671,7 @@ App image succesfully generated: 
~/dev/myproj/bin/targets/primoblinky/app/apps/b
 
 
 Note: If you are using the OpenOCD debugger,  you do not 
need to attach this connector. 
-Load the 
Bootloader and the Blinky Application Image
+Load the Bootloader
 Run the newt load primo_boot command to load the bootloader 
onto the board:
 $ newt load primo_boot
 Loading bootloader
@@ -679,8 +679,15 @@ $
 
 
 
-
-Run the newt load primoblinky command to load the Blinky 
application image onto the board.
+Note: If you are using OpenOCD on a Windows platform and 
you get an unable to find CMSIS-DAP device error, you will need to 
download and install the mbed Windows serial port driver from https://developer.mbed.org/handbook/Windows-serial-configuration;>https://developer.mbed.org/handbook/Windows-serial-configuration.
 Follow the instructions from the site to install the driver.  Here are some 
additional notes about the installation:
+
+The instructions indicate that the mbed Windows serial port driver is not 
required for Windows 10. If you are using Windows 10 and get the unable 
to find CMSIS-DAP device error, we recommend that you install the 
driver.
+If the driver installation fails, we recommend that you unplug the board, 
plug 

[1/5] incubator-mynewt-site git commit: This closes #183. This closes #184. Adding instructions to use Visual Studio for Mynewt developers

2017-05-22 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 72f0a4461 -> 65dc6d41a


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/latest/newt/install/newt_windows/index.html
--
diff --git a/latest/newt/install/newt_windows/index.html 
b/latest/newt/install/newt_windows/index.html
index aa11a7e..84b7359 100644
--- a/latest/newt/install/newt_windows/index.html
+++ b/latest/newt/install/newt_windows/index.html
@@ -491,11 +491,10 @@ README.md   newtvm
 
 
 Check that the newt tool is installed and it is in your path:
-$ls go/bin
-$ ls bin/newt
-bin/newt
-$which go
-/home/user/dev/go/bin/newt
+$ls $GOPATH/bin/newt
+~/dev/go/bin/newt
+$which newt
+~/dev/go/bin/newt
 $ newt version
 Apache Newt (incubating) version: 1.0.0-dev
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/latest/newtmgr/install_windows/index.html
--
diff --git a/latest/newtmgr/install_windows/index.html 
b/latest/newtmgr/install_windows/index.html
index b87d79e..49d1ce2 100644
--- a/latest/newtmgr/install_windows/index.html
+++ b/latest/newtmgr/install_windows/index.html
@@ -403,7 +403,7 @@ nothing to commit, working directory clean
 Check that the newtmgr binary is installed and you are using the one from 
$GOPATH/bin:
 $ls $GOPATH/bin/newtmgr
 ~/dev/go/bin/newtmgr
-$which newt
+$which newtmgr
 ~/dev/go/bin/newtmgr
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/latest/os/get_started/project_create/index.html
--
diff --git a/latest/os/get_started/project_create/index.html 
b/latest/os/get_started/project_create/index.html
index e2e7925..65bff72 100644
--- a/latest/os/get_started/project_create/index.html
+++ b/latest/os/get_started/project_create/index.html
@@ -641,7 +641,7 @@ All tests passed
 
 Building and 
Running the Simulated Blinky Application
 The section shows you how to build and run the blinky application to run on 
Mynewt's simulated hardware.
-Note: This is not yet supported on Windows. Refer to the 
Blinky Tutorials to create a blinky 
application on a target boards.
+Note: This is not yet supported on Windows. Refer to the 
Blinky Tutorials to create a blinky 
application for a target board.
 
 Building the Application
 To build the simulated blinky application, run newt build 
my_blinky_sim:

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/latest/os/tutorials/arduino_zero/index.html
--
diff --git a/latest/os/tutorials/arduino_zero/index.html 
b/latest/os/tutorials/arduino_zero/index.html
index 639341e..1fe8b67 100644
--- a/latest/os/tutorials/arduino_zero/index.html
+++ b/latest/os/tutorials/arduino_zero/index.html
@@ -573,6 +573,7 @@ the repository to the project.yml file in your 
base project directo
 Here is an example project.yml file with the Arduino Zero 
repository
 added. The sections with mynewt_arduino_zero that need to be 
added to
 your project file are highlighted.
+Note: On Windows platforms: You need to set 
vers to 0-dev and use the latest master branch for 
both repositories.
 $ more project.yml
 project.name: my_project
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/latest/os/tutorials/blinky_primo/index.html
--
diff --git a/latest/os/tutorials/blinky_primo/index.html 
b/latest/os/tutorials/blinky_primo/index.html
index 37c222f..920c63b 100644
--- a/latest/os/tutorials/blinky_primo/index.html
+++ b/latest/os/tutorials/blinky_primo/index.html
@@ -671,7 +671,7 @@ App image succesfully generated: 
~/dev/myproj/bin/targets/primoblinky/app/apps/b
 
 
 Note: If you are using the OpenOCD debugger,  you do not 
need to attach this connector. 
-Load the 
Bootloader and the Blinky Application Image
+Load the Bootloader
 Run the newt load primo_boot command to load the bootloader 
onto the board:
 $ newt load primo_boot
 Loading bootloader
@@ -679,8 +679,15 @@ $
 
 
 
-
-Run the newt load primoblinky command to load the Blinky 
application image onto the board.
+Note: If you are using OpenOCD on a Windows platform and 
you get an unable to find CMSIS-DAP device error, you will need to 
download and install the mbed Windows serial port driver from https://developer.mbed.org/handbook/Windows-serial-configuration;>https://developer.mbed.org/handbook/Windows-serial-configuration.
 Follow the instructions from the site to install the driver.  Here are some 
additional notes about the installation:
+
+The instructions indicate that the mbed Windows serial port driver is not 
required for Windows 10. If you are using Windows 10 and get the unable 
to find CMSIS-DAP device error, we recommend that you install the 
driver.
+If the 

[4/5] incubator-mynewt-site git commit: This closes #183. This closes #184. Adding instructions to use Visual Studio for Mynewt developers

2017-05-22 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/develop/mkdocs/search_index.json
--
diff --git a/develop/mkdocs/search_index.json b/develop/mkdocs/search_index.json
index 32cc45b..1282385 100644
--- a/develop/mkdocs/search_index.json
+++ b/develop/mkdocs/search_index.json
@@ -222,7 +222,7 @@
 }, 
 {
 "location": "/newt/install/newt_windows/", 
-"text": "Installing Newt on Windows\n\n\nYou can develop and build 
Mynewt OS applications for your target boards on the Windows platform.  This 
page shows you how to build the newt tool from the lastest source on the master 
branch of the \nMynewt newt git repository\n.  The tool is written in Go 
(golang).\n\n\nIn Windows, we use MinGW as the development environment to build 
and run Mynewt OS applications for target boards. MinGW runs the bash shell and 
provides a Unix-like environment. This provides a uniform way to build Mynewt 
OS applications. The Mynewt documentation and tutorials use Unix commands and 
you can use the same Unix commands on MinGW to follow the tutorials. The 
documentation will note any commands or behaviors that are specific to 
Windows.\n\n\nThis guide shows you how to perform the 
following:\n\n\n\n\nInstall MSYS2/MinGW. \n\n\nInstall Git.\n\n\nInstall Go. 
\n\n\nSetup the Go environment.\n\n\nDownload the source, build, and install 
the newt tool.\n\n\n
 \n\n\n\nStep 1: Installing MSYS2/MinGW\n\n\nMSYS2/MinGW provides a bash shell 
and tools to build applications that run on Windows. It includes three 
subsystems:\n\n\n\n\nMSYS2 toolchain to build POSIX applications that run on 
Windows. \n\n\nMinGW32 toolchains to build 32 bit native Windows applications.  
\n\n\nMinGW64 toolchains to build 64 bit native Windows applications.  
\n\n\n\n\nThe subsystems run the bash shell and provide a Unix-like 
environment. You can also run Windows applications from the shell. We will use 
the MinGW subsystem.\n\n\nTo install and setup MSYS2 and 
MinGW:\n\n\n\n\nDownload and run the \nMSYS2 installer\n.  Select the 64 bit 
version if you are running on a 64 bit platform. Follow the prompts and check 
the \nRun MSYS2 now\n checkbox on the \nInstallation Complete\n dialog. 
\n\n\n\n\nIn the MSYS2 terminal, run the \npacman -Syuu\n command. If you get a 
message to run the update again, close the terminal and run the \npacman 
-Syuu\n command in a new terminal. \
 n\n\nTo start a new MSYS2 terminal, select the \"MSYS2 MSYS\" application from 
the Windows start menu.\n\n\n\n\n\n\nAdd a new user variable named 
\nMSYS2_PATH_TYPE\n and set the value to \ninherit\n in your Windows 
environment. This enables the MSYS2 and MinGW bash to inherit your Windows user 
\nPath\n values. \n\n\nTo add the variable,  select properties for your 
computer \n Advanced system settings \n Environment Variables \n 
New\n\n\n\n\n\n\nRun the \npacman -Su vim\n command to install the vim editor. 
\n\n\nNote:\nYou can also use a Windows editor. You can access your files from 
the \nC:\\\nmsys-install-folder\n\\home\\\nusername\n folder, where 
\nmsys-install-folder\n is the folder you installed MSYS2 in. For example, if 
you installed MSYS2 in the \nmsys64\n folder, your files are stored in 
\nC:\\msys64\\home\\\nusername\n\n\n\n\n\n\nYou will need to start a MinGW 
terminal to run the commands specified in the Mynewt documentation and  
tutorials.  To start a MinGW terminal, sele
 ct the \"MSYS2 Mingw\" application from the start Menu (you can use either 
MinGW32 or MinGW64). \nIn Windows, we use the MingGW subsystem to build  Mynewt 
tools and applications.  \n\n\nStep 2: Installing Git for Windows\n\n\nDownload 
and install \nGit for Windows\n if it is not already installed.\n\n\nStep 3: 
Installing Go\n\n\nDownload and install the latest version of \nGo\n. Newt 
requires Go version 1.7 or higher.\n\n\nStep 4: Setting Up Your Go 
Environment\n\n\nThis section describes the Go environment and how to setup a 
Go workspace.  Go provides an environment to compile Go code,  construct Go 
packages,  and import Go code.  You will use Go commands to import the newt 
package repository into your local Go environment.  The Go language environment 
dictates a specific directory structure, or workspace in Go parlance. It must 
contain three sibling directories with the names \nsrc\n, \npkg\n and \nbin\n: 
\n\n\n\n\nsrc contains Go source files organized into packages (one package 
 per directory)\n\n\npkg contains package objects\n\n\nbin contains the Go 
application executables that Go builds and installs.\n\n\n\n\nThe \nGOPATH\n 
environment variable specifies the location of your workspace.  To setup this 
workspace environment, create a \ndev\n directory and then a \ngo\n directory 
under it. Set the GOPATH environment variable to this directory where you will 
clone the newt repository.\n\n\nStart up a MinGW terminal and run the following 
commands 

[5/5] incubator-mynewt-site git commit: This closes #183. This closes #184. Adding instructions to use Visual Studio for Mynewt developers

2017-05-22 Thread aditi
This closes #183. This closes #184. Adding instructions to use Visual Studio 
for Mynewt developers


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

Branch: refs/heads/asf-site
Commit: 65dc6d41afd9c1d6e78ef694225297cd179743e5
Parents: 72f0a44
Author: aditihilbert 
Authored: Mon May 22 09:40:25 2017 -0700
Committer: aditihilbert 
Committed: Mon May 22 09:40:25 2017 -0700

--
 develop/faq/answers/index.html  |   8 +
 develop/faq/go_env/index.html   |  12 +-
 develop/faq/how_to_edit_docs/index.html |  12 +-
 develop/faq/ide/index.html  | 546 +++
 develop/faq/pics/debug_new_config_small.png | Bin 0 -> 71855 bytes
 develop/faq/pics/gdb_debug_small.png| Bin 0 -> 134895 bytes
 develop/faq/pics/gdb_server_small.png   | Bin 0 -> 99128 bytes
 develop/faq/pics/gdb_small.png  | Bin 0 -> 59655 bytes
 develop/faq/pics/integrated_terminal_small.png  | Bin 0 -> 51077 bytes
 develop/faq/pics/launch_small.png   | Bin 0 -> 92234 bytes
 develop/faq/pics/task_json_small.png| Bin 0 -> 93487 bytes
 develop/faq/pics/task_runner_small.png  | Bin 0 -> 92407 bytes
 develop/faq/pics/task_select_small.png  | Bin 0 -> 66049 bytes
 develop/faq/pics/task_start_small.png   | Bin 0 -> 99242 bytes
 develop/mkdocs/search_index.json| 124 -
 develop/newt/install/newt_windows/index.html|   9 +-
 develop/newtmgr/install_windows/index.html  |   2 +-
 .../os/get_started/project_create/index.html|   2 +-
 develop/os/tutorials/arduino_zero/index.html|   1 +
 develop/os/tutorials/blinky_primo/index.html|  14 +-
 .../os/tutorials/blinky_stm32f4disc/index.html  |   8 +
 develop/os/tutorials/olimex/index.html  |   6 +-
 .../tutorials/project-stm32-slinky/index.html   |   9 +
 develop/os/tutorials/rbnano2/index.html |  18 +-
 .../os/tutorials/wi-fi_on_arduino/index.html|   5 +-
 develop/sitemap.xml |  32 +-
 faq/pics/debug_new_config_small.png | Bin 0 -> 71855 bytes
 faq/pics/gdb_debug_small.png| Bin 0 -> 134895 bytes
 faq/pics/gdb_server_small.png   | Bin 0 -> 99128 bytes
 faq/pics/gdb_small.png  | Bin 0 -> 59655 bytes
 faq/pics/integrated_terminal_small.png  | Bin 0 -> 51077 bytes
 faq/pics/launch_small.png   | Bin 0 -> 92234 bytes
 faq/pics/task_json_small.png| Bin 0 -> 93487 bytes
 faq/pics/task_runner_small.png  | Bin 0 -> 92407 bytes
 faq/pics/task_select_small.png  | Bin 0 -> 66049 bytes
 faq/pics/task_start_small.png   | Bin 0 -> 99242 bytes
 latest/faq/answers/index.html   |   8 +
 latest/faq/go_env/index.html|  12 +-
 latest/faq/how_to_edit_docs/index.html  |  12 +-
 latest/faq/ide/index.html   | 546 +++
 latest/faq/pics/debug_new_config_small.png  | Bin 0 -> 71855 bytes
 latest/faq/pics/gdb_debug_small.png | Bin 0 -> 134895 bytes
 latest/faq/pics/gdb_server_small.png| Bin 0 -> 99128 bytes
 latest/faq/pics/gdb_small.png   | Bin 0 -> 59655 bytes
 latest/faq/pics/integrated_terminal_small.png   | Bin 0 -> 51077 bytes
 latest/faq/pics/launch_small.png| Bin 0 -> 92234 bytes
 latest/faq/pics/task_json_small.png | Bin 0 -> 93487 bytes
 latest/faq/pics/task_runner_small.png   | Bin 0 -> 92407 bytes
 latest/faq/pics/task_select_small.png   | Bin 0 -> 66049 bytes
 latest/faq/pics/task_start_small.png| Bin 0 -> 99242 bytes
 latest/mkdocs/search_index.json | 124 -
 latest/newt/install/newt_windows/index.html |   9 +-
 latest/newtmgr/install_windows/index.html   |   2 +-
 latest/os/get_started/project_create/index.html |   2 +-
 latest/os/tutorials/arduino_zero/index.html |   1 +
 latest/os/tutorials/blinky_primo/index.html |  14 +-
 .../os/tutorials/blinky_stm32f4disc/index.html  |   8 +
 latest/os/tutorials/olimex/index.html   |   6 +-
 .../tutorials/project-stm32-slinky/index.html   |   9 +
 latest/os/tutorials/rbnano2/index.html  |  18 +-
 latest/os/tutorials/wi-fi_on_arduino/index.html |   5 +-
 latest/sitemap.xml  |  32 +-
 sitemap.xml |  26 +-
 v0_9_0/faq/pics/debug_new_config_small.png  | Bin 0 -> 71855 bytes
 v0_9_0/faq/pics/gdb_debug_small.png | Bin 0 -> 

[2/5] incubator-mynewt-site git commit: This closes #183. This closes #184. Adding instructions to use Visual Studio for Mynewt developers

2017-05-22 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/65dc6d41/latest/mkdocs/search_index.json
--
diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json
index 32cc45b..1282385 100644
--- a/latest/mkdocs/search_index.json
+++ b/latest/mkdocs/search_index.json
@@ -222,7 +222,7 @@
 }, 
 {
 "location": "/newt/install/newt_windows/", 
-"text": "Installing Newt on Windows\n\n\nYou can develop and build 
Mynewt OS applications for your target boards on the Windows platform.  This 
page shows you how to build the newt tool from the lastest source on the master 
branch of the \nMynewt newt git repository\n.  The tool is written in Go 
(golang).\n\n\nIn Windows, we use MinGW as the development environment to build 
and run Mynewt OS applications for target boards. MinGW runs the bash shell and 
provides a Unix-like environment. This provides a uniform way to build Mynewt 
OS applications. The Mynewt documentation and tutorials use Unix commands and 
you can use the same Unix commands on MinGW to follow the tutorials. The 
documentation will note any commands or behaviors that are specific to 
Windows.\n\n\nThis guide shows you how to perform the 
following:\n\n\n\n\nInstall MSYS2/MinGW. \n\n\nInstall Git.\n\n\nInstall Go. 
\n\n\nSetup the Go environment.\n\n\nDownload the source, build, and install 
the newt tool.\n\n\n
 \n\n\n\nStep 1: Installing MSYS2/MinGW\n\n\nMSYS2/MinGW provides a bash shell 
and tools to build applications that run on Windows. It includes three 
subsystems:\n\n\n\n\nMSYS2 toolchain to build POSIX applications that run on 
Windows. \n\n\nMinGW32 toolchains to build 32 bit native Windows applications.  
\n\n\nMinGW64 toolchains to build 64 bit native Windows applications.  
\n\n\n\n\nThe subsystems run the bash shell and provide a Unix-like 
environment. You can also run Windows applications from the shell. We will use 
the MinGW subsystem.\n\n\nTo install and setup MSYS2 and 
MinGW:\n\n\n\n\nDownload and run the \nMSYS2 installer\n.  Select the 64 bit 
version if you are running on a 64 bit platform. Follow the prompts and check 
the \nRun MSYS2 now\n checkbox on the \nInstallation Complete\n dialog. 
\n\n\n\n\nIn the MSYS2 terminal, run the \npacman -Syuu\n command. If you get a 
message to run the update again, close the terminal and run the \npacman 
-Syuu\n command in a new terminal. \
 n\n\nTo start a new MSYS2 terminal, select the \"MSYS2 MSYS\" application from 
the Windows start menu.\n\n\n\n\n\n\nAdd a new user variable named 
\nMSYS2_PATH_TYPE\n and set the value to \ninherit\n in your Windows 
environment. This enables the MSYS2 and MinGW bash to inherit your Windows user 
\nPath\n values. \n\n\nTo add the variable,  select properties for your 
computer \n Advanced system settings \n Environment Variables \n 
New\n\n\n\n\n\n\nRun the \npacman -Su vim\n command to install the vim editor. 
\n\n\nNote:\nYou can also use a Windows editor. You can access your files from 
the \nC:\\\nmsys-install-folder\n\\home\\\nusername\n folder, where 
\nmsys-install-folder\n is the folder you installed MSYS2 in. For example, if 
you installed MSYS2 in the \nmsys64\n folder, your files are stored in 
\nC:\\msys64\\home\\\nusername\n\n\n\n\n\n\nYou will need to start a MinGW 
terminal to run the commands specified in the Mynewt documentation and  
tutorials.  To start a MinGW terminal, sele
 ct the \"MSYS2 Mingw\" application from the start Menu (you can use either 
MinGW32 or MinGW64). \nIn Windows, we use the MingGW subsystem to build  Mynewt 
tools and applications.  \n\n\nStep 2: Installing Git for Windows\n\n\nDownload 
and install \nGit for Windows\n if it is not already installed.\n\n\nStep 3: 
Installing Go\n\n\nDownload and install the latest version of \nGo\n. Newt 
requires Go version 1.7 or higher.\n\n\nStep 4: Setting Up Your Go 
Environment\n\n\nThis section describes the Go environment and how to setup a 
Go workspace.  Go provides an environment to compile Go code,  construct Go 
packages,  and import Go code.  You will use Go commands to import the newt 
package repository into your local Go environment.  The Go language environment 
dictates a specific directory structure, or workspace in Go parlance. It must 
contain three sibling directories with the names \nsrc\n, \npkg\n and \nbin\n: 
\n\n\n\n\nsrc contains Go source files organized into packages (one package 
 per directory)\n\n\npkg contains package objects\n\n\nbin contains the Go 
application executables that Go builds and installs.\n\n\n\n\nThe \nGOPATH\n 
environment variable specifies the location of your workspace.  To setup this 
workspace environment, create a \ndev\n directory and then a \ngo\n directory 
under it. Set the GOPATH environment variable to this directory where you will 
clone the newt repository.\n\n\nStart up a MinGW terminal and run the following 
commands to 

[2/2] incubator-mynewt-site git commit: This closes #179 and #180. Added instructions for installing tools including newt on Windows This closes #182. Tell Windows user to change vers to 0-dev to get

2017-05-14 Thread aditi
This closes #179 and #180. Added instructions for installing tools including 
newt on Windows
This closes #182. Tell Windows user to change vers to 0-dev to get 
apache-mynewt-core master branch.


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

Branch: refs/heads/master
Commit: 5ec12143e5822e47a7475d108d6b2454166af52b
Parents: 189cb93
Author: aditihilbert 
Authored: Fri May 12 12:37:57 2017 -0700
Committer: aditihilbert 
Committed: Sun May 14 14:26:06 2017 -0700

--
 docs/newt/install/newt_windows.md   | 160 +++
 docs/newtmgr/install_windows.md |  68 
 .../os/tutorials/pics/device_manager_ft232H.png | Bin 0 -> 67817 bytes
 .../tutorials/pics/device_manager_no_ft232H.png | Bin 0 -> 67365 bytes
 docs/os/tutorials/pics/putty.png| Bin 0 -> 56099 bytes
 5 files changed, 228 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5ec12143/docs/newt/install/newt_windows.md
--
diff --git a/docs/newt/install/newt_windows.md 
b/docs/newt/install/newt_windows.md
new file mode 100644
index 000..5b9359f
--- /dev/null
+++ b/docs/newt/install/newt_windows.md
@@ -0,0 +1,160 @@
+## Installing Newt on Windows
+
+You can develop and build Mynewt OS applications for your target boards on the 
Windows platform.  This page shows you how to build the newt tool from the 
lastest source on the master branch of the [Mynewt newt git 
repository](https://github.com/apache/incubator-mynewt-newt).  The tool is 
written in Go (golang).
+  
+In Windows, we use MinGW as the development environment to build and run 
Mynewt OS applications for target boards. MinGW runs the bash shell and 
provides a Unix-like environment. This provides a uniform way to build Mynewt 
OS applications. The Mynewt documentation and tutorials use Unix commands and 
you can use the same Unix commands on MinGW to follow the tutorials. The 
documentation will note any commands or behaviors that are specific to Windows.
+
+This guide shows you how to perform the following:
+
+1. Install MSYS2/MinGW. 
+2. Install Git.
+3. Install Go. 
+4. Setup the Go environment.
+5. Download the source, build, and install the newt tool.
+
+
+### Step 1: Installing MSYS2/MinGW
+MSYS2/MinGW provides a bash shell and tools to build applications that run on 
Windows. It includes three subsystems:
+
+* MSYS2 toolchain to build POSIX applications that run on Windows. 
+* MinGW32 toolchains to build 32 bit native Windows applications.  
+* MinGW64 toolchains to build 64 bit native Windows applications.  
+
+The subsystems run the bash shell and provide a Unix-like environment. You can 
also run Windows applications from the shell. We will use the MinGW subsystem.
+
+To install and setup MSYS2 and MinGW:
+
+1. Download and run the [MSYS2 installer](http://www.msys2.org).  Select the 
64 bit version if you are running on a 64 bit platform. Follow the prompts and 
check the `Run MSYS2 now` checkbox on the `Installation Complete` dialog. 
+2. In the MSYS2 terminal, run the `pacman -Syuu` command. If you get a message 
to run the update again, close the terminal and run the `pacman -Syuu` command 
in a new terminal. 
+   
+   To start a new MSYS2 terminal, select the "MSYS2 MSYS" application from 
the Windows start menu.
+
+3. Add a new user variable named **MSYS2_PATH_TYPE** and set the value to 
**inherit** in your Windows environment. This enables the MSYS2 and MinGW bash 
to inherit your Windows user **Path** values. 
+   
+   To add the variable,  select properties for your computer > Advanced 
system settings > Environment Variables > New
+
+4. Run the `pacman -Su vim` command to install the vim editor. 
+   
+   **Note:**You can also use a Windows editor. You can access your files 
from the **C:\msys-install-folder\home\username** folder, where 
**msys-install-folder** is the folder you installed MSYS2 in. For example, if 
you installed MSYS2 in the **msys64** folder, your files are stored in 
**C:\msys64\home\username**
+
+You will need to start a MinGW terminal to run the commands specified in the 
Mynewt documentation and  tutorials.  To start a MinGW terminal, select the 
"MSYS2 Mingw" application from the start Menu (you can use either MinGW32 or 
MinGW64). 
+In Windows, we use the MingGW subsystem to build  Mynewt tools and 
applications.  
+
+### Step 2: Installing Git for Windows
+Download and install [Git for 

[1/2] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-14 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master 690d31307 -> 5ec12143e


changed runtimeinc to runtimeco in docs, updated install instructions for linux 
, blinky for stm32F4-discovery


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

Branch: refs/heads/master
Commit: 189cb93a7698627482269b6a721eb357ba745b3b
Parents: 690d313
Author: aditihilbert 
Authored: Fri May 5 14:24:44 2017 -0700
Committer: aditihilbert 
Committed: Fri May 5 14:24:44 2017 -0700

--
 docs/os/get_started/native_install_intro.md |  17 ++
 docs/os/tutorials/blinky_stm32f4disc.md | 207 +++
 docs/os/tutorials/pics/stm32f4_disc.jpg | Bin 0 -> 40575 bytes
 3 files changed, 224 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/189cb93a/docs/os/get_started/native_install_intro.md
--
diff --git a/docs/os/get_started/native_install_intro.md 
b/docs/os/get_started/native_install_intro.md
new file mode 100644
index 000..2cadfa1
--- /dev/null
+++ b/docs/os/get_started/native_install_intro.md
@@ -0,0 +1,17 @@
+# Native Installation 
+
+This section shows you how to install tools on Mac OS and Linux platforms to 
develop, build, run, and debug Mynewt OS applications. You can build Mynewt OS 
applications to run as a native application on your computer or to run on your 
target board. These tools include:
+
+* Newt tool - Tool to create, build, load, and debug a mynewt target.
+
+* See [Installing the Newt Tool on Mac OS](/newt/install/newt_mac.md) to 
install on Mac OS.
+* See [Installing the Newt Tool on Linux](/newt/install/newt_linux.md) to 
install on Linux.
+
+
+
+
+* Native toolchain - Native toolchain to build and run Mynewt OS as a native 
application on your computer.
+  (See [Installing Native Toolchain](/os/get_started/native_install.md)).  
+
+* Cross toolchain for ARM - Cross toolchain for ARM to build and run a Mynewt 
OS application on a target board
+  (See [Installing Cross Tools for ARMs](/os/get_started/cross_tools.md)).

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/189cb93a/docs/os/tutorials/blinky_stm32f4disc.md
--
diff --git a/docs/os/tutorials/blinky_stm32f4disc.md 
b/docs/os/tutorials/blinky_stm32f4disc.md
new file mode 100644
index 000..cf0e74e
--- /dev/null
+++ b/docs/os/tutorials/blinky_stm32f4disc.md
@@ -0,0 +1,207 @@
+## Blinky, your "Hello World!", on STM32F4-Discovery 
+This tutorial shows you how to create, build, and run the Blinky application 
on the STM32F4-Discovery board.
+
+
+
+
+### Prerequisites
+
+* Meet the prerequisites listed in [Project Blinky](/os/tutorials/blinky.md).
+* Have a STM32F4-Discovery board.
+* Have a USB type A to Mini-B cable.
+* Install a patched version of OpenOCD 0.10.0 described in [Install 
OpenOCD](os/get_started/cross_tools/).  
+
+### Create a Project  
+Create a new project if you do not have an existing one.  You can skip this 
step and proceed to [create the targets](#create_targets) if you already have a 
project created.  
+
+Run the following commands to create a new project:
+
+```no-highlight
+$ mkdir ~/dev
+$ cd ~/dev
+$ newt new myproj
+Downloading project skeleton from apache/incubator-mynewt-blinky...
+Installing skeleton in myproj...
+Project myproj successfully created.
+$ cd myproj
+$ newt install
+apache-mynewt-core
+$
+``` 
+
+
+
+### Create the Targets
+
+Create two targets for the STM32F4-Discovery board - one for the bootloader 
and one for the Blinky application.
+
+Run the following `newt target` commands, from your project directory, to 
create a bootloader target. We name the target `stm32f4disc_boot`:
+
+```no-highlight
+$ newt target create stm32f4disc_boot
+$ newt target set stm32f4disc_boot app=@apache-mynewt-core/apps/boot
+$ newt target set stm32f4disc_boot 
bsp=@apache-mynewt-core/hw/bsp/stm32f4discovery
+$ newt target set stm32f4disc_boot build_profile=optimized
+```
+
+
+Run the following `newt target` commands to create a target for the Blinky 
application. We name the target `stm32f4disc_blinky`:
+
+```no-highlight
+$ newt target create stm32f4disc_blinky
+$ newt target set stm32f4disc_blinky app=apps/blinky
+$ newt target set stm32f4disc_blinky 
bsp=@apache-mynewt-core/hw/bsp/stm32f4discovery
+$ newt target set stm32f4disc_blinky build_profile=debug
+```
+
+You can run the `newt target show` command to verify 

incubator-mynewt-site git commit: Merge branch 'windows_install' of https://github.com/cwanda/incubator-mynewt-site into develop

2017-05-14 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop 7d0d5f8a0 -> 80bbb500f


Merge branch 'windows_install' of 
https://github.com/cwanda/incubator-mynewt-site into develop

This closes #182.

Tell Windows user to change vers to 0-dev to get apache-mynewt-core master 
branch.
newt 1.0.0-dev version pulls down project.yml with vers: 1-latest. This pulls 
down apache-mynewt-core mynewt_1_0_0_tag.
Windows users need to use the master branch.


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

Branch: refs/heads/develop
Commit: 80bbb500fb036eb85fbe5ba4eceb681edff463b5
Parents: 7d0d5f8
Author: cwanda 
Authored: Sun May 14 12:52:45 2017 -0700
Committer: aditihilbert 
Committed: Sun May 14 14:09:40 2017 -0700

--
 docs/os/get_started/project_create.md | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/80bbb500/docs/os/get_started/project_create.md
--
diff --git a/docs/os/get_started/project_create.md 
b/docs/os/get_started/project_create.md
index cd24198..ecea21e 100644
--- a/docs/os/get_started/project_create.md
+++ b/docs/os/get_started/project_create.md
@@ -103,6 +103,8 @@ repository.apache-mynewt-core:
 
 Changing vers to 0-dev will put you on the latest master branch. **This branch 
may not be stable and you may encounter bugs or other problems.**
 
+**Note:** On Windows platforms,  you will need to change vers to 0-dev and use 
the latest master branch. Release 1.0.0 is not supported on Windows.
+
 
 Run the `newt install` command, from your project base directory (myproj), to 
fetch the source repository and dependencies: 
 



[2/2] incubator-mynewt-site git commit: Note to Windows users about using the latest on master

2017-05-14 Thread aditi
Note to Windows users about using the latest on master


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

Branch: refs/heads/asf-site
Commit: 72f0a446181f336059c055913c978129dd16493c
Parents: 6e0ec54
Author: aditihilbert 
Authored: Sun May 14 14:20:37 2017 -0700
Committer: aditihilbert 
Committed: Sun May 14 14:20:37 2017 -0700

--
 develop/mkdocs/search_index.json|  4 +--
 .../os/get_started/project_create/index.html|  1 +
 develop/sitemap.xml | 26 ++--
 latest/mkdocs/search_index.json |  4 +--
 latest/os/get_started/project_create/index.html |  1 +
 latest/sitemap.xml  | 26 ++--
 sitemap.xml | 26 ++--
 v0_9_0/sitemap.xml  | 26 ++--
 8 files changed, 58 insertions(+), 56 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/72f0a446/develop/mkdocs/search_index.json
--
diff --git a/develop/mkdocs/search_index.json b/develop/mkdocs/search_index.json
index 9bc34be..32cc45b 100644
--- a/develop/mkdocs/search_index.json
+++ b/develop/mkdocs/search_index.json
@@ -407,7 +407,7 @@
 }, 
 {
 "location": "/os/get_started/project_create/", 
-"text": "Creating Your First Mynewt Project\n\n\nThis page shows 
you how to create a Mynewt project using the \nnewt\n command-line tool. The 
project is a blinky application that toggles a pin. The application uses the 
Mynewt's simulated hardware and runs as a native application on Mac OS and 
Linux. \n\n\nNote:\n The Mynewt simulator is not yet supported on Windows. If 
you are using the native install option (not the Docker option), you will need 
to create the blinky application for a target board.  We recommend that you 
read the section on creating a new project and fetching the source repository 
to understand the Mynewt repository structure, create a new project, and fetch 
the source dependencies before proceeding to one of the \nBlinky Tutorials\n. 
\n\n\nThis guide shows you how to:\n\n\n\n\nCreate a new project and fetch the 
source repository and dependecies.\n\n\nTest the project packages (Not 
supported on Windows).\n\n\nBuild and run the simulated blinky applicatio
 n (Not supported on Windows). \n\n\n\n\n\n\nPrerequisites\n\n\n\n\nHave 
Internet connectivity to fetch remote Mynewt components.\n\n\nInstall the newt 
tool: \n\n\nIf you have taken the native install option,  see the installation 
instructions for \nMac OS\n, \nLinux\n, or \nWindows\n. \n\n\nIf you have taken 
the Docker option, you have already installed Newt.\n\n\n\n\n\n\nInstall the 
\nnative toolchain\n to compile and build a Mynewt native application. 
\n\n\n\n\n\n\nCreating a New Project and Fetching the Source 
Repository\n\n\nThis section describes how to use the newt tool to create a new 
project and fetch the core mynewt source repository.\n\n\n\n\nCreating a New 
Project\n\n\nChoose a name for your project. We name the project \nmyproj\n.  
\n\n\n\nRun the \nnewt new myproj\n command, from your \ndev\n directory, to 
create a new project:\n\n\nNote:\n This tutorial assumes you created a \ndev\n 
directory under your home directory. \n\n\n$cd ~/dev\n$ newt new 
myproj\nDownloading pr
 oject skeleton from apache/incubator-mynewt-blinky...\nInstalling skeleton in 
myproj...\nProject myproj successfully created.\n\n\n\n\n\n\n\nThe newt tool 
creates a project base directory name \nmyproj\n.  All newt tool commands are 
run from the project base directory.  The newt tool populates this new project 
with a base skeleton of a new Apache Mynewt project in the project base 
directory.  It has the following structure: \n\n\nNote\n: If you do not have 
\ntree\n, run  \nbrew install tree\n to install on Mac OS,  \nsudo apt-get 
install tree\n to install on Linux, and \npacman -Su tree\n from a MinGW 
terminal to install on Windows.\n\n\n$ cd myproj\n$ tree 
\n.\n\u251c\u2500\u2500 DISCLAIMER\n\u251c\u2500\u2500 
LICENSE\n\u251c\u2500\u2500 NOTICE\n\u251c\u2500\u2500 
README.md\n\u251c\u2500\u2500 apps\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 
blinky\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 pkg.yml\n\u2502\u00a0\u00a0   
  \u2514\u2500\u2500 src\n\u2502\u00a0\u00a0 \u2514\u2500\u
 2500 main.c\n\u251c\u2500\u2500 project.yml\n\u2514\u2500\u2500 targets\n
\u251c\u2500\u2500 my_blinky_sim\n

[1/2] incubator-mynewt-site git commit: Note to Windows users about using the latest on master

2017-05-14 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 6e0ec54d0 -> 72f0a4461


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/72f0a446/latest/mkdocs/search_index.json
--
diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json
index 9bc34be..32cc45b 100644
--- a/latest/mkdocs/search_index.json
+++ b/latest/mkdocs/search_index.json
@@ -407,7 +407,7 @@
 }, 
 {
 "location": "/os/get_started/project_create/", 
-"text": "Creating Your First Mynewt Project\n\n\nThis page shows 
you how to create a Mynewt project using the \nnewt\n command-line tool. The 
project is a blinky application that toggles a pin. The application uses the 
Mynewt's simulated hardware and runs as a native application on Mac OS and 
Linux. \n\n\nNote:\n The Mynewt simulator is not yet supported on Windows. If 
you are using the native install option (not the Docker option), you will need 
to create the blinky application for a target board.  We recommend that you 
read the section on creating a new project and fetching the source repository 
to understand the Mynewt repository structure, create a new project, and fetch 
the source dependencies before proceeding to one of the \nBlinky Tutorials\n. 
\n\n\nThis guide shows you how to:\n\n\n\n\nCreate a new project and fetch the 
source repository and dependecies.\n\n\nTest the project packages (Not 
supported on Windows).\n\n\nBuild and run the simulated blinky applicatio
 n (Not supported on Windows). \n\n\n\n\n\n\nPrerequisites\n\n\n\n\nHave 
Internet connectivity to fetch remote Mynewt components.\n\n\nInstall the newt 
tool: \n\n\nIf you have taken the native install option,  see the installation 
instructions for \nMac OS\n, \nLinux\n, or \nWindows\n. \n\n\nIf you have taken 
the Docker option, you have already installed Newt.\n\n\n\n\n\n\nInstall the 
\nnative toolchain\n to compile and build a Mynewt native application. 
\n\n\n\n\n\n\nCreating a New Project and Fetching the Source 
Repository\n\n\nThis section describes how to use the newt tool to create a new 
project and fetch the core mynewt source repository.\n\n\n\n\nCreating a New 
Project\n\n\nChoose a name for your project. We name the project \nmyproj\n.  
\n\n\n\nRun the \nnewt new myproj\n command, from your \ndev\n directory, to 
create a new project:\n\n\nNote:\n This tutorial assumes you created a \ndev\n 
directory under your home directory. \n\n\n$cd ~/dev\n$ newt new 
myproj\nDownloading pr
 oject skeleton from apache/incubator-mynewt-blinky...\nInstalling skeleton in 
myproj...\nProject myproj successfully created.\n\n\n\n\n\n\n\nThe newt tool 
creates a project base directory name \nmyproj\n.  All newt tool commands are 
run from the project base directory.  The newt tool populates this new project 
with a base skeleton of a new Apache Mynewt project in the project base 
directory.  It has the following structure: \n\n\nNote\n: If you do not have 
\ntree\n, run  \nbrew install tree\n to install on Mac OS,  \nsudo apt-get 
install tree\n to install on Linux, and \npacman -Su tree\n from a MinGW 
terminal to install on Windows.\n\n\n$ cd myproj\n$ tree 
\n.\n\u251c\u2500\u2500 DISCLAIMER\n\u251c\u2500\u2500 
LICENSE\n\u251c\u2500\u2500 NOTICE\n\u251c\u2500\u2500 
README.md\n\u251c\u2500\u2500 apps\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 
blinky\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 pkg.yml\n\u2502\u00a0\u00a0   
  \u2514\u2500\u2500 src\n\u2502\u00a0\u00a0 \u2514\u2500\u
 2500 main.c\n\u251c\u2500\u2500 project.yml\n\u2514\u2500\u2500 targets\n
\u251c\u2500\u2500 my_blinky_sim\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 
pkg.yml\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 target.yml\n
\u2514\u2500\u2500 unittest\n\u251c\u2500\u2500 pkg.yml\n
\u2514\u2500\u2500 target.yml\n\n6 directories, 11 files\n\n\n\n\n\n\n\nThe 
newt tool installs the following files for a project in the project base 
directory:\n\n\n\n\nThe file \nproject.yml\n contains the repository list that 
the project uses to fetch\nits packages. Your project is a collection of 
repositories.  In this case, the project only \ncomprises the core mynewt 
repository.  Later, you will add more repositories to include other mynewt 
components.\n\n\nThe file \napps/blinky/pkg.yml\n contains the description of 
your application and its package dependencies.\n\n\nA \ntarget\n directory that 
contains the \nmy_blinky_sim\n directory. The \nmy_blinky_sim\n directory \na 
target information
  to build a version of myproj.  Use \nnewt target show\n to see available 
build \ntargets.\n\n\nA non-buildable target called \nunittest\n.  This is used 
internally by \nnewt\n and is not a formal build target.\n\n\n\n\nNote:\n The 
actual code and package files are not installed (except the template for 
\nmain.c\n).  See the next step to install the packages.\n\n\n\n\nFetching 

[1/3] incubator-mynewt-newt git commit: Support for Windows Path to fix newt test problems - Convert paths to slashes for paths returned from filepath.Dir and filepath.Glob to make newt test work corr

2017-05-12 Thread aditi
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master ca783a7dd -> 98b9a71dc


Support for Windows Path to fix newt test problems
 -  Convert paths to slashes for paths returned from filepath.Dir and 
filepath.Glob to make newt test work correctly.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/03416d7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/03416d7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/03416d7f

Branch: refs/heads/master
Commit: 03416d7f527d188d2f63d7b2f604ccb45b477cfa
Parents: 25d8734
Author: cwanda 
Authored: Mon May 1 05:34:04 2017 -0700
Committer: cwanda 
Committed: Mon May 1 06:25:18 2017 -0700

--
 newt/builder/selftest.go   | 3 ++-
 newt/cli/build_cmds.go | 5 +++--
 newt/toolchain/compiler.go | 1 +
 3 files changed, 6 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/03416d7f/newt/builder/selftest.go
--
diff --git a/newt/builder/selftest.go b/newt/builder/selftest.go
index fc7268c..efa0e40 100644
--- a/newt/builder/selftest.go
+++ b/newt/builder/selftest.go
@@ -133,7 +133,8 @@ func (b *Builder) testOwner(bpkg *BuildPackage) 
*BuildPackage {
curPath := bpkg.rpkg.Lpkg.BasePath()
 
for {
-   parentPath := filepath.Dir(curPath)
+   parentPath := filepath.ToSlash(filepath.Dir(curPath))
+
if parentPath == project.GetProject().BasePath || parentPath == 
"." {
return nil
}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/03416d7f/newt/cli/build_cmds.go
--
diff --git a/newt/cli/build_cmds.go b/newt/cli/build_cmds.go
index 5fb7944..f2a4cc7 100644
--- a/newt/cli/build_cmds.go
+++ b/newt/cli/build_cmds.go
@@ -67,7 +67,7 @@ func testablePkgs() map[*pkg.LocalPackage]struct{} {
// Next add first ancestor of each test package.
for _, testPkgItf := range testPkgs {
testPkg := testPkgItf.(*pkg.LocalPackage)
-   for cur := filepath.Dir(testPkg.BasePath()); cur != 
proj.BasePath; cur = filepath.Dir(cur) {
+   for cur := filepath.ToSlash(filepath.Dir(testPkg.BasePath())); 
cur != proj.BasePath; cur = filepath.ToSlash(filepath.Dir(cur)) {
lpkg := pathLpkgMap[cur]
if lpkg != nil && lpkg.Type() != 
pkg.PACKAGE_TYPE_UNITTEST {
testablePkgMap[lpkg] = struct{}{}
@@ -90,8 +90,9 @@ func pkgToUnitTests(pack *pkg.LocalPackage) 
[]*pkg.LocalPackage {
result := []*pkg.LocalPackage{}
srcPath := pack.BasePath()
for p, _ := range testablePkgs() {
+   dirPath := filepath.ToSlash(filepath.Dir(p.BasePath()))
if p.Type() == pkg.PACKAGE_TYPE_UNITTEST &&
-   filepath.Dir(p.BasePath()) == srcPath {
+   dirPath == srcPath {
 
result = append(result, p)
}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/03416d7f/newt/toolchain/compiler.go
--
diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go
index 2fe8bb7..b846ee2 100644
--- a/newt/toolchain/compiler.go
+++ b/newt/toolchain/compiler.go
@@ -749,6 +749,7 @@ func (c *Compiler) RecursiveCollectEntries(cType int,
for _, ext := range exts {
files, _ := filepath.Glob(c.srcDir + "/*." + ext)
for _, file := range files {
+   file = filepath.ToSlash(file)
entries = append(entries, CompilerJob{
Filename: file,
Compiler: c,



[2/3] incubator-mynewt-newt git commit: Fixed windows path when looking for a project file. newt commands were hanging if the current directory is not the base directory.

2017-05-12 Thread aditi
Fixed windows path when looking for a project file.
newt commands were hanging if the current directory is not the base directory.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/4025e8df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/4025e8df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/4025e8df

Branch: refs/heads/master
Commit: 4025e8df099258e35346fd9ae7a5ad03c20917ee
Parents: 03416d7
Author: cwanda 
Authored: Fri May 5 07:25:49 2017 -0700
Committer: cwanda 
Committed: Fri May 5 08:32:00 2017 -0700

--
 newt/project/project.go | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4025e8df/newt/project/project.go
--
diff --git a/newt/project/project.go b/newt/project/project.go
index 75b0b31..4fd9802 100644
--- a/newt/project/project.go
+++ b/newt/project/project.go
@@ -85,6 +85,7 @@ func initProject(dir string) error {
 func initialize() error {
if globalProject == nil {
wd, err := os.Getwd()
+   wd = filepath.ToSlash(wd)
if err != nil {
return util.NewNewtError(err.Error())
}
@@ -654,7 +655,9 @@ func findProjectDir(dir string) (string, error) {
 
// Move back one directory and continue searching
dir = path.Clean(dir + "../../")
-   if dir == "/" {
+   // path.Clean returns . if processing results in empty string.
+   // Need to check for . on Windows.
+   if dir == "/" || dir == "." {
return "", util.NewNewtError("No project file found!")
}
}



[3/3] incubator-mynewt-newt git commit: Merge branch 'windows' of https://github.com/cwanda/incubator-mynewt-newt

2017-05-12 Thread aditi
Merge branch 'windows' of https://github.com/cwanda/incubator-mynewt-newt

This closes #58.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/98b9a71d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/98b9a71d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/98b9a71d

Branch: refs/heads/master
Commit: 98b9a71dcafb72289586abac0a60d7912f368ed5
Parents: ca783a7 4025e8d
Author: aditihilbert 
Authored: Fri May 12 14:50:38 2017 -0700
Committer: aditihilbert 
Committed: Fri May 12 14:50:38 2017 -0700

--
 newt/builder/selftest.go   | 3 ++-
 newt/cli/build_cmds.go | 5 +++--
 newt/project/project.go| 5 -
 newt/toolchain/compiler.go | 1 +
 4 files changed, 10 insertions(+), 4 deletions(-)
--




[2/2] incubator-mynewt-core git commit: Merge branch 'windows_debug_script' of https://github.com/cwanda/incubator-mynewt-core

2017-05-12 Thread aditi
Merge branch 'windows_debug_script' of 
https://github.com/cwanda/incubator-mynewt-core

This closes #268.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/afc404f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/afc404f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/afc404f8

Branch: refs/heads/master
Commit: afc404f836bf9935386d96c1ba06ccb27dd7f24e
Parents: 5ac0005 39212f4
Author: aditihilbert 
Authored: Fri May 12 14:36:14 2017 -0700
Committer: aditihilbert 
Committed: Fri May 12 14:36:14 2017 -0700

--
 hw/scripts/jlink.sh   | 4 ++--
 hw/scripts/openocd.sh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
--




[1/2] incubator-mynewt-core git commit: Add back the 2nd explict COMSPEC /C. Simon's msys2 environment doesn't work without it. My msys2 works with and without the 2nd explicit COMPSEC /C/ Looks like

2017-05-12 Thread aditi
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/master 5ac00053b -> afc404f83


Add back the 2nd explict COMSPEC /C.
Simon's msys2 environment doesn't work without it.
My msys2 works with and without the 2nd explicit COMPSEC /C/
Looks like the only fix that was needed is to move the opening "


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/39212f45
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/39212f45
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/39212f45

Branch: refs/heads/master
Commit: 39212f4592d5377f2a163e886e5aa506e6df5512
Parents: cb23f34
Author: cwanda 
Authored: Tue May 9 15:49:12 2017 -0700
Committer: cwanda 
Committed: Tue May 9 16:05:25 2017 -0700

--
 hw/scripts/jlink.sh   | 4 ++--
 hw/scripts/openocd.sh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/39212f45/hw/scripts/jlink.sh
--
diff --git a/hw/scripts/jlink.sh b/hw/scripts/jlink.sh
index e07049b..962aa54 100644
--- a/hw/scripts/jlink.sh
+++ b/hw/scripts/jlink.sh
@@ -125,7 +125,7 @@ jlink_debug() {
 # Launch jlink server in a separate command interpreter, to make
 # sure it doesn't get killed by Ctrl-C signal from bash.
 #
-$COMSPEC /C "start $JLINK_GDB_SERVER $EXTRA_JTAG_CMD -device 
$JLINK_DEV -speed 4000 -if SWD -port  -singlerun"
+$COMSPEC /C "start $COMSPEC /C $JLINK_GDB_SERVER $EXTRA_JTAG_CMD 
-device $JLINK_DEV -speed 4000 -if SWD -port  -singlerun"
 else
 #
 # Block Ctrl-C from getting passed to jlink server.
@@ -145,7 +145,7 @@ jlink_debug() {
 
if [ $WINDOWS -eq 1 ]; then
FILE_NAME=`echo $FILE_NAME | sed 's/\///g'`
-   $COMSPEC /C "start arm-none-eabi-gdb -x $GDB_CMD_FILE $FILE_NAME"
+   $COMSPEC /C "start $COMSPEC /C arm-none-eabi-gdb -x $GDB_CMD_FILE 
$FILE_NAME"
else
 arm-none-eabi-gdb -x $GDB_CMD_FILE $FILE_NAME
 rm $GDB_CMD_FILE

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/39212f45/hw/scripts/openocd.sh
--
diff --git a/hw/scripts/openocd.sh b/hw/scripts/openocd.sh
index 50ac6ab..2400cb4 100644
--- a/hw/scripts/openocd.sh
+++ b/hw/scripts/openocd.sh
@@ -85,7 +85,7 @@ openocd_debug () {
 #
 
 CFG=`echo $CFG | sed 's/\///g'`
-$COMSPEC /C "start openocd -l openocd.log $CFG -f $OCD_CMD_FILE -c 
init -c halt"
+$COMSPEC /C "start $COMSPEC /C openocd -l openocd.log $CFG -f 
$OCD_CMD_FILE -c init -c halt"
 else
 #
 # Block Ctrl-C from getting passed to openocd.
@@ -104,7 +104,7 @@ openocd_debug () {
echo "FILENAME" $FILE_NAME >>out
if [ $WINDOWS -eq 1 ]; then
FILE_NAME=`echo $FILE_NAME | sed 's/\///g'`
-$COMSPEC /C "start arm-none-eabi-gdb -x $GDB_CMD_FILE $FILE_NAME"
+$COMSPEC /C "start $COMSPEC /C arm-none-eabi-gdb -x $GDB_CMD_FILE 
$FILE_NAME"
else
 arm-none-eabi-gdb -x $GDB_CMD_FILE $FILE_NAME
 rm $GDB_CMD_FILE



[3/6] incubator-mynewt-site git commit: Note installation for newt and newtmgr may not work on Ubuntu versions lower than 16. 1) Add note that we tested newt and newtmgr tool binaries and installation

2017-05-12 Thread aditi
Note installation for newt and newtmgr may not work on Ubuntu versions lower 
than 16.
1) Add note that we tested newt and newtmgr tool binaries and installation on 
Ubuntu version 16 and may
not work on earlier versions.
2) Provided instructions on how to manually download and install binary if user 
doesn't want to upgrade Ubuntu. But they
will want to upgrade if installing from source.


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

Branch: refs/heads/develop
Commit: 0db585d4aff2c02f97e229177b9828eb070e5ebe
Parents: 7776209
Author: cwanda 
Authored: Fri May 12 11:17:47 2017 -0700
Committer: cwanda 
Committed: Fri May 12 11:17:47 2017 -0700

--
 docs/newt/install/newt_linux.md | 41 +---
 docs/newtmgr/install_linux.md   | 36 +--
 2 files changed, 72 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/0db585d4/docs/newt/install/newt_linux.md
--
diff --git a/docs/newt/install/newt_linux.md b/docs/newt/install/newt_linux.md
index 81e26e7..4916e7f 100644
--- a/docs/newt/install/newt_linux.md
+++ b/docs/newt/install/newt_linux.md
@@ -8,16 +8,19 @@ You can install the latest stable release (1.0.0) of the newt 
tool from a Debian
 
 If you are installing on an amd64 platform, we recommend that you install from 
the binary package.
 
+**Note:**  We have tested the newt tool binary and apt-get install from the 
runtimeco Debian package repository for Ubuntu version 16.  Earlier Ubuntu 
versions (for example: Ubuntu 14) may have incompatibility with the repository. 
We recommend that you upgrade Ubuntu on your computer. 
+
+
 **Note:** See [Setting Up an Go Environment to Contribute to Newt and Newtmgr 
Tools](/faq/go_env) if you want to:  
 
 * Use the newt tool with the latest updates from the master branch. The master 
branch may be unstable and we recommend that you use the latest stable release 
version.
 * Contribute to the newt tool. 
 
 
-
 ### Setting Up Your Computer to Get Packages from runtimeco 
 The newt Debian packages are stored in a private repository on 
**https://github/runtimeco/debian-mynewt**.  The following steps must be 
performed on your computer to retreive packages from the repository:
 
+
 **Note:** You only need to perform this setup once on your computer.
 
 1. Install the `apt-transport-https` package to use HTTPS to retrieve 
packages. 
@@ -62,14 +65,38 @@ $more /etc/apt/sources.list.d/mynewt.list
 deb https://raw.githubusercontent.com/runtimeco/debian-mynewt/master latest 
main
 deb-src https://raw.githubusercontent.com/runtimeco/debian-mynewt/master 
latest main
 ```
+
+Update the available packages: 
+```no-highlight
+$sudo apt-get update
+```
+
+**Note:** If you are not using Ubuntu version 16, you may see the following 
errors.  We recommend that you upgrade Ubuntu.  We have provided instructions 
on how to manually download and install the binary package if you choose not to 
upgrade, but you will want to upgrade Ubuntu if you are installing from source.
+
+
+```no-highlight
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/source/Sources
  HttpError404
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/binary-amd64/Packages
  Bad header line
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/binary-i386/Packages
  HttpError404
+
+E: Some index files failed to download. They have been ignored, or old ones 
used instead.
+
+```
+
+
+
+
  
 
 ### Installing the Latest Release of Newt from a Binary Package 
 
-For Linux amd64 platforms, you can install the latest stable version (1.0.0) 
of newt from the newt Debian binary package:
+For Linux amd64 platforms, you can install the latest stable version (1.0.0) 
of newt from the newt Debian binary package. 
+
 
 ```no-highlight
-$sudo apt-get update
 $sudo apt-get install newt
 Reading package lists... Done
 Building dependency tree   
@@ -82,6 +109,14 @@ Unpacking newt (1.0.0-1) ...
 Setting up newt (1.0.0-1) ...
 ```
 
+
+**Note:**If you are not using Ubuntu version 16 and are not able to update the 
runtimeco Debian package repo on your computer successfully, you can manually 
download and install the newt_1.0.0-1_amd64.deb binary package as follows:
+
+```no-highlight
+$wget 

[4/6] incubator-mynewt-site git commit: Merge branch 'linux_install' of https://github.com/cwanda/incubator-mynewt-site into develop This closes #180. This closes #179.

2017-05-12 Thread aditi
Merge branch 'linux_install' of https://github.com/cwanda/incubator-mynewt-site 
into develop
This closes #180. This closes #179.


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

Branch: refs/heads/develop
Commit: 349607d58388126829266c4151b0a2f60732c5d3
Parents: 2a9db61 0db585d
Author: aditihilbert 
Authored: Fri May 12 12:23:23 2017 -0700
Committer: aditihilbert 
Committed: Fri May 12 12:23:23 2017 -0700

--
 docs/newt/install/newt_linux.md | 41 +---
 docs/newtmgr/install_linux.md   | 36 +--
 2 files changed, 72 insertions(+), 5 deletions(-)
--




[5/6] incubator-mynewt-site git commit: fix typo in mkr1000 tutorial

2017-05-12 Thread aditi
fix typo in mkr1000 tutorial


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

Branch: refs/heads/develop
Commit: ece990f3a0ff8fe643aea17f0919259b082eb02f
Parents: 7776209
Author: cwanda 
Authored: Fri May 12 12:44:25 2017 -0700
Committer: cwanda 
Committed: Fri May 12 12:44:25 2017 -0700

--
 docs/os/tutorials/wi-fi_on_arduino.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ece990f3/docs/os/tutorials/wi-fi_on_arduino.md
--
diff --git a/docs/os/tutorials/wi-fi_on_arduino.md 
b/docs/os/tutorials/wi-fi_on_arduino.md
index 4a49291..2eebe7b 100644
--- a/docs/os/tutorials/wi-fi_on_arduino.md
+++ b/docs/os/tutorials/wi-fi_on_arduino.md
@@ -217,7 +217,7 @@ $
 
 
 ### Load the Wi-Fi Application Image onto the Board
-Run the `newt load arduino_wifi` command to load the wifi application onto the 
board:
+Run the `newt load mkr1000_wifi` command to load the wifi application onto the 
board:
 
 ```no-highlight
 $ newt load mkr1000_wifi



[1/6] incubator-mynewt-site git commit: Documentation for Mynewt OS support on Windows

2017-05-12 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop 777620961 -> 7d0d5f8a0


Documentation for Mynewt OS support on Windows


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

Branch: refs/heads/develop
Commit: c616db4e6c138ddbe13a90602f4c9593aa9bd777
Parents: 7776209
Author: cwanda 
Authored: Wed May 3 08:33:45 2017 -0700
Committer: cwanda 
Committed: Tue May 9 10:28:55 2017 -0700

--
 docs/os/get_started/cross_tools.md  |  86 
 docs/os/get_started/get_started.md  |   2 +-
 docs/os/get_started/native_install_intro.md |  22 ++--
 docs/os/get_started/native_tools.md |  19 ++-
 docs/os/get_started/project_create.md   | 130 +++
 docs/os/get_started/serial_access.md|  99 +++---
 docs/os/introduction.md |   6 +-
 docs/os/tutorials/add_shell.md  |  14 +-
 docs/os/tutorials/arduino_zero.md   |   6 +
 docs/os/tutorials/bletiny_project.md|  14 +-
 docs/os/tutorials/blinky_console.md |  15 ++-
 docs/os/tutorials/blinky_primo.md   |  10 +-
 docs/os/tutorials/blinky_stm32f4disc.md |   6 +-
 docs/os/tutorials/nRF52.md  |   7 +-
 docs/os/tutorials/olimex.md |  20 ++-
 .../os/tutorials/pics/device_manager_ft232H.png | Bin 0 -> 67817 bytes
 .../tutorials/pics/device_manager_no_ft232H.png | Bin 0 -> 67365 bytes
 docs/os/tutorials/pics/putty.png| Bin 0 -> 56099 bytes
 docs/os/tutorials/project-nrf52-slinky.md   |  19 ++-
 docs/os/tutorials/project-sim-slinky.md |   2 +-
 docs/os/tutorials/project-slinky.md |   2 +-
 docs/os/tutorials/project-stm32-slinky.md   |  18 ++-
 docs/os/tutorials/rbnano2.md|   4 +
 docs/os/tutorials/wi-fi_on_arduino.md   |  16 ++-
 mkdocs.yml  |   2 +
 25 files changed, 366 insertions(+), 153 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c616db4e/docs/os/get_started/cross_tools.md
--
diff --git a/docs/os/get_started/cross_tools.md 
b/docs/os/get_started/cross_tools.md
index efd6f96..3276aa1 100644
--- a/docs/os/get_started/cross_tools.md
+++ b/docs/os/get_started/cross_tools.md
@@ -1,21 +1,18 @@
-# Installing Cross Tools for ARM 
+# Installing the Cross Tools for ARM 
 
-This page shows how to install tools on your laptop/computer to use for direct 
communication (e.g. for debugging) with some ARM based HW platforms running 
Apache Mynewt.  It shows you how to install the following tools for Mac OS X 
and Linux:
+This page shows you how to install the tools to build, run, and debug Mynewt 
OS applications that run on supported ARM target boards.  It shows you how to 
install the following tools on Mac OS, Linux and Windows:
 
-* ARM Cross toolchain
-* Debugger to load and debug your device
+* ARM cross toolchain to compile and build Mynewt applications for the target 
boards.
+* Debuggers to load and debug applications on the target boards.
 
 
 
-## Install ARM Cross Toolchain
+## Installing the ARM Cross Toolchain
+ARM maintains a pre-built GNU toolchain with gcc and gdb targeted at Embedded 
ARM Processors, namely Cortex-R/Cortex-M processor families. Mynewt OS has been 
tested with version 4.9 of the toolchain and we recommend you install this 
version to get started.  Mynewt OS will eventually work with multiple versions 
available, including the latest releases. 
 
-### Install ARM Toolchain For Mac OS X
+### Installing the ARM Toolchain For Mac OS X
 
-Install the PX4 Toolchain and check the version installed. ARM maintains a
-pre-built GNU toolchain with a GCC source branch targeted at Embedded ARM
-Processors, namely Cortex-R/Cortex-M processor families. After installing,
-ensure that the symbolic link installed by Homebrew points to the correct
-version of the debugger.
+Add the **PX4/homebrew-px4** homebrew tap and install version 4.9 of the 
toolchain. After installing, check that the symbolic link that homebrew created 
points to the correct version of the debugger.
 
 ```no-highlight
 $ brew tap PX4/homebrew-px4
@@ -29,13 +26,10 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.
 $ ls -al /usr/local/bin/arm-none-eabi-gdb
 lrwxr-xr-x  1 aditihilbert  admin  69 Sep 22 17:16 
/usr/local/bin/arm-none-eabi-gdb -> 

[6/6] incubator-mynewt-site git commit: Merge branch 'updates_1.0' of https://github.com/cwanda/incubator-mynewt-site into develop This closes #181

2017-05-12 Thread aditi
Merge branch 'updates_1.0' of https://github.com/cwanda/incubator-mynewt-site 
into develop
This closes #181


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

Branch: refs/heads/develop
Commit: 7d0d5f8a03da82a0d2bc33df90be64e8c1266f7d
Parents: 349607d ece990f
Author: aditihilbert 
Authored: Fri May 12 12:54:04 2017 -0700
Committer: aditihilbert 
Committed: Fri May 12 12:54:04 2017 -0700

--
 docs/os/tutorials/wi-fi_on_arduino.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/7d0d5f8a/docs/os/tutorials/wi-fi_on_arduino.md
--



[2/6] incubator-mynewt-site git commit: Forgot to add new files.

2017-05-12 Thread aditi
Forgot to add new files.


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

Branch: refs/heads/develop
Commit: 2a9db61608e18e824c3827543c95fe5487ea17d9
Parents: c616db4
Author: cwanda 
Authored: Tue May 9 14:02:06 2017 -0700
Committer: cwanda 
Committed: Tue May 9 14:02:06 2017 -0700

--
 docs/newt/install/newt_windows.md | 160 +
 docs/newtmgr/install_windows.md   |  68 ++
 2 files changed, 228 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2a9db616/docs/newt/install/newt_windows.md
--
diff --git a/docs/newt/install/newt_windows.md 
b/docs/newt/install/newt_windows.md
new file mode 100644
index 000..5b9359f
--- /dev/null
+++ b/docs/newt/install/newt_windows.md
@@ -0,0 +1,160 @@
+## Installing Newt on Windows
+
+You can develop and build Mynewt OS applications for your target boards on the 
Windows platform.  This page shows you how to build the newt tool from the 
lastest source on the master branch of the [Mynewt newt git 
repository](https://github.com/apache/incubator-mynewt-newt).  The tool is 
written in Go (golang).
+  
+In Windows, we use MinGW as the development environment to build and run 
Mynewt OS applications for target boards. MinGW runs the bash shell and 
provides a Unix-like environment. This provides a uniform way to build Mynewt 
OS applications. The Mynewt documentation and tutorials use Unix commands and 
you can use the same Unix commands on MinGW to follow the tutorials. The 
documentation will note any commands or behaviors that are specific to Windows.
+
+This guide shows you how to perform the following:
+
+1. Install MSYS2/MinGW. 
+2. Install Git.
+3. Install Go. 
+4. Setup the Go environment.
+5. Download the source, build, and install the newt tool.
+
+
+### Step 1: Installing MSYS2/MinGW
+MSYS2/MinGW provides a bash shell and tools to build applications that run on 
Windows. It includes three subsystems:
+
+* MSYS2 toolchain to build POSIX applications that run on Windows. 
+* MinGW32 toolchains to build 32 bit native Windows applications.  
+* MinGW64 toolchains to build 64 bit native Windows applications.  
+
+The subsystems run the bash shell and provide a Unix-like environment. You can 
also run Windows applications from the shell. We will use the MinGW subsystem.
+
+To install and setup MSYS2 and MinGW:
+
+1. Download and run the [MSYS2 installer](http://www.msys2.org).  Select the 
64 bit version if you are running on a 64 bit platform. Follow the prompts and 
check the `Run MSYS2 now` checkbox on the `Installation Complete` dialog. 
+2. In the MSYS2 terminal, run the `pacman -Syuu` command. If you get a message 
to run the update again, close the terminal and run the `pacman -Syuu` command 
in a new terminal. 
+   
+   To start a new MSYS2 terminal, select the "MSYS2 MSYS" application from 
the Windows start menu.
+
+3. Add a new user variable named **MSYS2_PATH_TYPE** and set the value to 
**inherit** in your Windows environment. This enables the MSYS2 and MinGW bash 
to inherit your Windows user **Path** values. 
+   
+   To add the variable,  select properties for your computer > Advanced 
system settings > Environment Variables > New
+
+4. Run the `pacman -Su vim` command to install the vim editor. 
+   
+   **Note:**You can also use a Windows editor. You can access your files 
from the **C:\msys-install-folder\home\username** folder, where 
**msys-install-folder** is the folder you installed MSYS2 in. For example, if 
you installed MSYS2 in the **msys64** folder, your files are stored in 
**C:\msys64\home\username**
+
+You will need to start a MinGW terminal to run the commands specified in the 
Mynewt documentation and  tutorials.  To start a MinGW terminal, select the 
"MSYS2 Mingw" application from the start Menu (you can use either MinGW32 or 
MinGW64). 
+In Windows, we use the MingGW subsystem to build  Mynewt tools and 
applications.  
+
+### Step 2: Installing Git for Windows
+Download and install [Git for Windows](https://git-for-windows.github.io) if 
it is not already installed.
+
+
+### Step 3: Installing Go 
+Download and install the latest version of [Go](https://golang.org/dl/). Newt 
requires Go version 1.7 or higher.
+
+###Step 4: Setting Up Your Go Environment 
+
+This section describes the Go environment and how to setup a Go workspace.  Go 
provides an environment to compile Go code,  construct Go packages,  and import 
Go 

[3/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/mkdocs/search_index.json
--
diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json
index 7090d01..9bc34be 100644
--- a/latest/mkdocs/search_index.json
+++ b/latest/mkdocs/search_index.json
@@ -107,7 +107,7 @@
 }, 
 {
 "location": "/os/introduction/", 
-"text": "Introduction\n\n\nWelcome to Apache Mynewt\n\n\nApache 
Mynewt is an operating system that makes it easy to develop\napplications for 
microcontroller environments where power and cost\nare driving factors. 
Examples of these devices are connected locks,\nlights, and 
wearables.\n\n\nMicrocontroller environments have a number of characteristics 
that\nmakes the operating system requirements for them unique:\n\n\n\n\n\n\nLow 
memory footprint: memory on these systems range from\n8-16KB (on the low end) 
to 16MB (on the high end).\n\n\n\n\n\n\nReduced code size: code often runs out 
of flash, and total available code size ranges from 64-128KB to 
16-32MB.\n\n\n\n\n\n\nLow processing speed: processor speeds vary from 10-12MHz 
to 160-200MHz.  \n\n\n\n\n\n\nLow power operation: devices operate in mostly 
sleeping mode, in order to conserve\nbattery power and maximize power 
usage.\n\n\n\n\n\n\nAs more and more devices get connected, these 
interconnected devices perform complex 
 tasks. To\nperform these tasks, you need low-level operational functionality 
built into the operating system.\nTypically, connected devices built with these 
microcontrollers perform a myriad of functions:\n\n\n\n\n\n\nNetworking Stacks: 
Bluetooth Low Energy and Thread\n\n\n\n\n\n\nPeripherals: PWM to drive motors, 
ADCs to measure sensor data, and RTCs\nto keep time.\n\n\n\n\n\n\nScheduled 
Processing: actions must happen on a calendared or periodic 
basis.\n\n\n\n\n\n\nApache Mynewt accomplishes all the above easily, by 
providing a complete\noperating system for constrained devices, 
including:\n\n\n\n\n\n\nA fully open-source Bluetooth Low Energy stack with 
both Host and\nController implementations.\n\n\n\n\n\n\nA pre-emptive, 
multi-tasking Real Time operating system kernel\n\n\n\n\n\n\nA Hardware 
Abstraction Layer (HAL) that abstracts the MCU's\nperipheral functions, 
allowing developers to easily write 
cross-platform\ncode.\n\n\n\n\n\n\n\n\nNewt\n\n\nIn order to provide all this 
func
 tionality, and operate in an\nextremely low resource environment, Mynewt 
provides a very fine-grained source\npackage management and build system tool, 
called \nnewt\n.\n\n\nYou can install \nnewt\n for \nMac OS\n or 
\nLinux\n.\n\n\n\n\nNewt Manager\n\n\nIn order to enable a user to communicate 
with remote instances of Mynewt OS and query, configure, and operate them, 
Mynewt provides an application tool called Newt Manager or 
\nnewtmgr\n.\n\n\nYou can install \nnewtmgr\n for \nMac OS\n or 
\nLinux\n.\n\n\n\n\nBuild your first Mynewt App with Newt\n\n\nWith the 
introductions out of the way, now is a good time to \nget set up and\nstarted\n 
with your first Mynewt application.\n\n\nHappy Hacking!", 
+"text": "Introduction\n\n\nWelcome to Apache Mynewt\n\n\nApache 
Mynewt is an operating system that makes it easy to develop\napplications for 
microcontroller environments where power and cost\nare driving factors. 
Examples of these devices are connected locks,\nlights, and 
wearables.\n\n\nMicrocontroller environments have a number of characteristics 
that\nmakes the operating system requirements for them unique:\n\n\n\n\n\n\nLow 
memory footprint: memory on these systems range from\n8-16KB (on the low end) 
to 16MB (on the high end).\n\n\n\n\n\n\nReduced code size: code often runs out 
of flash, and total available code size ranges from 64-128KB to 
16-32MB.\n\n\n\n\n\n\nLow processing speed: processor speeds vary from 10-12MHz 
to 160-200MHz.  \n\n\n\n\n\n\nLow power operation: devices operate in mostly 
sleeping mode, in order to conserve\nbattery power and maximize power 
usage.\n\n\n\n\n\n\nAs more and more devices get connected, these 
interconnected devices perform complex 
 tasks. To\nperform these tasks, you need low-level operational functionality 
built into the operating system.\nTypically, connected devices built with these 
microcontrollers perform a myriad of functions:\n\n\n\n\n\n\nNetworking Stacks: 
Bluetooth Low Energy and Thread\n\n\n\n\n\n\nPeripherals: PWM to drive motors, 
ADCs to measure sensor data, and RTCs\nto keep time.\n\n\n\n\n\n\nScheduled 
Processing: actions must happen on a calendared or periodic 
basis.\n\n\n\n\n\n\nApache Mynewt accomplishes all the above easily, by 
providing a complete\noperating system for constrained devices, 
including:\n\n\n\n\n\n\nA fully open-source Bluetooth Low Energy stack with 
both Host and\nController implementations.\n\n\n\n\n\n\nA pre-emptive, 
multi-tasking Real Time operating system 

[5/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/newt/install/newt_linux/index.html
--
diff --git a/develop/newt/install/newt_linux/index.html 
b/develop/newt/install/newt_linux/index.html
index beed80e..4aea883 100644
--- a/develop/newt/install/newt_linux/index.html
+++ b/develop/newt/install/newt_linux/index.html
@@ -239,6 +239,14 @@
   
 
 
+  Install Newt on Windows
+
+
+  
+  
+  
+
+
   Install Native 
Toolchain
 
 
@@ -407,6 +415,7 @@
 Install the latest stable release version of newt from a Debian source 
package.
 
 If you are installing on an amd64 platform, we recommend that you install 
from the binary package.
+Note:  We have tested the newt tool binary and apt-get 
install from the runtimeco Debian package repository for Ubuntu version 16.  
Earlier Ubuntu versions (for example: Ubuntu 14) may have incompatibility with 
the repository. We recommend that you upgrade Ubuntu on your computer. 
 Note: See Setting Up an Go 
Environment to Contribute to Newt and Newtmgr Tools if you want to:  
 
 Use the newt tool with the latest updates from the master branch. The 
master branch may be unstable and we recommend that you use the latest stable 
release version.
@@ -455,11 +464,29 @@ deb-src 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master latest
 
 
 
+
+Update the available packages: 
+$sudo apt-get update
+
+
+
+
+Note: If you are not using Ubuntu version 16, you may see the 
following errors.  We recommend that you upgrade Ubuntu.  We have provided 
instructions on how to manually download and install the binary package if you 
choose not to upgrade, but you will want to upgrade Ubuntu if you are 
installing from source.
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/source/Sources
  HttpError404
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/binary-amd64/Packages
  Bad header line
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/binary-i386/Packages
  HttpError404
+
+E: Some index files failed to download. They have been ignored, or old ones 
used instead.
+
+
+
+
  
 Installing the 
Latest Release of Newt from a Binary Package
-For Linux amd64 platforms, you can install the latest stable version 
(1.0.0) of newt from the newt Debian binary package:
-$sudo apt-get update
-$sudo apt-get install newt
+For Linux amd64 platforms, you can install the latest stable version 
(1.0.0) of newt from the newt Debian binary package. 
+$sudo apt-get install newt
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
@@ -472,6 +499,13 @@ Setting up newt (1.0.0-1) ...
 
 
 
+
+Note:If you are not using Ubuntu version 16 and are not 
able to update the runtimeco Debian package repo on your computer successfully, 
you can manually download and install the newt_1.0.0-1_amd64.deb binary package 
as follows:
+$wget 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/pool/main/n/newt/newt_1.0.0-1_amd64.deb
+$sudo dpkg -i newt_1.0.0-1_amd64.deb
+
+
+
 
 See Checking the Installed Version of Newt to verify that 
you are using the installed version of newt.
 
@@ -625,8 +659,8 @@ Use newt [command] --help for more information 
about a command.
 
 
 
-
-Next: Install Native Toolchain
+
+Next: Install Newt on Windows
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/newt/install/newt_mac/index.html
--
diff --git a/develop/newt/install/newt_mac/index.html 
b/develop/newt/install/newt_mac/index.html
index dc66d91..e55c510 100644
--- a/develop/newt/install/newt_mac/index.html
+++ b/develop/newt/install/newt_mac/index.html
@@ -239,6 +239,14 @@
   
 
 
+  Install Newt on Windows
+
+
+  
+  
+  
+
+
   Install Native 
Toolchain
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/newt/install/newt_windows/index.html
--
diff --git a/develop/newt/install/newt_windows/index.html 
b/develop/newt/install/newt_windows/index.html
new file mode 100644
index 000..a744b87
--- /dev/null
+++ b/develop/newt/install/newt_windows/index.html
@@ -0,0 +1,611 @@
+
+
+
+
+
+
+
+
+
+
+
+   Install Newt on Windows - Apache Mynewt
+
+
+
+
+
+
+https://fonts.googleapis.com/css?family=Lato; 
rel="stylesheet">
+

[6/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/mkdocs/search_index.json
--
diff --git a/develop/mkdocs/search_index.json b/develop/mkdocs/search_index.json
index 7090d01..9bc34be 100644
--- a/develop/mkdocs/search_index.json
+++ b/develop/mkdocs/search_index.json
@@ -107,7 +107,7 @@
 }, 
 {
 "location": "/os/introduction/", 
-"text": "Introduction\n\n\nWelcome to Apache Mynewt\n\n\nApache 
Mynewt is an operating system that makes it easy to develop\napplications for 
microcontroller environments where power and cost\nare driving factors. 
Examples of these devices are connected locks,\nlights, and 
wearables.\n\n\nMicrocontroller environments have a number of characteristics 
that\nmakes the operating system requirements for them unique:\n\n\n\n\n\n\nLow 
memory footprint: memory on these systems range from\n8-16KB (on the low end) 
to 16MB (on the high end).\n\n\n\n\n\n\nReduced code size: code often runs out 
of flash, and total available code size ranges from 64-128KB to 
16-32MB.\n\n\n\n\n\n\nLow processing speed: processor speeds vary from 10-12MHz 
to 160-200MHz.  \n\n\n\n\n\n\nLow power operation: devices operate in mostly 
sleeping mode, in order to conserve\nbattery power and maximize power 
usage.\n\n\n\n\n\n\nAs more and more devices get connected, these 
interconnected devices perform complex 
 tasks. To\nperform these tasks, you need low-level operational functionality 
built into the operating system.\nTypically, connected devices built with these 
microcontrollers perform a myriad of functions:\n\n\n\n\n\n\nNetworking Stacks: 
Bluetooth Low Energy and Thread\n\n\n\n\n\n\nPeripherals: PWM to drive motors, 
ADCs to measure sensor data, and RTCs\nto keep time.\n\n\n\n\n\n\nScheduled 
Processing: actions must happen on a calendared or periodic 
basis.\n\n\n\n\n\n\nApache Mynewt accomplishes all the above easily, by 
providing a complete\noperating system for constrained devices, 
including:\n\n\n\n\n\n\nA fully open-source Bluetooth Low Energy stack with 
both Host and\nController implementations.\n\n\n\n\n\n\nA pre-emptive, 
multi-tasking Real Time operating system kernel\n\n\n\n\n\n\nA Hardware 
Abstraction Layer (HAL) that abstracts the MCU's\nperipheral functions, 
allowing developers to easily write 
cross-platform\ncode.\n\n\n\n\n\n\n\n\nNewt\n\n\nIn order to provide all this 
func
 tionality, and operate in an\nextremely low resource environment, Mynewt 
provides a very fine-grained source\npackage management and build system tool, 
called \nnewt\n.\n\n\nYou can install \nnewt\n for \nMac OS\n or 
\nLinux\n.\n\n\n\n\nNewt Manager\n\n\nIn order to enable a user to communicate 
with remote instances of Mynewt OS and query, configure, and operate them, 
Mynewt provides an application tool called Newt Manager or 
\nnewtmgr\n.\n\n\nYou can install \nnewtmgr\n for \nMac OS\n or 
\nLinux\n.\n\n\n\n\nBuild your first Mynewt App with Newt\n\n\nWith the 
introductions out of the way, now is a good time to \nget set up and\nstarted\n 
with your first Mynewt application.\n\n\nHappy Hacking!", 
+"text": "Introduction\n\n\nWelcome to Apache Mynewt\n\n\nApache 
Mynewt is an operating system that makes it easy to develop\napplications for 
microcontroller environments where power and cost\nare driving factors. 
Examples of these devices are connected locks,\nlights, and 
wearables.\n\n\nMicrocontroller environments have a number of characteristics 
that\nmakes the operating system requirements for them unique:\n\n\n\n\n\n\nLow 
memory footprint: memory on these systems range from\n8-16KB (on the low end) 
to 16MB (on the high end).\n\n\n\n\n\n\nReduced code size: code often runs out 
of flash, and total available code size ranges from 64-128KB to 
16-32MB.\n\n\n\n\n\n\nLow processing speed: processor speeds vary from 10-12MHz 
to 160-200MHz.  \n\n\n\n\n\n\nLow power operation: devices operate in mostly 
sleeping mode, in order to conserve\nbattery power and maximize power 
usage.\n\n\n\n\n\n\nAs more and more devices get connected, these 
interconnected devices perform complex 
 tasks. To\nperform these tasks, you need low-level operational functionality 
built into the operating system.\nTypically, connected devices built with these 
microcontrollers perform a myriad of functions:\n\n\n\n\n\n\nNetworking Stacks: 
Bluetooth Low Energy and Thread\n\n\n\n\n\n\nPeripherals: PWM to drive motors, 
ADCs to measure sensor data, and RTCs\nto keep time.\n\n\n\n\n\n\nScheduled 
Processing: actions must happen on a calendared or periodic 
basis.\n\n\n\n\n\n\nApache Mynewt accomplishes all the above easily, by 
providing a complete\noperating system for constrained devices, 
including:\n\n\n\n\n\n\nA fully open-source Bluetooth Low Energy stack with 
both Host and\nController implementations.\n\n\n\n\n\n\nA pre-emptive, 
multi-tasking Real Time operating system 

[1/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 02116bd4b -> 6e0ec54d0


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/os/introduction/index.html
--
diff --git a/latest/os/introduction/index.html 
b/latest/os/introduction/index.html
index 7a26ad3..81a7fcd 100644
--- a/latest/os/introduction/index.html
+++ b/latest/os/introduction/index.html
@@ -374,11 +374,11 @@ code.
 In order to provide all this functionality, and operate in an
 extremely low resource environment, Mynewt provides a very fine-grained source
 package management and build system tool, called newt.
-You can install newt for Mac OS or Linux.
+You can install newt for Mac OS, Linux, or Windows.
 
 Newt Manager
-In order to enable a user to communicate with remote instances of Mynewt OS 
and query, configure, and operate them, Mynewt provides an application tool 
called Newt Manager or newtmgr.
-You can install newtmgr for Mac OS or Linux.
+In order to enable a user to communicate with remote instances of Mynewt OS 
and query, configure, and operate them, Mynewt provides an application tool 
called Newt Manager or newtmgr.
+You can install newtmgr for Mac OS, Linux, or Windows.
 
 Build your first Mynewt App 
with Newt
 With the introductions out of the way, now is a good time to get set up and

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/os/tutorials/add_shell/index.html
--
diff --git a/latest/os/tutorials/add_shell/index.html 
b/latest/os/tutorials/add_shell/index.html
index 361ff1f..7471f96 100644
--- a/latest/os/tutorials/add_shell/index.html
+++ b/latest/os/tutorials/add_shell/index.html
@@ -554,9 +554,19 @@ App image succesfully generated: 
~/dev/myproj/bin/targets/myble/app/apps/bletiny
 Tutorial for more information on setting up your serial communications.
 
 Connecting with your app
-Once you have a connection set up, you can connect to your device with 
minicom -D /dev/tty.usbmodemport -b 115200 to run connect
-to the console of your app. 
-To test and make sure that the Shell is running, first just hit 
:
+Once you have a connection set up, you can connect to your device as 
follows: 
+
+
+On Mac OS and Linux platforms, you can run minicom -D 
/dev/tty.usbserial-port -b 115200 to connect to the console of 
your app. Note that on Linux, the format of the port name is 
/dev/ttyUSBN, where N is a number. 
+
+
+On Windows, you can use a terminal application such as PuTTY to connect to 
the device.  
+If you located your port from a MinGW terminal,  the port name format is 
/dev/ttySN, where N is a number. You must map 
the port name to a Windows COM port: /dev/ttySN maps to 
COMN+1. For example, /dev/ttyS2 maps to  
COM3. 
+You can also use the Windows Device Manager to locate the COM port.
+
+
+
+To test and make sure that the Shell is running, first just hit :
 3534: 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/os/tutorials/arduino_zero/index.html
--
diff --git a/latest/os/tutorials/arduino_zero/index.html 
b/latest/os/tutorials/arduino_zero/index.html
index 26f0dec..639341e 100644
--- a/latest/os/tutorials/arduino_zero/index.html
+++ b/latest/os/tutorials/arduino_zero/index.html
@@ -753,6 +753,7 @@ Error: Target not halted
 
 
 To erase your board, start a debug session and enter the highlighted commands 
at the (gdb) prompts:
+Note: On Windows, openocd and gdb are started in separate 
Windows Command Prompt terminals, and the terminals are automatically closed 
when you quit gdb. In addition,  the output of openocd is logged to the 
openocd.log file in your project's base directory instead of the terminal.
 $ newt debug arduino_blinky
 (gdb) mon at91samd chip-erase
 chip erased
@@ -777,6 +778,8 @@ Run the newt load arduino_boot command again 
after erasing the boar
 Run the Blinky 
Application
 After you load the bootloader successfully onto your board, you can load 
and run the Blinky application. 
 Run the newt run arduino_blinky 1.0.0 command to build the 
arduino_blinky target (if necessary), create an image with version 1.0.0, load 
the image onto the board, and start a debugger session. 
+Note The output of the debug session below is for Mac OS 
and Linux platforms. On Windows, openocd and gdb are started in separate 
Windows Command Prompt terminals.  The output of openocd is logged to the 
openocd.log file in your project's base directory and not to the terminal. The 
openocd and gdb terminals will close automatically when you quit gdb. 
+
 $ newt run arduino_blinky 1.0.0
 App image succesfully generated: 
~/dev/myproj/bin/targets/arduino_blinky/app/apps/blinky/blinky.img
 Loading app image into slot 1


[4/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/os/introduction/index.html
--
diff --git a/develop/os/introduction/index.html 
b/develop/os/introduction/index.html
index f4069c0..fbbba40 100644
--- a/develop/os/introduction/index.html
+++ b/develop/os/introduction/index.html
@@ -374,11 +374,11 @@ code.
 In order to provide all this functionality, and operate in an
 extremely low resource environment, Mynewt provides a very fine-grained source
 package management and build system tool, called newt.
-You can install newt for Mac OS or Linux.
+You can install newt for Mac OS, Linux, or Windows.
 
 Newt Manager
-In order to enable a user to communicate with remote instances of Mynewt OS 
and query, configure, and operate them, Mynewt provides an application tool 
called Newt Manager or newtmgr.
-You can install newtmgr for Mac OS or Linux.
+In order to enable a user to communicate with remote instances of Mynewt OS 
and query, configure, and operate them, Mynewt provides an application tool 
called Newt Manager or newtmgr.
+You can install newtmgr for Mac OS, Linux, or Windows.
 
 Build your first Mynewt App 
with Newt
 With the introductions out of the way, now is a good time to get set up and

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/os/tutorials/add_shell/index.html
--
diff --git a/develop/os/tutorials/add_shell/index.html 
b/develop/os/tutorials/add_shell/index.html
index 8b14c3e..59aa45a 100644
--- a/develop/os/tutorials/add_shell/index.html
+++ b/develop/os/tutorials/add_shell/index.html
@@ -554,9 +554,19 @@ App image succesfully generated: 
~/dev/myproj/bin/targets/myble/app/apps/bletiny
 Tutorial for more information on setting up your serial communications.
 
 Connecting with your app
-Once you have a connection set up, you can connect to your device with 
minicom -D /dev/tty.usbmodemport -b 115200 to run connect
-to the console of your app. 
-To test and make sure that the Shell is running, first just hit 
:
+Once you have a connection set up, you can connect to your device as 
follows: 
+
+
+On Mac OS and Linux platforms, you can run minicom -D 
/dev/tty.usbserial-port -b 115200 to connect to the console of 
your app. Note that on Linux, the format of the port name is 
/dev/ttyUSBN, where N is a number. 
+
+
+On Windows, you can use a terminal application such as PuTTY to connect to 
the device.  
+If you located your port from a MinGW terminal,  the port name format is 
/dev/ttySN, where N is a number. You must map 
the port name to a Windows COM port: /dev/ttySN maps to 
COMN+1. For example, /dev/ttyS2 maps to  
COM3. 
+You can also use the Windows Device Manager to locate the COM port.
+
+
+
+To test and make sure that the Shell is running, first just hit :
 3534: 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/os/tutorials/arduino_zero/index.html
--
diff --git a/develop/os/tutorials/arduino_zero/index.html 
b/develop/os/tutorials/arduino_zero/index.html
index 7b2bc85..8ea6365 100644
--- a/develop/os/tutorials/arduino_zero/index.html
+++ b/develop/os/tutorials/arduino_zero/index.html
@@ -753,6 +753,7 @@ Error: Target not halted
 
 
 To erase your board, start a debug session and enter the highlighted commands 
at the (gdb) prompts:
+Note: On Windows, openocd and gdb are started in separate 
Windows Command Prompt terminals, and the terminals are automatically closed 
when you quit gdb. In addition,  the output of openocd is logged to the 
openocd.log file in your project's base directory instead of the terminal.
 $ newt debug arduino_blinky
 (gdb) mon at91samd chip-erase
 chip erased
@@ -777,6 +778,8 @@ Run the newt load arduino_boot command again 
after erasing the boar
 Run the Blinky 
Application
 After you load the bootloader successfully onto your board, you can load 
and run the Blinky application. 
 Run the newt run arduino_blinky 1.0.0 command to build the 
arduino_blinky target (if necessary), create an image with version 1.0.0, load 
the image onto the board, and start a debugger session. 
+Note The output of the debug session below is for Mac OS 
and Linux platforms. On Windows, openocd and gdb are started in separate 
Windows Command Prompt terminals.  The output of openocd is logged to the 
openocd.log file in your project's base directory and not to the terminal. The 
openocd and gdb terminals will close automatically when you quit gdb. 
+
 $ newt run arduino_blinky 1.0.0
 App image succesfully generated: 
~/dev/myproj/bin/targets/arduino_blinky/app/apps/blinky/blinky.img
 Loading app image into slot 1

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/develop/os/tutorials/bletiny_project/index.html

[2/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/newt/install/newt_linux/index.html
--
diff --git a/latest/newt/install/newt_linux/index.html 
b/latest/newt/install/newt_linux/index.html
index c8d6124..85f830a 100644
--- a/latest/newt/install/newt_linux/index.html
+++ b/latest/newt/install/newt_linux/index.html
@@ -239,6 +239,14 @@
   
 
 
+  Install Newt on Windows
+
+
+  
+  
+  
+
+
   Install Native 
Toolchain
 
 
@@ -407,6 +415,7 @@
 Install the latest stable release version of newt from a Debian source 
package.
 
 If you are installing on an amd64 platform, we recommend that you install 
from the binary package.
+Note:  We have tested the newt tool binary and apt-get 
install from the runtimeco Debian package repository for Ubuntu version 16.  
Earlier Ubuntu versions (for example: Ubuntu 14) may have incompatibility with 
the repository. We recommend that you upgrade Ubuntu on your computer. 
 Note: See Setting Up an Go 
Environment to Contribute to Newt and Newtmgr Tools if you want to:  
 
 Use the newt tool with the latest updates from the master branch. The 
master branch may be unstable and we recommend that you use the latest stable 
release version.
@@ -455,11 +464,29 @@ deb-src 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master latest
 
 
 
+
+Update the available packages: 
+$sudo apt-get update
+
+
+
+
+Note: If you are not using Ubuntu version 16, you may see the 
following errors.  We recommend that you upgrade Ubuntu.  We have provided 
instructions on how to manually download and install the binary package if you 
choose not to upgrade, but you will want to upgrade Ubuntu if you are 
installing from source.
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/source/Sources
  HttpError404
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/binary-amd64/Packages
  Bad header line
+
+W: Failed to fetch 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/dists/latest/main/binary-i386/Packages
  HttpError404
+
+E: Some index files failed to download. They have been ignored, or old ones 
used instead.
+
+
+
+
  
 Installing the 
Latest Release of Newt from a Binary Package
-For Linux amd64 platforms, you can install the latest stable version 
(1.0.0) of newt from the newt Debian binary package:
-$sudo apt-get update
-$sudo apt-get install newt
+For Linux amd64 platforms, you can install the latest stable version 
(1.0.0) of newt from the newt Debian binary package. 
+$sudo apt-get install newt
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
@@ -472,6 +499,13 @@ Setting up newt (1.0.0-1) ...
 
 
 
+
+Note:If you are not using Ubuntu version 16 and are not 
able to update the runtimeco Debian package repo on your computer successfully, 
you can manually download and install the newt_1.0.0-1_amd64.deb binary package 
as follows:
+$wget 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/pool/main/n/newt/newt_1.0.0-1_amd64.deb
+$sudo dpkg -i newt_1.0.0-1_amd64.deb
+
+
+
 
 See Checking the Installed Version of Newt to verify that 
you are using the installed version of newt.
 
@@ -625,8 +659,8 @@ Use newt [command] --help for more information 
about a command.
 
 
 
-
-Next: Install Native Toolchain
+
+Next: Install Newt on Windows
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/newt/install/newt_mac/index.html
--
diff --git a/latest/newt/install/newt_mac/index.html 
b/latest/newt/install/newt_mac/index.html
index e21390b..c9d0900 100644
--- a/latest/newt/install/newt_mac/index.html
+++ b/latest/newt/install/newt_mac/index.html
@@ -239,6 +239,14 @@
   
 
 
+  Install Newt on Windows
+
+
+  
+  
+  
+
+
   Install Native 
Toolchain
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6e0ec54d/latest/newt/install/newt_windows/index.html
--
diff --git a/latest/newt/install/newt_windows/index.html 
b/latest/newt/install/newt_windows/index.html
new file mode 100644
index 000..aa11a7e
--- /dev/null
+++ b/latest/newt/install/newt_windows/index.html
@@ -0,0 +1,611 @@
+
+
+
+
+
+
+
+
+
+
+
+   Install Newt on Windows - Apache Mynewt
+
+
+
+
+
+
+https://fonts.googleapis.com/css?family=Lato; 
rel="stylesheet">
+

[7/7] incubator-mynewt-site git commit: Instructions for tool installation on Windows, typo corrections on Wifi tutorial, notes added in Linux install.

2017-05-12 Thread aditi
Instructions for tool installation on Windows, typo corrections on Wifi 
tutorial, notes added in Linux install.


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

Branch: refs/heads/asf-site
Commit: 6e0ec54d0963611dc3d3e7a50da6eb4fa8e77d74
Parents: 02116bd
Author: aditihilbert 
Authored: Fri May 12 13:11:55 2017 -0700
Committer: aditihilbert 
Committed: Fri May 12 13:11:55 2017 -0700

--
 develop/faq/go_env/index.html   |   4 +-
 develop/mkdocs/search_index.json| 302 +
 develop/newt/install/newt_linux/index.html  |  44 +-
 develop/newt/install/newt_mac/index.html|   8 +
 develop/newt/install/newt_windows/index.html| 611 +++
 develop/newtmgr/install_linux/index.html|  46 +-
 develop/newtmgr/install_mac/index.html  |   8 +
 develop/newtmgr/install_windows/index.html  | 500 +++
 develop/os/get_started/cross_tools/index.html   |  87 ++-
 develop/os/get_started/get_started/index.html   |   2 +-
 .../get_started/native_install_intro/index.html |  29 +-
 develop/os/get_started/native_tools/index.html  |  33 +-
 .../os/get_started/project_create/index.html| 115 ++--
 develop/os/get_started/serial_access/index.html |  89 ++-
 develop/os/introduction/index.html  |   6 +-
 develop/os/tutorials/add_shell/index.html   |  16 +-
 develop/os/tutorials/arduino_zero/index.html|   3 +
 develop/os/tutorials/bletiny_project/index.html |  20 +-
 develop/os/tutorials/blinky_console/index.html  |  18 +-
 develop/os/tutorials/blinky_primo/index.html|   5 +-
 .../os/tutorials/blinky_stm32f4disc/index.html  |   4 +-
 develop/os/tutorials/nRF52/index.html   |   4 +-
 develop/os/tutorials/olimex/index.html  |  18 +-
 .../os/tutorials/pics/device_manager_ft232H.png | Bin 0 -> 67817 bytes
 .../tutorials/pics/device_manager_no_ft232H.png | Bin 0 -> 67365 bytes
 develop/os/tutorials/pics/putty.png | Bin 0 -> 56099 bytes
 .../tutorials/project-nrf52-slinky/index.html   |  23 +-
 .../os/tutorials/project-sim-slinky/index.html  |   2 +-
 develop/os/tutorials/project-slinky/index.html  |   2 +-
 .../tutorials/project-stm32-slinky/index.html   |  19 +-
 develop/os/tutorials/rbnano2/index.html |   2 +
 .../os/tutorials/wi-fi_on_arduino/index.html|  16 +-
 develop/sitemap.xml |  26 +-
 latest/faq/go_env/index.html|   4 +-
 latest/mkdocs/search_index.json | 302 +
 latest/newt/install/newt_linux/index.html   |  44 +-
 latest/newt/install/newt_mac/index.html |   8 +
 latest/newt/install/newt_windows/index.html | 611 +++
 latest/newtmgr/install_linux/index.html |  46 +-
 latest/newtmgr/install_mac/index.html   |   8 +
 latest/newtmgr/install_windows/index.html   | 500 +++
 latest/os/get_started/cross_tools/index.html|  87 ++-
 latest/os/get_started/get_started/index.html|   2 +-
 .../get_started/native_install_intro/index.html |  29 +-
 latest/os/get_started/native_tools/index.html   |  33 +-
 latest/os/get_started/project_create/index.html | 115 ++--
 latest/os/get_started/serial_access/index.html  |  89 ++-
 latest/os/introduction/index.html   |   6 +-
 latest/os/tutorials/add_shell/index.html|  16 +-
 latest/os/tutorials/arduino_zero/index.html |   3 +
 latest/os/tutorials/bletiny_project/index.html  |  20 +-
 latest/os/tutorials/blinky_console/index.html   |  18 +-
 latest/os/tutorials/blinky_primo/index.html |   5 +-
 .../os/tutorials/blinky_stm32f4disc/index.html  |   4 +-
 latest/os/tutorials/nRF52/index.html|   4 +-
 latest/os/tutorials/olimex/index.html   |  18 +-
 .../os/tutorials/pics/device_manager_ft232H.png | Bin 0 -> 67817 bytes
 .../tutorials/pics/device_manager_no_ft232H.png | Bin 0 -> 67365 bytes
 latest/os/tutorials/pics/putty.png  | Bin 0 -> 56099 bytes
 .../tutorials/project-nrf52-slinky/index.html   |  23 +-
 .../os/tutorials/project-sim-slinky/index.html  |   2 +-
 latest/os/tutorials/project-slinky/index.html   |   2 +-
 .../tutorials/project-stm32-slinky/index.html   |  19 +-
 latest/os/tutorials/rbnano2/index.html  |   2 +
 latest/os/tutorials/wi-fi_on_arduino/index.html |  16 +-
 latest/sitemap.xml  |  26 +-
 os/tutorials/pics/device_manager_ft232H.png | Bin 0 -> 67817 bytes
 os/tutorials/pics/device_manager_no_ft232H.png  | Bin 0 -> 67365 bytes
 os/tutorials/pics/putty.png | Bin 0 -> 56099 bytes
 sitemap.xml  

[5/6] incubator-mynewt-site git commit: Merge branch 'stm32f4_blinky' of https://github.com/cwanda/incubator-mynewt-site into develop

2017-05-08 Thread aditi
Merge branch 'stm32f4_blinky' of 
https://github.com/cwanda/incubator-mynewt-site into develop

This closes #177.


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

Branch: refs/heads/develop
Commit: fa0ec2b86cad86abf9060df214cc785f0fda4a96
Parents: 562d875 46a49e9
Author: aditihilbert 
Authored: Mon May 8 11:55:37 2017 -0700
Committer: aditihilbert 
Committed: Mon May 8 11:55:37 2017 -0700

--
 docs/os/get_started/native_install_intro.md | 2 +-
 docs/os/tutorials/blinky_stm32f4disc.md | 2 +-
 docs/os/tutorials/rbnano2.md| 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
--




[4/6] incubator-mynewt-site git commit: updated link to cwiki for PR process

2017-05-08 Thread aditi
updated link to cwiki for PR process


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

Branch: refs/heads/develop
Commit: 562d875553d7d6d3c1dfe0e080a9d5a10d58fdbf
Parents: bd5c25e
Author: aditihilbert 
Authored: Mon May 8 11:26:14 2017 -0700
Committer: aditihilbert 
Committed: Mon May 8 11:26:14 2017 -0700

--
 docs/faq/answers.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/562d8755/docs/faq/answers.md
--
diff --git a/docs/faq/answers.md b/docs/faq/answers.md
index 79edc38..d13d666 100644
--- a/docs/faq/answers.md
+++ b/docs/faq/answers.md
@@ -26,7 +26,7 @@ If you are not a committer and you wish to work on it, 
someone who is on the com
 
 **You submit your proposed changes for your peers with committer status to 
review and merge.**
 
-The process to submit a Pull Request on github.com is described on the 
[Confluence page for the 
project](https://cwiki.apache.org/confluence/display/MYNEWT/Contributing+to+Apache+Mynewt).
 
+The process to submit a Pull Request on github.com is described on the 
[Confluence page for the 
project](https://cwiki.apache.org/confluence/display/MYNEWT/Submitting+Pull+Requests).
 
 
 ### I am a committer in the project. Can I merge my own Pull Request into the 
git repository?
 



[2/6] incubator-mynewt-site git commit: 1) Fixed broken link to install openocd debugger in redbear nano2 and stm32f4disc blinky tutorials. 2) Fixed broken link to installing native tools page from na

2017-05-08 Thread aditi
1) Fixed broken link to install openocd debugger in redbear nano2 and
   stm32f4disc blinky tutorials.
2) Fixed broken link to installing native tools page from native installation
   page.


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

Branch: refs/heads/develop
Commit: 46a49e91e0d628fb9425181814bef3b1599208fc
Parents: 37183d9
Author: cwanda 
Authored: Sat May 6 17:38:19 2017 -0700
Committer: cwanda 
Committed: Sun May 7 09:19:35 2017 -0700

--
 docs/os/get_started/native_install_intro.md | 2 +-
 docs/os/tutorials/blinky_stm32f4disc.md | 2 +-
 docs/os/tutorials/rbnano2.md| 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/46a49e91/docs/os/get_started/native_install_intro.md
--
diff --git a/docs/os/get_started/native_install_intro.md 
b/docs/os/get_started/native_install_intro.md
index 2cadfa1..1459835 100644
--- a/docs/os/get_started/native_install_intro.md
+++ b/docs/os/get_started/native_install_intro.md
@@ -11,7 +11,7 @@ This section shows you how to install tools on Mac OS and 
Linux platforms to dev
 
 
 * Native toolchain - Native toolchain to build and run Mynewt OS as a native 
application on your computer.
-  (See [Installing Native Toolchain](/os/get_started/native_install.md)).  
+  (See [Installing Native Toolchain](/os/get_started/native_tools.md)).  
 
 * Cross toolchain for ARM - Cross toolchain for ARM to build and run a Mynewt 
OS application on a target board
   (See [Installing Cross Tools for ARMs](/os/get_started/cross_tools.md)).

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/46a49e91/docs/os/tutorials/blinky_stm32f4disc.md
--
diff --git a/docs/os/tutorials/blinky_stm32f4disc.md 
b/docs/os/tutorials/blinky_stm32f4disc.md
index cf0e74e..74dffc6 100644
--- a/docs/os/tutorials/blinky_stm32f4disc.md
+++ b/docs/os/tutorials/blinky_stm32f4disc.md
@@ -9,7 +9,7 @@ This tutorial shows you how to create, build, and run the 
Blinky application on
 * Meet the prerequisites listed in [Project Blinky](/os/tutorials/blinky.md).
 * Have a STM32F4-Discovery board.
 * Have a USB type A to Mini-B cable.
-* Install a patched version of OpenOCD 0.10.0 described in [Install 
OpenOCD](os/get_started/cross_tools/).  
+* Install a patched version of OpenOCD 0.10.0 described in [Install 
OpenOCD](/os/get_started/cross_tools/).  
 
 ### Create a Project  
 Create a new project if you do not have an existing one.  You can skip this 
step and proceed to [create the targets](#create_targets) if you already have a 
project created.  

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/46a49e91/docs/os/tutorials/rbnano2.md
--
diff --git a/docs/os/tutorials/rbnano2.md b/docs/os/tutorials/rbnano2.md
index 4f93c09..987b549 100644
--- a/docs/os/tutorials/rbnano2.md
+++ b/docs/os/tutorials/rbnano2.md
@@ -7,7 +7,7 @@ This tutorial shows you how to create, build and run the Blinky 
application on a
 
 * Meet the prerequisites listed in [Project Blinky](/os/tutorials/blinky.md).
 * Have a RedBear Nano 2 board. 
-* Install a patched version of OpenOCD 0.10.0 described in [Install 
OpenOCD](os/get_started/cross_tools/).
+* Install a patched version of OpenOCD 0.10.0 described in [Install 
OpenOCD](/os/get_started/cross_tools/).
 
 ### Create a Project  
 Create a new project if you do not have an existing one.  You can skip this 
step and proceed to [create the targets](#create_targets) if you already have a 
project created.  



[1/6] incubator-mynewt-site git commit: updated PR and merge method documentation under FAQ

2017-05-08 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop 37183d948 -> 777620961


updated PR and merge method documentation under FAQ


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

Branch: refs/heads/develop
Commit: bd5c25eb965cac5854b3b5c43f7623728da71917
Parents: 37183d9
Author: aditihilbert 
Authored: Fri May 5 16:10:31 2017 -0700
Committer: aditihilbert 
Committed: Fri May 5 16:10:31 2017 -0700

--
 docs/faq/answers.md | 30 ++
 1 file changed, 6 insertions(+), 24 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bd5c25eb/docs/faq/answers.md
--
diff --git a/docs/faq/answers.md b/docs/faq/answers.md
index b87d910..79edc38 100644
--- a/docs/faq/answers.md
+++ b/docs/faq/answers.md
@@ -26,30 +26,12 @@ If you are not a committer and you wish to work on it, 
someone who is on the com
 
 **You submit your proposed changes for your peers with committer status to 
review and merge.**
 
-The "develop" branch on Mynewt's repository contains the most recent changes 
made by the community of developers. Contributions from you need to go into 
this branch. The essential steps to setting up your project space for working 
with the latest code from "develop" and make pull requests into "develop" to 
get your code added are the following:
-
-
-**Step 1:** Create a fork of the entire Mynewt repository on github.com.
-**Step 2:** Setup repository on your laptop to use code in “develop” 
branch. You then create a new branch “mybranch” using “git checkout 
–b”. You also add a remote handle named “fork” that points to the 
github fork you created in Step 1.
-```$ newt new devproject$ cd devproject$ vi project.yml# 
change version to 0-dev for repository.apache-mynewt-core$ newt install
$ cd repos/apache-mynewt-core$ git statusOn branch develop
Your branch is up-to-date with 'origin/develop'.nothing to commit, 
working directory clean$ git checkout –b mybranch$ git remote -v  
  origin https://github.com/apache/incubator-mynewt-core.git (fetch) 
-origin https://github.com/apache/incubator-mynewt-core.git (push)$ 
git remote add fork https://github.com//incubator-mynewt-core 
-$ git remote -vorigin 
https://github.com/apache/incubator-mynewt-core.git (fetch) 
-origin https://github.com/apache/incubator-mynewt-core.git (push)  
  fork https://github.com//incubator-mynewt-core (fetch) 
-fork https://github.com//incubator-mynewt-core (push)
-```**Step 3:** Check you are in “mybranch”. Write code. Stage and commit 
your changes(example shows adding all).
-```   $ git checkout mybranch   $ git add .   $ git commit –m “your 
message about your code changes”
-```
-**Step 4:** Always pull the latest from develop on Apache mirror to 
“mybranch” before pushing any changes to remotes. If you see merge 
conflicts, resolve them first.
-```   $ git pull --rebase origin develop
-```
-**Step 5:** Push your changes to “mybranch” branch on your github fork. If 
“mybranch” does not exist yet on your github fork, the command automa;cally 
creates it.
-```   $ git push fork mybranch
-```
-**Step 6:** Generate a pull request from “mybranch” in your fork to 
“develop” in Mynewt using the "New pull request" button on github.com.
-
-
-![Mynewt Dev Cycle](mynewt_dev_cycle.jpg)
-
+The process to submit a Pull Request on github.com is described on the 
[Confluence page for the 
project](https://cwiki.apache.org/confluence/display/MYNEWT/Contributing+to+Apache+Mynewt).
 
+
+### I am a committer in the project. Can I merge my own Pull Request into the 
git repository?
+
+Yes, but only if your Pull Request has been reviewed and approved by another 
committer in Apache Mynewt.
+The process to merge a Pull Request is described on the [Confluence page for 
the 
project](https://cwiki.apache.org/confluence/display/MYNEWT/Merging+Pull+Requests).
 
 ### I would like to make some edits to the documentation. What do I do?
 



[6/6] incubator-mynewt-site git commit: Merge branch 'linux_install' of https://github.com/cwanda/incubator-mynewt-site into develop

2017-05-08 Thread aditi
Merge branch 'linux_install' of https://github.com/cwanda/incubator-mynewt-site 
into develop

This closes #178.


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

Branch: refs/heads/develop
Commit: 777620961e4f5969394e5c6dce01aa474b80f13c
Parents: fa0ec2b 93af297
Author: aditihilbert 
Authored: Mon May 8 11:56:01 2017 -0700
Committer: aditihilbert 
Committed: Mon May 8 11:56:01 2017 -0700

--
 docs/newt/install/newt_linux.md | 8 
 docs/newtmgr/install_linux.md   | 8 
 2 files changed, 8 insertions(+), 8 deletions(-)
--




[3/6] incubator-mynewt-site git commit: Fixed incorrect repo urls for mynewt.list source list.

2017-05-08 Thread aditi
Fixed incorrect repo urls for mynewt.list source list.


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

Branch: refs/heads/develop
Commit: 93af297451b0c77a69ee45d7574edfaff552212d
Parents: c65b92c
Author: cwanda 
Authored: Mon May 8 05:01:50 2017 -0700
Committer: cwanda 
Committed: Mon May 8 05:01:50 2017 -0700

--
 docs/newt/install/newt_linux.md | 8 
 docs/newtmgr/install_linux.md   | 8 
 2 files changed, 8 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/93af2974/docs/newt/install/newt_linux.md
--
diff --git a/docs/newt/install/newt_linux.md b/docs/newt/install/newt_linux.md
index fcd971a..81e26e7 100644
--- a/docs/newt/install/newt_linux.md
+++ b/docs/newt/install/newt_linux.md
@@ -47,8 +47,8 @@ Add the repository for the binary and source packages to the 
`mynewt.list` apt s
 $sudo -s
 [sudo] password for :
 root$ cat > /etc/apt/sources.list.d/mynewt.list  /etc/apt/sources.list.d/mynewt.list 

[1/2] incubator-mynewt-site git commit: Fixed broken links in install instructions for linux

2017-05-08 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site ea2670d63 -> 02116bd4b


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/02116bd4/latest/mkdocs/search_index.json
--
diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json
index 808a034..7090d01 100644
--- a/latest/mkdocs/search_index.json
+++ b/latest/mkdocs/search_index.json
@@ -187,7 +187,7 @@
 }, 
 {
 "location": "/newt/install/newt_linux/", 
-"text": "Installing Newt on Linux\n\n\nYou can install the latest 
stable release (1.0.0) of the newt tool from a Debian binary package (amd64) or 
from a Debian source package. This page shows you how to:\n\n\n\n\nSet up your 
computer to retrieve Debian packages from the runtimeco debian package 
repository.\n\n\nInstall the latest stable release version of newt from a 
Debian binary package. \n\n\nInstall the latest stable release version of newt 
from a Debian source package.\n\n\n\n\nIf you are installing on an amd64 
platform, we recommend that you install from the binary package.\n\n\nNote:\n 
See \nSetting Up an Go Environment to Contribute to Newt and Newtmgr Tools\n if 
you want to:  \n\n\n\n\nUse the newt tool with the latest updates from the 
master branch. The master branch may be unstable and we recommend that you use 
the latest stable release version.\n\n\nContribute to the newt tool. 
\n\n\n\n\n\n\nSetting Up Your Computer to Get Packages from runtimeco\n\n\nThe 
new
 t Debian packages are stored in a private repository on 
\nhttps://github/runtimeco/debian-mynewt\n.  The following steps must be 
performed on your computer to retreive packages from the 
repository:\n\n\nNote:\n You only need to perform this setup once on your 
computer.\n\n\n\n\nInstall the \napt-transport-https\n package to use HTTPS to 
retrieve packages. \n\n\nDownload the public key for the runtimeco debian 
repository and import the key into the apt keychain.\n\n\nAdd the repository 
for the binary and source packages to the apt source list.\n\n\n\n\n\nInstall 
the apt-transport-https package:\n\n\n$sudo apt-get update\n$sudo apt-get 
install apt-transport-https\n\n\n\n\n\n\n\nDownload the public key for the 
runtimeco apt repo (\nNote:\n There is  a \n-\n after  \napt-key 
add\n):\n\n\nwget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -\n\n\n\n\n\n\n\nAdd the repository for the binary and 
source packages to the \nmynewt.list\
 n apt source list file.\n\n\n$sudo -s\n[sudo] password for \nuser\n:\nroot$ 
cat \n /etc/apt/sources.list.d/mynewt.list \nEOF\ndeb 
https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main\ndeb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main\nEOF\nroot$exit\n\n\n\n\n\nNote:\n Do not forget to exit the root 
shell.\n\n\n\nVerify the content of the source list file:\n\n\n$more 
/etc/apt/sources.list.d/mynewt.list\ndeb 
https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main\ndeb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main\n\n\n\n\n\n \n\n\nInstalling the Latest Release of Newt from a 
Binary Package\n\n\nFor Linux amd64 platforms, you can install the latest 
stable version (1.0.0) of newt from the newt Debian binary package:\n\n\n$sudo 
apt-get update\n$sudo apt-get install newt\nReading package lists... 
Done\nBuilding dependency tree   \nReading state information... Done\n\n
   ...\n\nPreparing to unpack .../newt_1.0.0-1_amd64.deb ...\nUnpacking 
newt (1.0.0-1) ...\nSetting up newt (1.0.0-1) ...\n\n\n\n\n\n\nSee \nChecking 
the Installed Version of Newt\n to verify that you are using the installed 
version of newt.\n\n\n\n\nInstalling the Latest Stable Release of Newt from a 
Source Package\n\n\nIf you are running Linux on a different architecture, you 
can install the Debian source package for the latest stable release (1.0.0) of 
newt. The installation of the source package builds the newt binary and creates 
a Debian binary package that you then install.\n\n\nNote\n: Newt version 1.0.0 
has been tested on Linux amd64 platforms. Version 1.0.0 does not build on 32 
bit platforms but have been fixed for the next release.\n\n\n\n\nInstalling Go 
1.7\n\n\nYou need Go version 1.7 or higher to build Newt version 1.0.0.  
Currently, the latest Go version that Ubuntu installs is 1.6.  Run \ngo 
version\n to check if you have Go 1.7 installed. \n\n\n\n\nInstall Go vers
 ion 1.7:\n\n\n$sudo apt-get install golang-1.7-go\nReading package lists... 
Done\n ...\nUnpacking golang-1.7-go (1.7.1-2ubuntu1) ...\nSetting up 
golang-1.7-go (1.7.1-2ubuntu1) ...\n$\n$sudo ln -sf ../lib/go-1.7/bin/go 
/usr/bin/go\n$go version\ngo version go1.7.1 linux/amd64\n\n\n\n\n\nYou can 
also download version 1.7 from \nhttps://golang.org/dl/\n. \n\n\n\n\nInstalling 
from 

[2/2] incubator-mynewt-site git commit: Fixed broken links in install instructions for linux

2017-05-08 Thread aditi
Fixed broken links in install instructions for linux


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

Branch: refs/heads/asf-site
Commit: 02116bd4b871cd408e4af7d4f3ed6358f3026647
Parents: ea2670d
Author: aditihilbert 
Authored: Mon May 8 12:00:50 2017 -0700
Committer: aditihilbert 
Committed: Mon May 8 12:00:50 2017 -0700

--
 develop/faq/answers/index.html  | 50 ++--
 develop/mkdocs/search_index.json| 17 ---
 develop/newt/install/newt_linux/index.html  |  8 ++--
 develop/newtmgr/install_linux/index.html|  8 ++--
 .../get_started/native_install_intro/index.html |  2 +-
 .../os/tutorials/blinky_stm32f4disc/index.html  |  2 +-
 develop/os/tutorials/rbnano2/index.html |  2 +-
 develop/sitemap.xml | 26 +-
 latest/faq/answers/index.html   | 50 ++--
 latest/mkdocs/search_index.json | 17 ---
 latest/newt/install/newt_linux/index.html   |  8 ++--
 latest/newtmgr/install_linux/index.html |  8 ++--
 .../get_started/native_install_intro/index.html |  2 +-
 .../os/tutorials/blinky_stm32f4disc/index.html  |  2 +-
 latest/os/tutorials/rbnano2/index.html  |  2 +-
 latest/sitemap.xml  | 26 +-
 sitemap.xml | 26 +-
 v0_9_0/sitemap.xml  | 26 +-
 18 files changed, 104 insertions(+), 178 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/02116bd4/develop/faq/answers/index.html
--
diff --git a/develop/faq/answers/index.html b/develop/faq/answers/index.html
index 0a4eb7b..6385c7f 100644
--- a/develop/faq/answers/index.html
+++ b/develop/faq/answers/index.html
@@ -276,52 +276,10 @@
 I am not on 
the committer list. How do I submit a patch?
 
 You submit your proposed changes for your peers with committer 
status to review and merge.
-The "develop" branch on Mynewt's repository contains the most recent 
changes made by the community of developers. Contributions from you need to go 
into this branch. The essential steps to setting up your project space for 
working with the latest code from "develop" and make pull requests into 
"develop" to get your code added are the following:
-Step 1: Create a fork of the entire Mynewt repository on 
github.com.
-Step 2: Setup repository on your laptop to use code in 
“develop” branch. You then create a new branch “mybranch” using “git 
checkout –b”. You also add a remote handle named “fork” that points to 
the github fork you created in Step 1.
-$ newt new devproject
-$ cd devproject
-$ vi project.yml
-# change version to 0-dev for repository.apache-mynewt-core
-$ newt install
-$ cd repos/apache-mynewt-core
-$ git status
-On branch develop
-Your branch is up-to-date with origin/develop.
-nothing to commit, working directory clean
-$ git checkout –b mybranch
-$ git remote -v
-origin https://github.com/apache/incubator-mynewt-core.git (fetch) 
-origin https://github.com/apache/incubator-mynewt-core.git (push)
-$ git remote add fork 
https://github.com/user/incubator-mynewt-core 
-$ git remote -v
-origin https://github.com/apache/incubator-mynewt-core.git (fetch) 
-origin https://github.com/apache/incubator-mynewt-core.git (push)
-fork https://github.com/user/incubator-mynewt-core (fetch) 
-fork https://github.com/user/incubator-mynewt-core (push)
-
-
-
-Step 3: Check you are in “mybranch”. Write code. Stage 
and commit your changes
-(example shows adding all).
-   $ git checkout mybranch
-   $ git add .
-   $ git commit –m “your message about your code changes”
-
-
-
-Step 4: Always pull the latest from develop on Apache 
mirror to “mybranch” before pushing any changes to remotes. If you see 
merge conflicts, resolve them first.
-   $ git pull --rebase origin develop
-
-
-
-Step 5: Push your changes to “mybranch” branch on your 
github fork. If “mybranch” does not exist yet on your github fork, the 
command automa;cally creates it.
-   $ git push fork mybranch
-
-
-
-Step 6: Generate a pull request from “mybranch” in 
your fork to “develop” in Mynewt using the "New pull request" button on 
github.com.
-
+The process to submit a Pull Request on github.com is described on the 

[2/4] incubator-mynewt-site git commit: Minor edits for installing newt and newtmgr from debian packages

2017-05-05 Thread aditi
Minor edits for installing newt and newtmgr from debian packages


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

Branch: refs/heads/develop
Commit: 6a0cc6bf76e5babc54feda6ea5bd59a0b5323f90
Parents: d7a35b7
Author: cwanda 
Authored: Wed Apr 26 11:32:20 2017 -0700
Committer: cwanda 
Committed: Thu Apr 27 10:57:08 2017 -0700

--
 docs/newt/install/newt_linux.md | 40 ++---
 docs/newtmgr/install_linux.md   | 49 
 2 files changed, 46 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/6a0cc6bf/docs/newt/install/newt_linux.md
--
diff --git a/docs/newt/install/newt_linux.md b/docs/newt/install/newt_linux.md
index 5956496..fcd971a 100644
--- a/docs/newt/install/newt_linux.md
+++ b/docs/newt/install/newt_linux.md
@@ -1,12 +1,12 @@
 ## Installing Newt on Linux
 
-You can install the latest stable release (1.0.0) of newt from a Debian binary 
package (amd64) or from a Debian source package. This page shows you how to:
+You can install the latest stable release (1.0.0) of the newt tool from a 
Debian binary package (amd64) or from a Debian source package. This page shows 
you how to:
 
 1. Set up your computer to retrieve Debian packages from the runtimeco debian 
package repository.
 2. Install the latest stable release version of newt from a Debian binary 
package. 
 3. Install the latest stable release version of newt from a Debian source 
package.
 
-If you are running on an amd64 platform, we recommend that you install from 
the binary package.
+If you are installing on an amd64 platform, we recommend that you install from 
the binary package.
 
 **Note:** See [Setting Up an Go Environment to Contribute to Newt and Newtmgr 
Tools](/faq/go_env) if you want to:  
 
@@ -16,18 +16,17 @@ If you are running on an amd64 platform, we recommend that 
you install from the
 
 
 ### Setting Up Your Computer to Get Packages from runtimeco 
-The newt Debian packages are stored in a private repository on 
**https://github/runtimeco/debian-mynewt**. 
+The newt Debian packages are stored in a private repository on 
**https://github/runtimeco/debian-mynewt**.  The following steps must be 
performed on your computer to retreive packages from the repository:
 
-**Note:** You will only need to perform these steps only once on your computer.
-The following steps must be performed on your computer:
+**Note:** You only need to perform this setup once on your computer.
 
-1. Add the `apt-transport-https` package to use HTTPS to retrieve packages. 
+1. Install the `apt-transport-https` package to use HTTPS to retrieve 
packages. 
 2. Download the public key for the runtimeco debian repository and import the 
key into the apt keychain.
 3. Add the repository for the binary and source packages to the apt source 
list.
 
 
 
-Add the apt-transport-https package:
+Install the apt-transport-https package:
 ```no-highlight
 $sudo apt-get update
 $sudo apt-get install apt-transport-https
@@ -35,14 +34,14 @@ $sudo apt-get install apt-transport-https
 
 
 
-Download the public key for the runtimeco apt repo (**Note:** There is  `-` 
after the add):
+Download the public key for the runtimeco apt repo (**Note:** There is  a `-` 
after  `apt-key add`):
 
 ```no-highlight
 wget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -
 ```
 
 
-Add the repository for the binary and source packages to the apt source list:
+Add the repository for the binary and source packages to the `mynewt.list` apt 
source list file.
 
 ```no-highlight
 $sudo -s
@@ -51,26 +50,23 @@ root$ cat > /etc/apt/sources.list.d/mynewt.list 

[1/4] incubator-mynewt-site git commit: Added Blinky stm32F4-discovery tutorial and changed runtimeinc to runtimeco in docs

2017-05-05 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop d7a35b7b2 -> 37183d948


Added Blinky stm32F4-discovery tutorial and changed runtimeinc to runtimeco in 
docs


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

Branch: refs/heads/develop
Commit: f0aeb7ea0cc0ddc82102f906704a525d1c4dd62f
Parents: d7a35b7
Author: cwanda 
Authored: Wed Apr 26 16:53:00 2017 -0700
Committer: cwanda 
Committed: Wed Apr 26 16:53:00 2017 -0700

--
 docs/os/modules/drivers/driver.md   |   2 +-
 docs/os/tutorials/STM32F303.md  |   6 +-
 docs/os/tutorials/arduino_zero.md   |   2 +-
 docs/os/tutorials/blinky.md |   1 +
 docs/os/tutorials/blinky_stm32f4disc.md | 207 +++
 docs/os/tutorials/nrf52_adc.md  |   2 +-
 docs/os/tutorials/pics/stm32f4_disc.jpg | Bin 0 -> 40575 bytes
 docs/os/tutorials/repo/add_repos.md |   2 +-
 docs/os/tutorials/wi-fi_on_arduino.md   |   2 +-
 mkdocs.yml  |   1 +
 10 files changed, 217 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/f0aeb7ea/docs/os/modules/drivers/driver.md
--
diff --git a/docs/os/modules/drivers/driver.md 
b/docs/os/modules/drivers/driver.md
index d090809..1c2d44b 100644
--- a/docs/os/modules/drivers/driver.md
+++ b/docs/os/modules/drivers/driver.md
@@ -28,7 +28,7 @@ Device drivers in the Mynewt context includes libraries that 
interface with devi
 * Device drivers should have a consistent structure and unified interface 
whenever possible. For example, we have a top-level package, “adc”, which 
contains the interface for all ADC drivers, and then we have the individual 
implementation of the driver itself.  The following source files point to this:
 
 * high-level ADC API: `hw/drivers/adc/include/adc/adc.h` 
-* implementation of ADC for STM32F4: 
`hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c` (As of the 1.0.0-beta release, 
ADC for nRF51 and nRF52 are available at an external 
[repo](https://github.com/runtimeinc/mynewt_nordic/tree/master/hw/drivers/adc). 
They are expected to be pulled into the core repo on Apache Mynewt after the 
license terms are clarified.). The only exported call in this example is `int 
stm32f4_adc_dev_init(struct os_dev *, void *)` which is passed as a function 
pointer to `os_dev_create()` in `hal_bsp.c`, when the adc device is created.
+* implementation of ADC for STM32F4: 
`hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c` (As of the 1.0.0-beta release, 
ADC for nRF51 and nRF52 are available at an external 
[repo](https://github.com/runtimeco/mynewt_nordic/tree/master/hw/drivers/adc). 
They are expected to be pulled into the core repo on Apache Mynewt after the 
license terms are clarified.). The only exported call in this example is `int 
stm32f4_adc_dev_init(struct os_dev *, void *)` which is passed as a function 
pointer to `os_dev_create()` in `hal_bsp.c`, when the adc device is created.
 
 * Device drivers should be easy to use. In Mynewt, creating a device 
initializes it as well, making it readily available for the user to open, use 
(e.g. read, configure etc.) and close. Creating a device is simple using 
`os_dev_create(struct os_dev *dev, char *name, uint8_t stage, uint8_t priority, 
os_dev_init_func_t od_init, void *arg)`. The `od_init` function is defined 
within the appropriate driver directory e.g. `stm32f4_adc_dev_init` in 
`hw/drivers/adc/adc_stm32f4/src/adc_stm32f4.c` for the ADC device 
initialization function. 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/f0aeb7ea/docs/os/tutorials/STM32F303.md
--
diff --git a/docs/os/tutorials/STM32F303.md b/docs/os/tutorials/STM32F303.md
index 7d9fd91..bb5e0e8 100644
--- a/docs/os/tutorials/STM32F303.md
+++ b/docs/os/tutorials/STM32F303.md
@@ -63,14 +63,14 @@ Edit the file `project.yml` with your favorite editor and 
add the
 following repository details in the file (after the core 
 repository).  This gives newt the information to contact the repository
 and extract its contents.  In this case, the repository is on github in 
-the `runtimeinc` collection. Its name is `mynewt-stm32f3` and we will accept
-any version up to the latest. You can look at the contents 
[here](https://github.com/runtimeinc/mynewt_stm32f3).
+the `runtimeco` collection. Its name is `mynewt-stm32f3` and we will accept
+any version up to the latest. You can 

[4/4] incubator-mynewt-site git commit: Merge branch 'stm32f4_blinky' of https://github.com/cwanda/incubator-mynewt-site into develop

2017-05-05 Thread aditi
Merge branch 'stm32f4_blinky' of 
https://github.com/cwanda/incubator-mynewt-site into develop

This closes #176. This closes #175.


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

Branch: refs/heads/develop
Commit: 37183d94805a12456673281cb8fab93fdba94538
Parents: c65b92c f0aeb7e
Author: aditihilbert 
Authored: Fri May 5 14:20:57 2017 -0700
Committer: aditihilbert 
Committed: Fri May 5 14:20:57 2017 -0700

--
 docs/os/modules/drivers/driver.md   |   2 +-
 docs/os/tutorials/STM32F303.md  |   6 +-
 docs/os/tutorials/arduino_zero.md   |   2 +-
 docs/os/tutorials/blinky.md |   1 +
 docs/os/tutorials/blinky_stm32f4disc.md | 207 +++
 docs/os/tutorials/nrf52_adc.md  |   2 +-
 docs/os/tutorials/pics/stm32f4_disc.jpg | Bin 0 -> 40575 bytes
 docs/os/tutorials/repo/add_repos.md |   2 +-
 docs/os/tutorials/wi-fi_on_arduino.md   |   2 +-
 mkdocs.yml  |   1 +
 10 files changed, 217 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/37183d94/docs/os/tutorials/arduino_zero.md
--

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/37183d94/docs/os/tutorials/blinky.md
--

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/37183d94/mkdocs.yml
--



[3/4] incubator-mynewt-site git commit: Fixed ordering of installation sequence - The installing native tool chain page was listed before the Installing newt tool instruction page, and told the user h

2017-05-05 Thread aditi
Fixed ordering of installation sequence -
The installing native tool chain page was listed before the Installing newt 
tool instruction page,
and told the user he can proceed to create a project at the end of the page. If 
the user followed this sequence,
he would not have installed newt yet.

To make this more clear:
1) Added a native install introduction that list all the tools to install.
2) Moved the Install Native Toolchain to after the Installing Newt instruction.
3) Minor edits to create first project section.
4) Fixed URL references to native_tools.md to point to basic setup that covers 
installation option.


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

Branch: refs/heads/develop
Commit: c65b92c61f11ec203c5a9726e87073537669bfec
Parents: 6a0cc6b
Author: cwanda 
Authored: Tue May 2 10:30:24 2017 -0700
Committer: cwanda 
Committed: Wed May 3 12:56:12 2017 -0700

--
 docs/faq/go_env.md  |  2 +-
 docs/os/get_started/native_install_intro.md | 17 +
 docs/os/get_started/native_tools.md |  2 +-
 docs/os/get_started/project_create.md   | 13 ++---
 docs/os/tutorials/add_newtmgr.md|  6 ++
 docs/os/tutorials/add_shell.md  | 17 +++--
 docs/os/tutorials/arduino_zero.md   |  2 +-
 docs/os/tutorials/blehci_project.md | 18 --
 docs/os/tutorials/bletiny_project.md| 17 -
 docs/os/tutorials/blinky.md |  2 +-
 mkdocs.yml  |  7 ---
 11 files changed, 56 insertions(+), 47 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c65b92c6/docs/faq/go_env.md
--
diff --git a/docs/faq/go_env.md b/docs/faq/go_env.md
index 4b4a880..effa141 100644
--- a/docs/faq/go_env.md
+++ b/docs/faq/go_env.md
@@ -163,7 +163,7 @@ Check that the newtmgr binary is installed and you are 
using the one from **$GOP
 ```no-highlight
 $ls $GOPATH/bin/newtmgr
 ~/dev/go/bin/newtmgr
-$which newt
+$which newtmgr
 ~/dev/go/bin/newtmgr
 ```
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c65b92c6/docs/os/get_started/native_install_intro.md
--
diff --git a/docs/os/get_started/native_install_intro.md 
b/docs/os/get_started/native_install_intro.md
new file mode 100644
index 000..2cadfa1
--- /dev/null
+++ b/docs/os/get_started/native_install_intro.md
@@ -0,0 +1,17 @@
+# Native Installation 
+
+This section shows you how to install tools on Mac OS and Linux platforms to 
develop, build, run, and debug Mynewt OS applications. You can build Mynewt OS 
applications to run as a native application on your computer or to run on your 
target board. These tools include:
+
+* Newt tool - Tool to create, build, load, and debug a mynewt target.
+
+* See [Installing the Newt Tool on Mac OS](/newt/install/newt_mac.md) to 
install on Mac OS.
+* See [Installing the Newt Tool on Linux](/newt/install/newt_linux.md) to 
install on Linux.
+
+
+
+
+* Native toolchain - Native toolchain to build and run Mynewt OS as a native 
application on your computer.
+  (See [Installing Native Toolchain](/os/get_started/native_install.md)).  
+
+* Cross toolchain for ARM - Cross toolchain for ARM to build and run a Mynewt 
OS application on a target board
+  (See [Installing Cross Tools for ARMs](/os/get_started/cross_tools.md)).

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/c65b92c6/docs/os/get_started/native_tools.md
--
diff --git a/docs/os/get_started/native_tools.md 
b/docs/os/get_started/native_tools.md
index 8ca3bdc..852e037 100644
--- a/docs/os/get_started/native_tools.md
+++ b/docs/os/get_started/native_tools.md
@@ -139,4 +139,4 @@ Setting up gdb (7.7.1-0ubuntu5~14.04.2) ...
 
 
 
-At this point you have installed all the necessary software to build and test 
code on a simluator running on your Mac or Linux. Proceed to the [Create Your 
First Project](project_create.md) section.
+At this point you have installed all the necessary software to build and run 
your first project on a simluator on your Mac OS or Linux computer. You may 
proceed to the [Create Your First Project](project_create.md) section or 
continue to the next section and install the cross tools for ARM.


[4/7] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-05 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/develop/sitemap.xml
--
diff --git a/develop/sitemap.xml b/develop/sitemap.xml
index b635405..bdc2916 100644
--- a/develop/sitemap.xml
+++ b/develop/sitemap.xml
@@ -4,7 +4,7 @@
 
 
  http://mynewt.apache.org/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -13,7 +13,7 @@
 
 
  http://mynewt.apache.org/pages/ble/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -22,7 +22,7 @@
 
 
  http://mynewt.apache.org/quick-start/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -30,7 +30,7 @@
 
 
  http://mynewt.apache.org/about/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -38,7 +38,7 @@
 
 
  http://mynewt.apache.org/talks/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -46,7 +46,7 @@
 
 
  http://mynewt.apache.org/download/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -54,7 +54,7 @@
 
 
  http://mynewt.apache.org/community/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -62,7 +62,7 @@
 
 
  http://mynewt.apache.org/events/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -71,7 +71,7 @@
 
 
  http://mynewt.apache.org/os/introduction/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -83,7 +83,7 @@
 
 
  http://mynewt.apache.org/os/get_started/vocabulary/
- 2017-04-25
+ 2017-05-05
  daily
 
 
@@ -123,19 +123,19 @@
 
 
  http://mynewt.apache.org/faq/go_env/
- 2017-04-25
+ 2017-05-05
  daily
 
 
 
  http://mynewt.apache.org/faq/how_to_edit_docs/
- 2017-04-25
+ 2017-05-05
  daily
 
 
 
  http://mynewt.apache.org/faq/answers/
- 2017-04-25
+ 2017-05-05
  daily
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/latest/faq/go_env/index.html
--
diff --git a/latest/faq/go_env/index.html b/latest/faq/go_env/index.html
index 36d3bd2..079529b 100644
--- a/latest/faq/go_env/index.html
+++ b/latest/faq/go_env/index.html
@@ -409,7 +409,7 @@ nothing to commit, working directory clean
 Check that the newtmgr binary is installed and you are using the one from 
$GOPATH/bin:
 $ls $GOPATH/bin/newtmgr
 ~/dev/go/bin/newtmgr
-$which newt
+$which newtmgr
 ~/dev/go/bin/newtmgr
 
 



[7/7] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-05 Thread aditi
changed runtimeinc to runtimeco in docs, updated install instructions for linux 
, blinky for stm32F4-discovery


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

Branch: refs/heads/asf-site
Commit: ea2670d630c65bb26c755ae5a46ffa3d9e2c35f7
Parents: 26592f0
Author: aditihilbert 
Authored: Fri May 5 15:30:53 2017 -0700
Committer: aditihilbert 
Committed: Fri May 5 15:30:53 2017 -0700

--
 develop/faq/go_env/index.html   |   2 +-
 develop/mkdocs/search_index.json| 214 --
 develop/newt/install/newt_linux/index.html  |  54 +-
 develop/newt/install/newt_mac/index.html|  16 +-
 develop/newtmgr/install_linux/index.html|  43 +-
 develop/os/get_started/cross_tools/index.html   |  16 +-
 develop/os/get_started/docker/index.html|   2 +-
 develop/os/get_started/get_started/index.html   |   6 +-
 .../get_started/native_install_intro/index.html | 476 
 develop/os/get_started/native_tools/index.html  |  28 +-
 .../os/get_started/project_create/index.html|  15 +-
 develop/os/get_started/serial_access/index.html |   2 +-
 develop/os/modules/drivers/driver/index.html|   2 +-
 develop/os/tutorials/add_newtmgr/index.html |   6 +-
 develop/os/tutorials/add_shell/index.html   |  15 +-
 develop/os/tutorials/arduino_zero/index.html|  12 +-
 develop/os/tutorials/blehci_project/index.html  |  18 +-
 develop/os/tutorials/bletiny_project/index.html |  16 +-
 develop/os/tutorials/blinky/index.html  |  11 +-
 develop/os/tutorials/blinky_console/index.html  |  12 +-
 develop/os/tutorials/blinky_primo/index.html|   8 +
 .../os/tutorials/blinky_stm32f4disc/index.html  | 770 +++
 develop/os/tutorials/nRF52/index.html   |   8 +
 develop/os/tutorials/nrf52_adc/index.html   |   2 +-
 develop/os/tutorials/olimex/index.html  |   8 +
 develop/os/tutorials/pics/stm32f4_disc.jpg  | Bin 0 -> 40575 bytes
 develop/os/tutorials/rbnano2/index.html |  12 +-
 develop/os/tutorials/repo/add_repos/index.html  |   2 +-
 .../os/tutorials/wi-fi_on_arduino/index.html|   2 +-
 develop/sitemap.xml |  26 +-
 latest/faq/go_env/index.html|   2 +-
 latest/mkdocs/search_index.json | 214 --
 latest/newt/install/newt_linux/index.html   |  54 +-
 latest/newt/install/newt_mac/index.html |  16 +-
 latest/newtmgr/install_linux/index.html |  43 +-
 latest/os/get_started/cross_tools/index.html|  16 +-
 latest/os/get_started/docker/index.html |   2 +-
 latest/os/get_started/get_started/index.html|   6 +-
 .../get_started/native_install_intro/index.html | 476 
 latest/os/get_started/native_tools/index.html   |  28 +-
 latest/os/get_started/project_create/index.html |  15 +-
 latest/os/get_started/serial_access/index.html  |   2 +-
 latest/os/modules/drivers/driver/index.html |   2 +-
 latest/os/tutorials/add_newtmgr/index.html  |   6 +-
 latest/os/tutorials/add_shell/index.html|  15 +-
 latest/os/tutorials/arduino_zero/index.html |  12 +-
 latest/os/tutorials/blehci_project/index.html   |  18 +-
 latest/os/tutorials/bletiny_project/index.html  |  16 +-
 latest/os/tutorials/blinky/index.html   |  11 +-
 latest/os/tutorials/blinky_console/index.html   |  12 +-
 latest/os/tutorials/blinky_primo/index.html |   8 +
 .../os/tutorials/blinky_stm32f4disc/index.html  | 770 +++
 latest/os/tutorials/nRF52/index.html|   8 +
 latest/os/tutorials/nrf52_adc/index.html|   2 +-
 latest/os/tutorials/olimex/index.html   |   8 +
 latest/os/tutorials/pics/stm32f4_disc.jpg   | Bin 0 -> 40575 bytes
 latest/os/tutorials/rbnano2/index.html  |  12 +-
 latest/os/tutorials/repo/add_repos/index.html   |   2 +-
 latest/os/tutorials/wi-fi_on_arduino/index.html |   2 +-
 latest/sitemap.xml  |  26 +-
 os/tutorials/pics/stm32f4_disc.jpg  | Bin 0 -> 40575 bytes
 sitemap.xml |  26 +-
 v0_9_0/os/tutorials/pics/stm32f4_disc.jpg   | Bin 0 -> 40575 bytes
 v0_9_0/sitemap.xml  |  26 +-
 64 files changed, 3206 insertions(+), 454 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/develop/faq/go_env/index.html
--
diff --git a/develop/faq/go_env/index.html b/develop/faq/go_env/index.html
index f897a6f..0b74b23 

[3/7] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-05 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/latest/mkdocs/search_index.json
--
diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json
index 4de7a25..808a034 100644
--- a/latest/mkdocs/search_index.json
+++ b/latest/mkdocs/search_index.json
@@ -146,49 +146,14 @@
 "title": "Quick Start"
 }, 
 {
-"location": "/os/get_started/native_tools/", 
-"text": "Installing Native Mynewt Tools\n\n\nThis page shows how 
to install tools for native Mynewt targets (simulated targets on your 
laptop/computer) without using a Docker container. In other words, it allows 
you to run Mynewt OS as a native application on your Mac or Linux machine to 
simulate a target and use the Newt tool running natively on your machine to 
manage the simulated target. It also allows you to run the test suites for all 
packages not requiring HW support. You may choose to do this instead of using 
the build toolchain and Newt tool available in a Docker container.\n\n\nThis 
page provides guidance for MAC and Linux. See the relevant sections 
below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not 
already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. 
\n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang.  To 
build applications for the Mynewt simulator with, a different compiler is used 
as
  default: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a  
/usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nCheck the gcc 
version you have installed (either using brew or previously installed). The 
brew-installed version can be checked using \nbrew list gcc\n. The default 
compiler.yml configuration file in Mynewt expects version 5.x for Mac users, so 
if the installed version is 6.x and you wish to continue with this newer 
version, modify the 
\nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n 
file to change the default \ngcc-5\n defined there to \ngcc-6\n. In other 
words, replace the lines shown highlighted below:\n\n\n# OS 
X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: 
\ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: 
\nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: 
\ngobjcopy\n\n\n\n\n\n\nwith the following:\n\n\ncompiler.p
 ath.cc.DARWIN.OVERWRITE: \ngcc-6\n\ncompiler.path.as.DARWIN.OVERWRITE: 
\ngcc-6\u201d\n\n\n\n\n\n\n\nIn case you wish to use Clang, you can change your 
\nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n 
to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.\n\n\n# 
OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: 
\ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: 
\nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: 
\ngobjcopy\n\n\n\n\n\n\n\n\nNOTE:\n Both the newer gcc 6.x and Clang report a 
few warnings but they can be ignored.\n\n\n\n\nFURTHER NOTE:\n Mynewt 
developers mostly use gcc 5.x for sim builds; so it may take a little while to 
fix issues reported by the newer compiler. One option is to \ndisable 
warnings\n. To do that, remove the \n-Werror\n flag as an option for the 
compiler in the  \nmynewt-src-directory\n/repos/apache-mynewt-core
 /compiler/sim/compiler.yml\n file as shown below. \n\n\ncompiler.flags.base: 
\n\n\n-m32 -Wall -ggdb\n\n\n\n\n\nYou may alternatively choose to \nspecify 
the precise warnings to ignore\n depending on the error thrown by the compiler. 
For example, if you see a \n[-Werror=misleading-indentation]\n error while 
building the sim image, add \n-Wno-misleading-indentation]\n as a compiler flag 
in the same line from the 
\nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n 
file.\n\n\ncompiler.flags.base: \n\n\n-m32 -Wall -Werror -ggdb 
-Wno-misleading-indentation\n\n\n\n\n\nA third option is to simply \ndowngrade 
to gcc 5.x\n.\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n 
Summary\n\ud83c\udf7a  /usr/local/Cellar/gdb/7.10.1: XXX 
files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need 
to sign your gdb\nexecutable.  \nThis page\n\nshows a recipe for gdb signing. 
Alternately you can skip this step and\ncontinue without the abili
 ty to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for 
Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux 
system (e.g.,\nUbuntu).  If you are running a different Linux distribution, you 
will need to\nsubstitute invocations of \napt-get\n in the below steps with the 
package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will 
produce 32-bit executables:\n\n\n$ sudo apt-get 

[2/7] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-05 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/latest/newt/install/newt_linux/index.html
--
diff --git a/latest/newt/install/newt_linux/index.html 
b/latest/newt/install/newt_linux/index.html
index ed4c63e..d177b3f 100644
--- a/latest/newt/install/newt_linux/index.html
+++ b/latest/newt/install/newt_linux/index.html
@@ -213,7 +213,7 @@
 
   
   
-Native install 
Option
+Native 
Install Option
   
   
 
@@ -239,6 +239,14 @@
   
 
 
+  Install Native 
Toolchain
+
+
+  
+  
+  
+
+
   Install Cross Tools for 
ARM
 
 
@@ -379,7 +387,7 @@
 
   
 
-   Native 
install Option
+   Native Install 
Option
 
   
   
@@ -392,13 +400,13 @@
 
 
 Installing Newt 
on Linux
-You can install the latest stable release (1.0.0) of newt from a Debian 
binary package (amd64) or from a Debian source package. This page shows you how 
to:
+You can install the latest stable release (1.0.0) of the newt tool from a 
Debian binary package (amd64) or from a Debian source package. This page shows 
you how to:
 
 Set up your computer to retrieve Debian packages from the runtimeco debian 
package repository.
 Install the latest stable release version of newt from a Debian binary 
package. 
 Install the latest stable release version of newt from a Debian source 
package.
 
-If you are running on an amd64 platform, we recommend that you install from 
the binary package.
+If you are installing on an amd64 platform, we recommend that you install 
from the binary package.
 Note: See Setting Up an Go 
Environment to Contribute to Newt and Newtmgr Tools if you want to:  
 
 Use the newt tool with the latest updates from the master branch. The 
master branch may be unstable and we recommend that you use the latest stable 
release version.
@@ -406,55 +414,50 @@
 
 
 Setting Up 
Your Computer to Get Packages from runtimeco
-The newt Debian packages are stored in a private repository on 
https://github/runtimeco/debian-mynewt. 
-Note: You will only need to perform these steps only once 
on your computer.
-The following steps must be performed on your computer:
+The newt Debian packages are stored in a private repository on 
https://github/runtimeco/debian-mynewt.  The following steps 
must be performed on your computer to retreive packages from the repository:
+Note: You only need to perform this setup once on your 
computer.
 
-Add the apt-transport-https package to use HTTPS to retrieve 
packages. 
+Install the apt-transport-https package to use HTTPS to 
retrieve packages. 
 Download the public key for the runtimeco debian repository and import the 
key into the apt keychain.
 Add the repository for the binary and source packages to the apt source 
list.
 
 
-Add the apt-transport-https package:
+Install the apt-transport-https package:
 $sudo apt-get update
 $sudo apt-get install apt-transport-https
 
 
 
 
-Download the public key for the runtimeco apt repo (Note: 
There is  - after the add):
+Download the public key for the runtimeco apt repo (Note: 
There is  a - after  apt-key add):
 wget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -
 
 
 
 
-Add the repository for the binary and source packages to the apt source 
list:
+Add the repository for the binary and source packages to the 
mynewt.list apt source list file.
 $sudo -s
 [sudo] password for user:
 root$ cat  /etc/apt/sources.list.d/mynewt.list EOF
 deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
 deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
 EOF
+root$exit
 
 
 
+Note: Do not forget to exit the root shell.
 
-Check the content of the file:
-root$more /etc/apt/sources.list.d//mynewt.list
+Verify the content of the source list file:
+$more /etc/apt/sources.list.d/mynewt.list
 deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
 deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
 
 
 
  
-Exit the root shell:
-root$exit
-
-
-
-
 Installing the 
Latest Release of Newt from a Binary Package
-For Linux amd64 platform, you can install the latest stable version (1.0.0) 
of newt from the newt Debian binary package:
+For Linux amd64 platforms, you can install the latest stable version 
(1.0.0) of newt from the newt Debian binary package:
 $sudo apt-get update
 $sudo apt-get install newt
 Reading package lists... Done
@@ -474,7 +477,7 @@ See Checking the Installed Version of 
Newt to verify that y
 
 Installing
 the Latest Stable Release of Newt from a Source Package
 If you are running Linux on a different architecture, you can install the 
Debian 

[6/7] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-05 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/develop/mkdocs/search_index.json
--
diff --git a/develop/mkdocs/search_index.json b/develop/mkdocs/search_index.json
index 4de7a25..808a034 100644
--- a/develop/mkdocs/search_index.json
+++ b/develop/mkdocs/search_index.json
@@ -146,49 +146,14 @@
 "title": "Quick Start"
 }, 
 {
-"location": "/os/get_started/native_tools/", 
-"text": "Installing Native Mynewt Tools\n\n\nThis page shows how 
to install tools for native Mynewt targets (simulated targets on your 
laptop/computer) without using a Docker container. In other words, it allows 
you to run Mynewt OS as a native application on your Mac or Linux machine to 
simulate a target and use the Newt tool running natively on your machine to 
manage the simulated target. It also allows you to run the test suites for all 
packages not requiring HW support. You may choose to do this instead of using 
the build toolchain and Newt tool available in a Docker container.\n\n\nThis 
page provides guidance for MAC and Linux. See the relevant sections 
below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not 
already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. 
\n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang.  To 
build applications for the Mynewt simulator with, a different compiler is used 
as
  default: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a  
/usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nCheck the gcc 
version you have installed (either using brew or previously installed). The 
brew-installed version can be checked using \nbrew list gcc\n. The default 
compiler.yml configuration file in Mynewt expects version 5.x for Mac users, so 
if the installed version is 6.x and you wish to continue with this newer 
version, modify the 
\nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n 
file to change the default \ngcc-5\n defined there to \ngcc-6\n. In other 
words, replace the lines shown highlighted below:\n\n\n# OS 
X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: 
\ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: 
\nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: 
\ngobjcopy\n\n\n\n\n\n\nwith the following:\n\n\ncompiler.p
 ath.cc.DARWIN.OVERWRITE: \ngcc-6\n\ncompiler.path.as.DARWIN.OVERWRITE: 
\ngcc-6\u201d\n\n\n\n\n\n\n\nIn case you wish to use Clang, you can change your 
\nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n 
to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.\n\n\n# 
OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: 
\ngcc-5\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: 
\ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: 
\nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: 
\ngobjcopy\n\n\n\n\n\n\n\n\nNOTE:\n Both the newer gcc 6.x and Clang report a 
few warnings but they can be ignored.\n\n\n\n\nFURTHER NOTE:\n Mynewt 
developers mostly use gcc 5.x for sim builds; so it may take a little while to 
fix issues reported by the newer compiler. One option is to \ndisable 
warnings\n. To do that, remove the \n-Werror\n flag as an option for the 
compiler in the  \nmynewt-src-directory\n/repos/apache-mynewt-core
 /compiler/sim/compiler.yml\n file as shown below. \n\n\ncompiler.flags.base: 
\n\n\n-m32 -Wall -ggdb\n\n\n\n\n\nYou may alternatively choose to \nspecify 
the precise warnings to ignore\n depending on the error thrown by the compiler. 
For example, if you see a \n[-Werror=misleading-indentation]\n error while 
building the sim image, add \n-Wno-misleading-indentation]\n as a compiler flag 
in the same line from the 
\nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n 
file.\n\n\ncompiler.flags.base: \n\n\n-m32 -Wall -Werror -ggdb 
-Wno-misleading-indentation\n\n\n\n\n\nA third option is to simply \ndowngrade 
to gcc 5.x\n.\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n 
Summary\n\ud83c\udf7a  /usr/local/Cellar/gdb/7.10.1: XXX 
files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need 
to sign your gdb\nexecutable.  \nThis page\n\nshows a recipe for gdb signing. 
Alternately you can skip this step and\ncontinue without the abili
 ty to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for 
Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux 
system (e.g.,\nUbuntu).  If you are running a different Linux distribution, you 
will need to\nsubstitute invocations of \napt-get\n in the below steps with the 
package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will 
produce 32-bit executables:\n\n\n$ sudo 

[5/7] incubator-mynewt-site git commit: changed runtimeinc to runtimeco in docs, updated install instructions for linux , blinky for stm32F4-discovery

2017-05-05 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ea2670d6/develop/newt/install/newt_linux/index.html
--
diff --git a/develop/newt/install/newt_linux/index.html 
b/develop/newt/install/newt_linux/index.html
index cbdbbd4..9e5bd62 100644
--- a/develop/newt/install/newt_linux/index.html
+++ b/develop/newt/install/newt_linux/index.html
@@ -213,7 +213,7 @@
 
   
   
-Native install 
Option
+Native 
Install Option
   
   
 
@@ -239,6 +239,14 @@
   
 
 
+  Install Native 
Toolchain
+
+
+  
+  
+  
+
+
   Install Cross Tools for 
ARM
 
 
@@ -379,7 +387,7 @@
 
   
 
-   Native 
install Option
+   Native Install 
Option
 
   
   
@@ -392,13 +400,13 @@
 
 
 Installing Newt 
on Linux
-You can install the latest stable release (1.0.0) of newt from a Debian 
binary package (amd64) or from a Debian source package. This page shows you how 
to:
+You can install the latest stable release (1.0.0) of the newt tool from a 
Debian binary package (amd64) or from a Debian source package. This page shows 
you how to:
 
 Set up your computer to retrieve Debian packages from the runtimeco debian 
package repository.
 Install the latest stable release version of newt from a Debian binary 
package. 
 Install the latest stable release version of newt from a Debian source 
package.
 
-If you are running on an amd64 platform, we recommend that you install from 
the binary package.
+If you are installing on an amd64 platform, we recommend that you install 
from the binary package.
 Note: See Setting Up an Go 
Environment to Contribute to Newt and Newtmgr Tools if you want to:  
 
 Use the newt tool with the latest updates from the master branch. The 
master branch may be unstable and we recommend that you use the latest stable 
release version.
@@ -406,55 +414,50 @@
 
 
 Setting Up 
Your Computer to Get Packages from runtimeco
-The newt Debian packages are stored in a private repository on 
https://github/runtimeco/debian-mynewt. 
-Note: You will only need to perform these steps only once 
on your computer.
-The following steps must be performed on your computer:
+The newt Debian packages are stored in a private repository on 
https://github/runtimeco/debian-mynewt.  The following steps 
must be performed on your computer to retreive packages from the repository:
+Note: You only need to perform this setup once on your 
computer.
 
-Add the apt-transport-https package to use HTTPS to retrieve 
packages. 
+Install the apt-transport-https package to use HTTPS to 
retrieve packages. 
 Download the public key for the runtimeco debian repository and import the 
key into the apt keychain.
 Add the repository for the binary and source packages to the apt source 
list.
 
 
-Add the apt-transport-https package:
+Install the apt-transport-https package:
 $sudo apt-get update
 $sudo apt-get install apt-transport-https
 
 
 
 
-Download the public key for the runtimeco apt repo (Note: 
There is  - after the add):
+Download the public key for the runtimeco apt repo (Note: 
There is  a - after  apt-key add):
 wget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -
 
 
 
 
-Add the repository for the binary and source packages to the apt source 
list:
+Add the repository for the binary and source packages to the 
mynewt.list apt source list file.
 $sudo -s
 [sudo] password for user:
 root$ cat  /etc/apt/sources.list.d/mynewt.list EOF
 deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
 deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
 EOF
+root$exit
 
 
 
+Note: Do not forget to exit the root shell.
 
-Check the content of the file:
-root$more /etc/apt/sources.list.d//mynewt.list
+Verify the content of the source list file:
+$more /etc/apt/sources.list.d/mynewt.list
 deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
 deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
 
 
 
  
-Exit the root shell:
-root$exit
-
-
-
-
 Installing the 
Latest Release of Newt from a Binary Package
-For Linux amd64 platform, you can install the latest stable version (1.0.0) 
of newt from the newt Debian binary package:
+For Linux amd64 platforms, you can install the latest stable version 
(1.0.0) of newt from the newt Debian binary package:
 $sudo apt-get update
 $sudo apt-get install newt
 Reading package lists... Done
@@ -474,7 +477,7 @@ See Checking the Installed Version of 
Newt to verify that y
 
 Installing
 the Latest Stable Release of Newt from a Source Package
 If you are running Linux on a different architecture, you can install the 

[2/2] incubator-mynewt-site git commit: swapped the docker and native install versions in Quick Start This closes #169.

2017-04-25 Thread aditi
swapped the docker and native install versions in Quick Start
This closes #169.


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

Branch: refs/heads/master
Commit: 690d313073b22662fbf04e9752667399af262bf1
Parents: 2a94d2c
Author: aditihilbert 
Authored: Tue Apr 25 17:45:39 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 17:54:16 2017 -0700

--
 docs/quick-start.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/690d3130/docs/quick-start.md
--
diff --git a/docs/quick-start.md b/docs/quick-start.md
index 002c487..dc72e6f 100644
--- a/docs/quick-start.md
+++ b/docs/quick-start.md
@@ -4,9 +4,10 @@ Apache Mynewt currently offers two ways to quickly get set up, 
each appealing to
 
 
 
-* **Option 1:** All-in-one docker container that bundles Newt tool, developer 
toolchains and libraries. For this option, go to [Docker 
instructions](/DOCSLINK/os/get_started/docker/)
+* **Option 1:** Step-by-step instructions to install the Newt tool, developer 
toolchains and libraries natively on your computer. This is the recommended 
option. For this option, go to [Native 
Setup](/DOCSLINK/os/get_started/native_tools/)
+
+* **Option 2:** All-in-one docker container that bundles Newt tool, developer 
toolchains and libraries. This option is only for a quick look at the project. 
For this option, go to [Docker instructions](/DOCSLINK/os/get_started/docker/)
 
-* **Option 2:** Step-by-step instructions to install the Newt tool, developer 
toolchains and libraries natively on your computer. For this option, go to 
[Native Setup](/DOCSLINK/os/get_started/native_tools/)
 
 
 



[04/12] incubator-mynewt-site git commit: Added how to install openocd binary. Added information about installing J-Link Added the specific debugger to install in prerequisites to blinky and slinky tu

2017-04-25 Thread aditi
Added how to  install openocd binary.
Added information about installing J-Link
Added the specific debugger to install in prerequisites to blinky and slinky 
tutorials.
Removed STM32F303 from list of blinky tutorials


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

Branch: refs/heads/develop
Commit: 0c750d3210b9217b291cfa5ea881adeed1a9a2cc
Parents: 2aa8532
Author: cwanda 
Authored: Fri Apr 14 21:04:49 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 13:03:34 2017 -0700

--
 docs/os/get_started/cross_tools.md| 103 +
 docs/os/tutorials/arduino_zero.md |   1 +
 docs/os/tutorials/blinky.md   |   1 -
 docs/os/tutorials/blinky_primo.md |  18 +
 docs/os/tutorials/nRF52.md|   1 +
 docs/os/tutorials/olimex.md   |   2 +
 docs/os/tutorials/project-nrf52-slinky.md |   1 +
 docs/os/tutorials/project-stm32-slinky.md |   1 +
 docs/os/tutorials/rbnano2.md  |   3 +-
 mkdocs.yml|   3 -
 10 files changed, 80 insertions(+), 54 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/0c750d32/docs/os/get_started/cross_tools.md
--
diff --git a/docs/os/get_started/cross_tools.md 
b/docs/os/get_started/cross_tools.md
index b68c1e9..450952d 100644
--- a/docs/os/get_started/cross_tools.md
+++ b/docs/os/get_started/cross_tools.md
@@ -1,14 +1,15 @@
 # Installing Cross Tools for ARM 
 
-This page shows how to install tools on your laptop/computer to use for direct 
communication (e.g. for debugging) with some ARM based HW platforms running 
Apache Mynewt. You will also have to use the Newt tool installed to run 
natively on your machine. You may choose to do this instead of using the build 
toolchain and Newt tool available in a Docker container.
+This page shows how to install tools on your laptop/computer to use for direct 
communication (e.g. for debugging) with some ARM based HW platforms running 
Apache Mynewt.  It shows you how to install the following tools for Mac OS X 
and Linux:
 
-This page provides guidance for installing the tools directly on your MAC and 
Linux machine. See the relevant sections below.
+* ARM Cross toolchain
+* Debugger to load and debug your device
 
 
 
-## Install ARM Cross tools in Mac OS X
+## Install ARM Cross Toolchain
 
-### Install Tool Chain
+### Install ARM Toolchain For Mac OS X
 
 Install the PX4 Toolchain and check the version installed. ARM maintains a
 pre-built GNU toolchain with a GCC source branch targeted at Embedded ARM
@@ -34,27 +35,7 @@ including the latest releases. However, at present we have 
tested only with
 this version and recommend it for getting started. 
 
 
-
-### Install OpenOCD
-
-OpenOCD (Open On-Chip Debugger) is open-source software that allows your
-computer to interface with the JTAG debug connector on a variety of boards.  A
-JTAG connection lets you debug and test embedded target devices. For more on
-OpenOCD go to [http://openocd.org](http://openocd.org).
-
-```no-highlight
-$ brew install open-ocd
-$ which openocd
-/usr/local/bin/openocd
-$ ls -l $(which openocd)
-lrwxr-xr-x  1   admin  36 Sep 17 16:22 /usr/local/bin/openocd -> 
../Cellar/open-ocd/0.9.0/bin/openocd
-```
-
-
-
-## Install ARM cross arm tools for Linux
-
-### Install Tool Chain
+### Install ARM Toolchain For Linux
 
 On a Debian-based Linux distribution, gcc 4.9.3 for ARM can be installed with
 apt-get as documented below. The steps are explained in depth at
@@ -67,21 +48,79 @@ $ sudo apt-get update
 $ sudo apt-get install gcc-arm-none-eabi
 $ sudo apt-get install gdb-arm-none-eabi
 ```
+
+## Install Debugger 
+Mynewt uses, depending on the board, either the OpenOCD or SEGGER J-Link 
debugger. 
 
 
 
-###Install OpenOCD
 
+### Install OpenOCD
 OpenOCD (Open On-Chip Debugger) is open-source software that allows your
 computer to interface with the JTAG debug connector on a variety of boards.  A
 JTAG connection lets you debug and test embedded target devices. For more on
 OpenOCD go to [http://openocd.org](http://openocd.org).
 
-If you are running Ubuntu 15.x, then you are in luck and you can simply run: 
+OpenOCD version 0.10.0-dev-snapshot that is currently in development is 
required.  A binary for this version is available to download for Mac OS and 
Linux
+
+ Install OpenOCD on Mac OS
+Step 1: Download the [binary tarball for Mac 

[05/12] incubator-mynewt-site git commit: Various Updates to fix discrepencies 1) Add -f to ln command go 1.7 for installing newt on linux (newt_linux.md) 2) Change develop branch to the master branch

2017-04-25 Thread aditi
Various Updates to fix discrepencies
1) Add -f to ln command go 1.7 for installing newt on linux (newt_linux.md)
2) Change develop branch to the master branch as the unstable branch in repo 
docs.
3) change 0-latest to 1-latest in nrf52_adc tutorial
4) Remove paths from "gcc" in compiler.yml file in native_tools.md


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

Branch: refs/heads/develop
Commit: 2aa85321ae7bf3c9a42c976ec8c21932f9ba03fa
Parents: 1db5d8d
Author: cwanda 
Authored: Fri Apr 14 20:22:19 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 13:03:34 2017 -0700

--
 docs/newt/install/newt_linux.md   |  4 ++--
 docs/os/get_started/native_tools.md   | 12 ++--
 docs/os/get_started/project_create.md |  2 +-
 docs/os/get_started/vocabulary.md |  4 ++--
 docs/os/tutorials/nrf52_adc.md|  2 +-
 5 files changed, 12 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2aa85321/docs/newt/install/newt_linux.md
--
diff --git a/docs/newt/install/newt_linux.md b/docs/newt/install/newt_linux.md
index a2c1671..4633105 100644
--- a/docs/newt/install/newt_linux.md
+++ b/docs/newt/install/newt_linux.md
@@ -50,14 +50,14 @@ If you want to build the *newt* tool from its source code, 
follow the following
 
 **Note**: The Newt tool requires Go version 1.7 or later.  Currently, the 
latest Go version that Ubuntu installs is 1.6. You can run `apt-get install 
golang-1.7-go` to install version 1.7. You can also download version 1.7 from 
[https://golang.org/dl/](https://golang.org/dl/). 

-```no-highlight
+```hl_lines="1 7"
 $sudo apt-get install golang-1.7-go
 Reading package lists... Done
  ...
 Unpacking golang-1.7-go (1.7.1-2ubuntu1) ...
 Setting up golang-1.7-go (1.7.1-2ubuntu1) ...
 $
-$sudo ln -s /usr/lib/go-1.7/bin/go /usr/bin/go
+$sudo ln -sf ../lib/go-1.7/bin/go /usr/bin/go
 $go version
 go version go1.7.1 linux/amd64
 ```

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2aa85321/docs/os/get_started/native_tools.md
--
diff --git a/docs/os/get_started/native_tools.md 
b/docs/os/get_started/native_tools.md
index 282d919..8ca3bdc 100644
--- a/docs/os/get_started/native_tools.md
+++ b/docs/os/get_started/native_tools.md
@@ -33,8 +33,8 @@ Check the gcc version you have installed (either using brew 
or previously instal
 
 ```hl_lines="2 3"
 # OS X.
-compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5"
-compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp"
+compiler.path.cc.DARWIN.OVERWRITE: "gcc-5"
+compiler.path.as.DARWIN.OVERWRITE: "gcc-5"
 compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump"
 compiler.path.objsize.DARWIN.OVERWRITE: "objsize"
 compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy"
@@ -42,8 +42,8 @@ compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy"
 with the following:
 
 ```no-highlight
-compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6"
-compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6 -x 
assembler-with-cpp”
+compiler.path.cc.DARWIN.OVERWRITE: "gcc-6"
+compiler.path.as.DARWIN.OVERWRITE: "gcc-6”
 ```
 
 
@@ -52,8 +52,8 @@ In case you wish to use Clang, you can change your 
`/repos
 
 ```hl_lines="2 3"
 # OS X.
-compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5"
-compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp"
+compiler.path.cc.DARWIN.OVERWRITE: "gcc-5"
+compiler.path.as.DARWIN.OVERWRITE: "gcc-5"
 compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump"
 compiler.path.objsize.DARWIN.OVERWRITE: "objsize"
 compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy"

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2aa85321/docs/os/get_started/project_create.md
--
diff --git a/docs/os/get_started/project_create.md 
b/docs/os/get_started/project_create.md
index c7575af..2c41df3 100644
--- a/docs/os/get_started/project_create.md
+++ b/docs/os/get_started/project_create.md
@@ -89,7 +89,7 @@ repository.apache-mynewt-core:
 user: apache
 repo: incubator-mynewt-core
 ```
-Changing to 1-dev will put you on the develop branch. **The Develop Branch may 
not be stable and you may encounter bugs or other problems.**
+Changing to 0-dev will put you on the latest master branch. **This branch may 
not be stable and you may encounter bugs or other problems.**
 
 
 


[02/12] incubator-mynewt-site git commit: - Make option 1 - native install and option 2 docker in Basic Setup.

2017-04-25 Thread aditi
- Make option 1 - native install and option 2 docker in Basic Setup.


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

Branch: refs/heads/develop
Commit: e9cff2c8944e05535d4c68df36c1d4ab49e5ac73
Parents: 737b215
Author: cwanda 
Authored: Thu Apr 20 16:35:32 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 13:03:34 2017 -0700

--
 docs/os/get_started/get_started.md | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e9cff2c8/docs/os/get_started/get_started.md
--
diff --git a/docs/os/get_started/get_started.md 
b/docs/os/get_started/get_started.md
index 86bc56e..add6d37 100644
--- a/docs/os/get_started/get_started.md
+++ b/docs/os/get_started/get_started.md
@@ -3,18 +3,15 @@
 If you are curious about Mynewt and want to get a quick feel for the project, 
you've come to the right place. We have two options for you:
 
 
+**Option 1 (Recommended)** allows you to install the Newt tool, instances of 
the Mynewt OS (for simulated targets), and toolchains for developing embedded 
software (e.g. GNU toolchain) natively on your laptop or computer. We have 
tried to make the process easy. For example, for the Mac OS we created brew 
formulas. 
 
-**Option 1** is an easy, self-contained way to get up and running with Mynewt 
- but has limitations! The Newt tool and build toolchains are all available in 
a single [All-in-one Docker Container](docker.md) that you can install on your 
laptop or computer.
-
-However, this is not a long-term option since support is not likely for all 
features useful or critical to embedded systems development. For example, USB 
device mapping available in the Docker toolkit (used in this Option 1) is no 
longer available in the new Docker releases. The Docker option is also 
typically slower than the native install option. 
-
- Therefore, the recommended option is Option 2 below. 

+We recommend this option if you are familiar with such environments or are 
concerned about performance on your machine. Follow the instructions to 
[install native tools](native_tools.md) and [install cross tools for 
ARM](cross_tools.md) if you prefer this option.
 
 
 
-**Option 2 (Recommended)** allows you to install the Newt tool, instances of 
the Mynewt OS (for simulated targets), and toolchains for developing embedded 
software (e.g. GNU toolchain) natively on your laptop or computer. We have 
tried to make the process easy. For example, for the Mac OS we created brew 
formulas. 
+**Option 2** is an easy, self-contained way to get up and running with Mynewt 
- but has limitations! The Newt tool and build toolchains are all available in 
a single [All-in-one Docker Container](docker.md) that you can install on your 
laptop or computer.
 
-You want this option if you are familiar with such environments or are 
concerned about performance on your machine. Follow the instructions to 
[install native tools](native_tools.md) and [install cross tools for 
ARM](cross_tools.md) if you prefer this option.
+However, this is not a long-term option since support is not likely for all 
features useful or critical to embedded systems development. For example, USB 
device mapping available in the Docker toolkit is no longer available in the 
new Docker releases. The Docker option is also typically slower than the native 
install option. 
 
 
 



[10/12] incubator-mynewt-site git commit: Add -ldflags -s when building newtmgr

2017-04-25 Thread aditi
Add -ldflags -s when building newtmgr


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

Branch: refs/heads/develop
Commit: e02e29852acc0c7fd4d8d834bd8d858b17d50bb1
Parents: 1db5d8d
Author: cwanda 
Authored: Tue Apr 25 14:22:32 2017 -0700
Committer: cwanda 
Committed: Tue Apr 25 14:22:32 2017 -0700

--
 docs/faq/go_env.md | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e02e2985/docs/faq/go_env.md
--
diff --git a/docs/faq/go_env.md b/docs/faq/go_env.md
index a757420..4b4a880 100644
--- a/docs/faq/go_env.md
+++ b/docs/faq/go_env.md
@@ -142,9 +142,11 @@ The newtmgr Go package is 
**mynewt.apache.org/newtmgr/newtmgr**. It is stored in
 
 Download the newtmgr package and install the tool:
 
+**Note:** `-ldflags -s` must be passed to the `go get` command.
+
 ```no-highlight
 $cd $GOPATH
-$go get mynewt.apache.org/newtmgr/newtmgr
+$go get -ldflags -s mynewt.apache.org/newtmgr/newtmgr
 $cd $GOPATH/src/mynewt.apache.org/newtmgr
 $ls
 DISCLAIMER NOTICE  newtmgr
@@ -196,6 +198,8 @@ $git pull
 
 Build and install the tool. The updated binary will be installed in the 
**$GOPATH/bin** directory: 
 
+(**Note:** `-ldflags -s` must be passed to the `go install` command if you are 
rebuilding newtmgr)
+
 ```no-highlight
 $go install
 ```



[09/12] incubator-mynewt-site git commit: clarified baud rate config in the blehci tutorial

2017-04-25 Thread aditi
clarified baud rate config in the blehci tutorial

This closes #174.


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

Branch: refs/heads/develop
Commit: a60c6fd78eb74ffad1a73f954a0fa6ae01eb4994
Parents: e991d47
Author: aditihilbert 
Authored: Tue Apr 25 13:49:43 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 13:57:29 2017 -0700

--
 docs/os/tutorials/blehci_project.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/a60c6fd7/docs/os/tutorials/blehci_project.md
--
diff --git a/docs/os/tutorials/blehci_project.md 
b/docs/os/tutorials/blehci_project.md
index 173ec66..7bf43af 100644
--- a/docs/os/tutorials/blehci_project.md
+++ b/docs/os/tutorials/blehci_project.md
@@ -161,7 +161,7 @@ Switched line discipline from 0 to 15
 Device index 1 attached
 ```
 
-The baud rate can be configured by overriding the default value of 100 in 
the `net/nimble/transport/uart/syscfg.yml`. Settings can be overriden by a 
higher priority package such as the application. So, for example, you may set 
the `BLE_HCI_UART_BAUD` to a different value in `apps/blehci/syscfg.yml`.
+The baud rate used to connect to the controller may be changed by overriding 
the default value of 100 in the `net/nimble/transport/uart/syscfg.yml`. 
Settings in the serial transport `syscfg.yml` file can be overridden by a 
higher priority package such as the application. So, for example, you may set 
the `BLE_HCI_UART_BAUD` to a different value in `apps/blehci/syscfg.yml`.
 
 If there is no CTS/RTS lines present in the test environment, flow control 
should be turned off. This can be done with
 -N option for btattach. **Note:** -N option came with BlueZ ver 5.44.



[06/12] incubator-mynewt-site git commit: Moved Read concepts to before creating a first project

2017-04-25 Thread aditi
Moved Read concepts to before creating a first project


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

Branch: refs/heads/develop
Commit: ef7795571a54f2b28d27ba5bc88ef05fcd2acd2e
Parents: 0c750d3
Author: cwanda 
Authored: Fri Apr 14 21:26:21 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 13:03:34 2017 -0700

--
 docs/os/tutorials/blinky.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ef779557/docs/os/tutorials/blinky.md
--
diff --git a/docs/os/tutorials/blinky.md b/docs/os/tutorials/blinky.md
index a411e1e..04efdc3 100644
--- a/docs/os/tutorials/blinky.md
+++ b/docs/os/tutorials/blinky.md
@@ -23,8 +23,8 @@ Ensure that you meet the following prerequisites before 
continuing with one of t
 * Have a computer to build a Mynewt application and connect to the board over 
USB.
 * Have a Micro-USB cable to connect the board and the computer.
 * Install the Newt tool and toolchains (See [Basic 
Setup](/os/get_started/get_started.md)).
-* Create a project space (directory structure) and populate it with the core 
code repository (apache-mynewt-core) or know how to as explained in [Creating 
Your First Project](/os/get_started/project_create).
 * Read the Mynewt OS [Concepts](/os/get_started/vocabulary.md) section. 
+* Create a project space (directory structure) and populate it with the core 
code repository (apache-mynewt-core) or know how to as explained in [Creating 
Your First Project](/os/get_started/project_create).
 
 ###Overview of Steps
 These are the general steps to create, load and run the Blinky application on 
your board:



[07/12] incubator-mynewt-site git commit: corrected BlueZ options in blehci tutorial and links in slinky tutorial

2017-04-25 Thread aditi
corrected BlueZ options in blehci tutorial and links in slinky tutorial

This closes #169. This closes #173.


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

Branch: refs/heads/develop
Commit: e991d47aba7de4af7fd8b8db58356e100842ee91
Parents: e9cff2c
Author: aditihilbert 
Authored: Tue Apr 25 12:52:46 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 13:34:13 2017 -0700

--
 docs/os/tutorials/blehci_project.md   | 7 ++-
 docs/os/tutorials/project-nrf52-slinky.md | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e991d47a/docs/os/tutorials/blehci_project.md
--
diff --git a/docs/os/tutorials/blehci_project.md 
b/docs/os/tutorials/blehci_project.md
index 1824902..173ec66 100644
--- a/docs/os/tutorials/blehci_project.md
+++ b/docs/os/tutorials/blehci_project.md
@@ -155,12 +155,17 @@ Bluetooth monitor ver 5.37
 In a different terminal, attach the blehci device to the BlueZ daemon 
(substitute the correct /dev filename for ttyUSB0).
 
 ```
-$ sudo btattach -B /dev/ttyUSB0 -S 115200 
+$ sudo btattach -B /dev/ttyUSB0 -S 100
 Attaching BR/EDR controller to /dev/ttyUSB0
 Switched line discipline from 0 to 15
 Device index 1 attached
 ```
 
+The baud rate can be configured by overriding the default value of 100 in 
the `net/nimble/transport/uart/syscfg.yml`. Settings can be overriden by a 
higher priority package such as the application. So, for example, you may set 
the `BLE_HCI_UART_BAUD` to a different value in `apps/blehci/syscfg.yml`.
+
+If there is no CTS/RTS lines present in the test environment, flow control 
should be turned off. This can be done with
+-N option for btattach. **Note:** -N option came with BlueZ ver 5.44.
+
 
 
 ### Start btmgmt to send commands

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e991d47a/docs/os/tutorials/project-nrf52-slinky.md
--
diff --git a/docs/os/tutorials/project-nrf52-slinky.md 
b/docs/os/tutorials/project-nrf52-slinky.md
index 729d32a..4f845fb 100644
--- a/docs/os/tutorials/project-nrf52-slinky.md
+++ b/docs/os/tutorials/project-nrf52-slinky.md
@@ -169,7 +169,7 @@ $
 
 
 ### Use Newtmgr to Query the Board
-Run some newtmgr commands to query and receive responses back from the board 
(See the [Newt Manager Guide](newtmgr/overview) for more information on the 
newtmgr commands). 
+Run some newtmgr commands to query and receive responses back from the board 
(See the [Newt Manager Guide](../../newtmgr/overview) for more information on 
the newtmgr commands). 
 
 
 Run the `newtmgr echo hello -c nrf52serial` command. This is the simplest 
command that requests the board to echo back the text. 



[08/12] incubator-mynewt-site git commit: Documentation on how to install newt and newtmgr from debian package

2017-04-25 Thread aditi
Documentation on how to install newt and newtmgr from debian package


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

Branch: refs/heads/develop
Commit: 2fa19db1d48a6c96c2562e15dd4cf9614698f309
Parents: 6f5c827
Author: cwanda 
Authored: Tue Apr 25 13:46:40 2017 -0700
Committer: cwanda 
Committed: Tue Apr 25 13:46:40 2017 -0700

--
 docs/newt/install/newt_linux.md | 305 ---
 docs/newtmgr/install_linux.md   | 214 +++-
 2 files changed, 356 insertions(+), 163 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2fa19db1/docs/newt/install/newt_linux.md
--
diff --git a/docs/newt/install/newt_linux.md b/docs/newt/install/newt_linux.md
index a2c1671..5956496 100644
--- a/docs/newt/install/newt_linux.md
+++ b/docs/newt/install/newt_linux.md
@@ -1,55 +1,109 @@
-## Install newt tool on Linux
+## Installing Newt on Linux
+
+You can install the latest stable release (1.0.0) of newt from a Debian binary 
package (amd64) or from a Debian source package. This page shows you how to:
+
+1. Set up your computer to retrieve Debian packages from the runtimeco debian 
package repository.
+2. Install the latest stable release version of newt from a Debian binary 
package. 
+3. Install the latest stable release version of newt from a Debian source 
package.
+
+If you are running on an amd64 platform, we recommend that you install from 
the binary package.
+
+**Note:** See [Setting Up an Go Environment to Contribute to Newt and Newtmgr 
Tools](/faq/go_env) if you want to:  
+
+* Use the newt tool with the latest updates from the master branch. The master 
branch may be unstable and we recommend that you use the latest stable release 
version.
+* Contribute to the newt tool. 
 
 
 
-### Getting your Linux box Ready 
+### Setting Up Your Computer to Get Packages from runtimeco 
+The newt Debian packages are stored in a private repository on 
**https://github/runtimeco/debian-mynewt**. 
+
+**Note:** You will only need to perform these steps only once on your computer.
+The following steps must be performed on your computer:
 
-If you want to build the *newt* tool from its source code, follow the 
following steps:
+1. Add the `apt-transport-https` package to use HTTPS to retrieve packages. 
+2. Download the public key for the runtimeco debian repository and import the 
key into the apt keychain.
+3. Add the repository for the binary and source packages to the apt source 
list.
 
- 1. Install git, libcurl
 
+
+Add the apt-transport-https package:
+```no-highlight
+$sudo apt-get update
+$sudo apt-get install apt-transport-https
 ```
-$ sudo apt-get install git 
-$ sudo apt-get install libcurl4-gnutls-dev 
+
+
+
+Download the public key for the runtimeco apt repo (**Note:** There is  `-` 
after the add):
+
+```no-highlight
+wget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -
 ```
+
 
-**NOTE:** On 64-bit host, you may also need to install gcc-multilib, if you 
encounter compilation errors related to 'sys/cdefs.h'
+Add the repository for the binary and source packages to the apt source list:
 
+```no-highlight
+$sudo -s
+[sudo] password for :
+root$ cat > /etc/apt/sources.list.d/mynewt.list 

[11/12] incubator-mynewt-site git commit: fixed merge conflicts

2017-04-25 Thread aditi
fixed merge conflicts


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

Branch: refs/heads/develop
Commit: 7b21947dd4ae66c7acdfd3af4b7d107fbf6fc186
Parents: a60c6fd 2fa19db
Author: aditihilbert 
Authored: Tue Apr 25 16:58:04 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 16:58:04 2017 -0700

--
 docs/newt/install/newt_linux.md | 305 ---
 docs/newtmgr/install_linux.md   | 214 +++-
 2 files changed, 356 insertions(+), 163 deletions(-)
--




incubator-mynewt-site git commit: Swapped docker and native install options in Quick Start

2017-04-25 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 45c390ea1 -> 26592f06f


Swapped docker and native install options in Quick Start


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

Branch: refs/heads/asf-site
Commit: 26592f06f69e71ba4bc075138182106d237a1010
Parents: 45c390e
Author: aditihilbert 
Authored: Tue Apr 25 17:47:56 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 17:47:56 2017 -0700

--
 mkdocs/search_index.json | 4 ++--
 quick-start/index.html   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/26592f06/mkdocs/search_index.json
--
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
index db528e4..e85753f 100644
--- a/mkdocs/search_index.json
+++ b/mkdocs/search_index.json
@@ -17,12 +17,12 @@
 }, 
 {
 "location": "/quick-start/", 
-"text": "Get set\n\n\nApache Mynewt currently offers two ways to 
quickly get set up, each appealing to different personal preferences and levels 
of familiarity with embedded systems.\n\n\n\n\n\n\n\n\nOption 1:\n All-in-one 
docker container that bundles Newt tool, developer toolchains and libraries. 
For this option, go to \nDocker instructions\n\n\n\n\n\n\nOption 2:\n 
Step-by-step instructions to install the Newt tool, developer toolchains and 
libraries natively on your computer. For this option, go to \nNative 
Setup\n\n\n\n\n\n\n\n\nGo!\n\n\nStart a new project as explained under \nCreate 
Your First Project\n. The core Mynewt OS is automatically downloaded as part of 
the project installation.\n\n\n\n\n\n\n\n\nWhen you \nCreate Your First 
Project\n you define a simulated target and run Project Blinky, the Hello World 
equivalent in the embedded world.\n\n\n\n\n\n\nIf you have one of the supported 
\nboards\n, you can make real LEDs blink in \nProject Blinky\n. Simply choose
  the appropriate tutorial for the board and proceed.\n\n\n\n\n\n\n\n\nAnd 
More...\n\n\nExplore the \nTutorials\n section for other interesting projects 
or simply to learn more about Mynewt's capabilities and get familiar with its 
use.", 
+"text": "Get set\n\n\nApache Mynewt currently offers two ways to 
quickly get set up, each appealing to different personal preferences and levels 
of familiarity with embedded systems.\n\n\n\n\n\n\n\n\nOption 1:\n Step-by-step 
instructions to install the Newt tool, developer toolchains and libraries 
natively on your computer. This is the recommended option. For this option, go 
to \nNative Setup\n\n\n\n\n\n\nOption 2:\n All-in-one docker container that 
bundles Newt tool, developer toolchains and libraries. This option is only for 
a quick look at the project. For this option, go to \nDocker 
instructions\n\n\n\n\n\n\n\n\nGo!\n\n\nStart a new project as explained under 
\nCreate Your First Project\n. The core Mynewt OS is automatically downloaded 
as part of the project installation.\n\n\n\n\n\n\n\n\nWhen you \nCreate Your 
First Project\n you define a simulated target and run Project Blinky, the Hello 
World equivalent in the embedded world.\n\n\n\n\n\n\nIf you have one of the su
 pported \nboards\n, you can make real LEDs blink in \nProject Blinky\n. Simply 
choose the appropriate tutorial for the board and proceed.\n\n\n\n\n\n\n\n\nAnd 
More...\n\n\nExplore the \nTutorials\n section for other interesting projects 
or simply to learn more about Mynewt's capabilities and get familiar with its 
use.", 
 "title": "Quick Start"
 }, 
 {
 "location": "/quick-start/#get-set", 
-"text": "Apache Mynewt currently offers two ways to quickly get 
set up, each appealing to different personal preferences and levels of 
familiarity with embedded systems. Option 1:  All-in-one docker container 
that bundles Newt tool, developer toolchains and libraries. For this option, go 
to  Docker instructionsOption 2:  Step-by-step instructions to install the 
Newt tool, developer toolchains and libraries natively on your computer. For 
this option, go to  Native Setup", 
+"text": "Apache Mynewt currently offers two ways to quickly get 
set up, each appealing to different personal preferences and levels of 
familiarity with embedded systems. Option 1:  Step-by-step instructions to 
install the Newt tool, developer toolchains and libraries natively on your 
computer. This is the recommended option. For this option, go 

[3/7] incubator-mynewt-site git commit: Updates to installation on Linux and Mac, removal of references to develop branch on website

2017-04-25 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/45c390ea/latest/mkdocs/search_index.json
--
diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json
index 0af8892..4de7a25 100644
--- a/latest/mkdocs/search_index.json
+++ b/latest/mkdocs/search_index.json
@@ -137,17 +137,17 @@
 }, 
 {
 "location": "/os/get_started/get_started/", 
-"text": "Quick Start\n\n\nIf you are curious about Mynewt and want 
to get a quick feel for the project, you've come to the right place. We have 
two options for you:\n\n\n\n\nOption 1\n is an easy, self-contained way to get 
up and running with Mynewt - but has limitations! The Newt tool and build 
toolchains are all available in a single \nAll-in-one Docker Container\n that 
you can install on your laptop or computer.\n\n\nHowever, this is not a 
long-term option since support is not likely for all features useful or 
critical to embedded systems development. For example, USB device mapping 
available in the Docker toolkit (used in this Option 1) is no longer available 
in the new Docker releases. The Docker option is also typically slower than the 
native install option. \n\n\n Therefore, the recommended option is Option 2 
below. \n\n\n\n\nOption 2 (Recommended)\n allows you to install the Newt tool, 
instances of the Mynewt OS (for simulated targets), and toolchains for develop
 ing embedded software (e.g. GNU toolchain) natively on your laptop or 
computer. We have tried to make the process easy. For example, for the Mac OS 
we created brew formulas. \n\n\nYou want this option if you are familiar with 
such environments or are concerned about performance on your machine. Follow 
the instructions to \ninstall native tools\n and \ninstall cross tools for 
ARM\n if you prefer this option.\n\n\n\n\nYou can then proceed with the 
instructions on how to \n* \nCreate Your First Project\n - on simulated 
hardware.\n\n\nUpon successful start, several tutorials await your eager 
attention!\n\n\n\n\nSend us an email on the dev@ mailing list if you have 
comments or suggestions!\n If you haven't joined the mailing list, you will 
find the links \nhere\n.", 
+"text": "Quick Start\n\n\nIf you are curious about Mynewt and want 
to get a quick feel for the project, you've come to the right place. We have 
two options for you:\n\n\n\n\nOption 1 (Recommended)\n allows you to install 
the Newt tool, instances of the Mynewt OS (for simulated targets), and 
toolchains for developing embedded software (e.g. GNU toolchain) natively on 
your laptop or computer. We have tried to make the process easy. For example, 
for the Mac OS we created brew formulas. \n\n\nWe recommend this option if you 
are familiar with such environments or are concerned about performance on your 
machine. Follow the instructions to \ninstall native tools\n and \ninstall 
cross tools for ARM\n if you prefer this option.\n\n\n\n\nOption 2\n is an 
easy, self-contained way to get up and running with Mynewt - but has 
limitations! The Newt tool and build toolchains are all available in a single 
\nAll-in-one Docker Container\n that you can install on your laptop or 
computer.\n\
 n\nHowever, this is not a long-term option since support is not likely for all 
features useful or critical to embedded systems development. For example, USB 
device mapping available in the Docker toolkit is no longer available in the 
new Docker releases. The Docker option is also typically slower than the native 
install option. \n\n\n\n\nYou can then proceed with the instructions on how to 
\n* \nCreate Your First Project\n - on simulated hardware.\n\n\nUpon successful 
start, several tutorials await your eager attention!\n\n\n\n\nSend us an email 
on the dev@ mailing list if you have comments or suggestions!\n If you haven't 
joined the mailing list, you will find the links \nhere\n.", 
 "title": "toc"
 }, 
 {
 "location": "/os/get_started/get_started/#quick-start", 
-"text": "If you are curious about Mynewt and want to get a quick 
feel for the project, you've come to the right place. We have two options for 
you:   Option 1  is an easy, self-contained way to get up and running with 
Mynewt - but has limitations! The Newt tool and build toolchains are all 
available in a single  All-in-one Docker Container  that you can install on 
your laptop or computer.  However, this is not a long-term option since support 
is not likely for all features useful or critical to embedded systems 
development. For example, USB device mapping available in the Docker toolkit 
(used in this Option 1) is no longer available in the new Docker releases. The 
Docker option is also typically slower than the native install option.
Therefore, the recommended option is Option 2 below.Option 2 (Recommended)  
allows you to install the Newt tool, instances of 

[2/7] incubator-mynewt-site git commit: Updates to installation on Linux and Mac, removal of references to develop branch on website

2017-04-25 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/45c390ea/latest/newt/install/newt_linux/index.html
--
diff --git a/latest/newt/install/newt_linux/index.html 
b/latest/newt/install/newt_linux/index.html
index d44c0c5..ed4c63e 100644
--- a/latest/newt/install/newt_linux/index.html
+++ b/latest/newt/install/newt_linux/index.html
@@ -391,181 +391,218 @@
 
 
 
-Install newt 
tool on Linux
+Installing Newt 
on Linux
+You can install the latest stable release (1.0.0) of newt from a Debian 
binary package (amd64) or from a Debian source package. This page shows you how 
to:
+
+Set up your computer to retrieve Debian packages from the runtimeco debian 
package repository.
+Install the latest stable release version of newt from a Debian binary 
package. 
+Install the latest stable release version of newt from a Debian source 
package.
+
+If you are running on an amd64 platform, we recommend that you install from 
the binary package.
+Note: See Setting Up an Go 
Environment to Contribute to Newt and Newtmgr Tools if you want to:  
+
+Use the newt tool with the latest updates from the master branch. The 
master branch may be unstable and we recommend that you use the latest stable 
release version.
+Contribute to the newt tool. 
+
 
-Getting your Linux box Ready
-If you want to build the newt tool from its source code, follow 
the following steps:
-1. Install git, libcurl
-$ sudo apt-get install git 
-$ sudo apt-get install libcurl4-gnutls-dev 
+Setting Up 
Your Computer to Get Packages from runtimeco
+The newt Debian packages are stored in a private repository on 
https://github/runtimeco/debian-mynewt. 
+Note: You will only need to perform these steps only once 
on your computer.
+The following steps must be performed on your computer:
+
+Add the apt-transport-https package to use HTTPS to retrieve 
packages. 
+Download the public key for the runtimeco debian repository and import the 
key into the apt keychain.
+Add the repository for the binary and source packages to the apt source 
list.
+
+
+Add the apt-transport-https package:
+$sudo apt-get update
+$sudo apt-get install apt-transport-https
 
 
 
-NOTE: On 64-bit host, you may also need to install 
gcc-multilib, if you encounter compilation errors related to 'sys/cdefs.h'
 
-2. Install Go, the programming 
language
-
-
-Go language environment dictates a directory structure. Known in Go 
parlance as a workspace, it must contain three sibling directories with the 
directory names src, pkg and bin, as explained below. 
-
-
-src contains Go source files organized into packages (one package per 
directory),
-
-
-pkg contains package objects, and
-
-
-bin contains executable commands.
-
-
-The GOPATH environment variable specifies the location of your workspace. 
To setup this workspace environment, create a 'dev' directory and then a 'go' 
directory under it. Set the GOPATH environment variable to this directory where 
you will soon clone the newt tool repository.
-
-
-$ cd $HOME
-$ mkdir -p dev/go  
-$ cd dev/go
-$ export GOPATH=`pwd`
+Download the public key for the runtimeco apt repo (Note: 
There is  - after the add):
+wget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -
 
 
 
-(Note that you need to add export statements to ~/.bash_profile to export 
variables permanently. Don't forget to source the file for the change to go 
into effect.)
 
-$ vi ~/.bash_profile
-$ source ~/.bash_profile
+Add the repository for the binary and source packages to the apt source 
list:
+$sudo -s
+[sudo] password for user:
+root$ cat  /etc/apt/sources.list.d/mynewt.list EOF
+deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
+deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
+EOF
+
+
+
+
+Check the content of the file:
+root$more /etc/apt/sources.list.d//mynewt.list
+deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
+deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
+
+
+
+ 
+Exit the root shell:
+root$exit
 
 
 
 
-
-
-Next, install Go. When installed, Go offers you as a developer a language 
environment (to compile Go code), construct Go packages (to assemble Go 
packages) and import Go code (from github). In the next step, you will use the 
Go commands to import newt repo into your local Go environment.
-Note: The Newt tool requires Go version 1.7 or later.  
Currently, the latest Go version that Ubuntu installs is 1.6. You can run 
apt-get install golang-1.7-go to install version 1.7. You can also 
download version 1.7 from https://golang.org/dl/;>https://golang.org/dl/. 
-
-
+Installing the 
Latest Release of Newt from a Binary 

[5/7] incubator-mynewt-site git commit: Updates to installation on Linux and Mac, removal of references to develop branch on website

2017-04-25 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/45c390ea/develop/newt/install/newt_linux/index.html
--
diff --git a/develop/newt/install/newt_linux/index.html 
b/develop/newt/install/newt_linux/index.html
index df1b621..cbdbbd4 100644
--- a/develop/newt/install/newt_linux/index.html
+++ b/develop/newt/install/newt_linux/index.html
@@ -391,181 +391,218 @@
 
 
 
-Install newt 
tool on Linux
+Installing Newt 
on Linux
+You can install the latest stable release (1.0.0) of newt from a Debian 
binary package (amd64) or from a Debian source package. This page shows you how 
to:
+
+Set up your computer to retrieve Debian packages from the runtimeco debian 
package repository.
+Install the latest stable release version of newt from a Debian binary 
package. 
+Install the latest stable release version of newt from a Debian source 
package.
+
+If you are running on an amd64 platform, we recommend that you install from 
the binary package.
+Note: See Setting Up an Go 
Environment to Contribute to Newt and Newtmgr Tools if you want to:  
+
+Use the newt tool with the latest updates from the master branch. The 
master branch may be unstable and we recommend that you use the latest stable 
release version.
+Contribute to the newt tool. 
+
 
-Getting your Linux box Ready
-If you want to build the newt tool from its source code, follow 
the following steps:
-1. Install git, libcurl
-$ sudo apt-get install git 
-$ sudo apt-get install libcurl4-gnutls-dev 
+Setting Up 
Your Computer to Get Packages from runtimeco
+The newt Debian packages are stored in a private repository on 
https://github/runtimeco/debian-mynewt. 
+Note: You will only need to perform these steps only once 
on your computer.
+The following steps must be performed on your computer:
+
+Add the apt-transport-https package to use HTTPS to retrieve 
packages. 
+Download the public key for the runtimeco debian repository and import the 
key into the apt keychain.
+Add the repository for the binary and source packages to the apt source 
list.
+
+
+Add the apt-transport-https package:
+$sudo apt-get update
+$sudo apt-get install apt-transport-https
 
 
 
-NOTE: On 64-bit host, you may also need to install 
gcc-multilib, if you encounter compilation errors related to 'sys/cdefs.h'
 
-2. Install Go, the programming 
language
-
-
-Go language environment dictates a directory structure. Known in Go 
parlance as a workspace, it must contain three sibling directories with the 
directory names src, pkg and bin, as explained below. 
-
-
-src contains Go source files organized into packages (one package per 
directory),
-
-
-pkg contains package objects, and
-
-
-bin contains executable commands.
-
-
-The GOPATH environment variable specifies the location of your workspace. 
To setup this workspace environment, create a 'dev' directory and then a 'go' 
directory under it. Set the GOPATH environment variable to this directory where 
you will soon clone the newt tool repository.
-
-
-$ cd $HOME
-$ mkdir -p dev/go  
-$ cd dev/go
-$ export GOPATH=`pwd`
+Download the public key for the runtimeco apt repo (Note: 
There is  - after the add):
+wget -qO - 
https://raw.githubusercontent.com/runtimeco/debian-mynewt/master/mynewt.gpg.key 
| sudo apt-key add -
 
 
 
-(Note that you need to add export statements to ~/.bash_profile to export 
variables permanently. Don't forget to source the file for the change to go 
into effect.)
 
-$ vi ~/.bash_profile
-$ source ~/.bash_profile
+Add the repository for the binary and source packages to the apt source 
list:
+$sudo -s
+[sudo] password for user:
+root$ cat  /etc/apt/sources.list.d/mynewt.list EOF
+deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
+deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
+EOF
+
+
+
+
+Check the content of the file:
+root$more /etc/apt/sources.list.d//mynewt.list
+deb https://raw.githubusercontent.com/runtimeco/debian-package/master latest 
main
+deb-src https://raw.githubusercontent.com/runtimeco/debian-package/master 
latest main
+
+
+
+ 
+Exit the root shell:
+root$exit
 
 
 
 
-
-
-Next, install Go. When installed, Go offers you as a developer a language 
environment (to compile Go code), construct Go packages (to assemble Go 
packages) and import Go code (from github). In the next step, you will use the 
Go commands to import newt repo into your local Go environment.
-Note: The Newt tool requires Go version 1.7 or later.  
Currently, the latest Go version that Ubuntu installs is 1.6. You can run 
apt-get install golang-1.7-go to install version 1.7. You can also 
download version 1.7 from https://golang.org/dl/;>https://golang.org/dl/. 
-
-
+Installing the 
Latest Release of Newt from a 

[6/7] incubator-mynewt-site git commit: Updates to installation on Linux and Mac, removal of references to develop branch on website

2017-04-25 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/45c390ea/develop/mkdocs/search_index.json
--
diff --git a/develop/mkdocs/search_index.json b/develop/mkdocs/search_index.json
index 0af8892..4de7a25 100644
--- a/develop/mkdocs/search_index.json
+++ b/develop/mkdocs/search_index.json
@@ -137,17 +137,17 @@
 }, 
 {
 "location": "/os/get_started/get_started/", 
-"text": "Quick Start\n\n\nIf you are curious about Mynewt and want 
to get a quick feel for the project, you've come to the right place. We have 
two options for you:\n\n\n\n\nOption 1\n is an easy, self-contained way to get 
up and running with Mynewt - but has limitations! The Newt tool and build 
toolchains are all available in a single \nAll-in-one Docker Container\n that 
you can install on your laptop or computer.\n\n\nHowever, this is not a 
long-term option since support is not likely for all features useful or 
critical to embedded systems development. For example, USB device mapping 
available in the Docker toolkit (used in this Option 1) is no longer available 
in the new Docker releases. The Docker option is also typically slower than the 
native install option. \n\n\n Therefore, the recommended option is Option 2 
below. \n\n\n\n\nOption 2 (Recommended)\n allows you to install the Newt tool, 
instances of the Mynewt OS (for simulated targets), and toolchains for develop
 ing embedded software (e.g. GNU toolchain) natively on your laptop or 
computer. We have tried to make the process easy. For example, for the Mac OS 
we created brew formulas. \n\n\nYou want this option if you are familiar with 
such environments or are concerned about performance on your machine. Follow 
the instructions to \ninstall native tools\n and \ninstall cross tools for 
ARM\n if you prefer this option.\n\n\n\n\nYou can then proceed with the 
instructions on how to \n* \nCreate Your First Project\n - on simulated 
hardware.\n\n\nUpon successful start, several tutorials await your eager 
attention!\n\n\n\n\nSend us an email on the dev@ mailing list if you have 
comments or suggestions!\n If you haven't joined the mailing list, you will 
find the links \nhere\n.", 
+"text": "Quick Start\n\n\nIf you are curious about Mynewt and want 
to get a quick feel for the project, you've come to the right place. We have 
two options for you:\n\n\n\n\nOption 1 (Recommended)\n allows you to install 
the Newt tool, instances of the Mynewt OS (for simulated targets), and 
toolchains for developing embedded software (e.g. GNU toolchain) natively on 
your laptop or computer. We have tried to make the process easy. For example, 
for the Mac OS we created brew formulas. \n\n\nWe recommend this option if you 
are familiar with such environments or are concerned about performance on your 
machine. Follow the instructions to \ninstall native tools\n and \ninstall 
cross tools for ARM\n if you prefer this option.\n\n\n\n\nOption 2\n is an 
easy, self-contained way to get up and running with Mynewt - but has 
limitations! The Newt tool and build toolchains are all available in a single 
\nAll-in-one Docker Container\n that you can install on your laptop or 
computer.\n\
 n\nHowever, this is not a long-term option since support is not likely for all 
features useful or critical to embedded systems development. For example, USB 
device mapping available in the Docker toolkit is no longer available in the 
new Docker releases. The Docker option is also typically slower than the native 
install option. \n\n\n\n\nYou can then proceed with the instructions on how to 
\n* \nCreate Your First Project\n - on simulated hardware.\n\n\nUpon successful 
start, several tutorials await your eager attention!\n\n\n\n\nSend us an email 
on the dev@ mailing list if you have comments or suggestions!\n If you haven't 
joined the mailing list, you will find the links \nhere\n.", 
 "title": "toc"
 }, 
 {
 "location": "/os/get_started/get_started/#quick-start", 
-"text": "If you are curious about Mynewt and want to get a quick 
feel for the project, you've come to the right place. We have two options for 
you:   Option 1  is an easy, self-contained way to get up and running with 
Mynewt - but has limitations! The Newt tool and build toolchains are all 
available in a single  All-in-one Docker Container  that you can install on 
your laptop or computer.  However, this is not a long-term option since support 
is not likely for all features useful or critical to embedded systems 
development. For example, USB device mapping available in the Docker toolkit 
(used in this Option 1) is no longer available in the new Docker releases. The 
Docker option is also typically slower than the native install option.
Therefore, the recommended option is Option 2 below.Option 2 (Recommended)  
allows you to install the Newt tool, 

[7/7] incubator-mynewt-site git commit: Updates to installation on Linux and Mac, removal of references to develop branch on website

2017-04-25 Thread aditi
Updates to installation on Linux and Mac, removal of references to develop 
branch on website


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

Branch: refs/heads/asf-site
Commit: 45c390ea1c6a086245f0a883d02a6daec1606d73
Parents: e740429
Author: aditihilbert 
Authored: Tue Apr 25 17:31:25 2017 -0700
Committer: aditihilbert 
Committed: Tue Apr 25 17:31:25 2017 -0700

--
 develop/faq/go_env/index.html   | 140 +++-
 develop/mkdocs/search_index.json| 317 +++-
 develop/newt/install/newt_linux/index.html  | 311 
 develop/newtmgr/install_linux/index.html| 206 -
 develop/os/get_started/cross_tools/index.html   | 108 ++-
 develop/os/get_started/get_started/index.html   |  11 +-
 develop/os/get_started/native_tools/index.html  |  12 +-
 .../os/get_started/project_create/index.html|   2 +-
 develop/os/get_started/vocabulary/index.html|   4 +-
 develop/os/tutorials/STM32F303/index.html   | 774 ---
 develop/os/tutorials/arduino_zero/index.html|  12 +-
 develop/os/tutorials/blehci_project/index.html  |   5 +-
 develop/os/tutorials/blinky/index.html  |  16 +-
 develop/os/tutorials/blinky_console/index.html  |  11 -
 develop/os/tutorials/blinky_primo/index.html|  28 +-
 develop/os/tutorials/nRF52/index.html   |  16 +-
 develop/os/tutorials/nrf52_adc/index.html   |   2 +-
 develop/os/tutorials/olimex/index.html  |  20 +-
 develop/os/tutorials/pin-wheel-mods/index.html  | 681 
 .../tutorials/project-nrf52-slinky/index.html   |   3 +-
 .../tutorials/project-stm32-slinky/index.html   |   1 +
 develop/os/tutorials/rbnano2/index.html |  13 +-
 develop/os/tutorials/tutorials/index.html   |  10 +-
 develop/sitemap.xml |  26 +-
 download/index.html |  20 +-
 latest/faq/go_env/index.html| 140 +++-
 latest/mkdocs/search_index.json | 317 +++-
 latest/newt/install/newt_linux/index.html   | 311 
 latest/newtmgr/install_linux/index.html | 206 -
 latest/os/get_started/cross_tools/index.html| 108 ++-
 latest/os/get_started/get_started/index.html|  11 +-
 latest/os/get_started/native_tools/index.html   |  12 +-
 latest/os/get_started/project_create/index.html |   2 +-
 latest/os/get_started/vocabulary/index.html |   4 +-
 latest/os/tutorials/STM32F303/index.html| 774 ---
 latest/os/tutorials/arduino_zero/index.html |  12 +-
 latest/os/tutorials/blehci_project/index.html   |   5 +-
 latest/os/tutorials/blinky/index.html   |  16 +-
 latest/os/tutorials/blinky_console/index.html   |  11 -
 latest/os/tutorials/blinky_primo/index.html |  28 +-
 latest/os/tutorials/nRF52/index.html|  16 +-
 latest/os/tutorials/nrf52_adc/index.html|   2 +-
 latest/os/tutorials/olimex/index.html   |  20 +-
 latest/os/tutorials/pin-wheel-mods/index.html   | 681 
 .../tutorials/project-nrf52-slinky/index.html   |   3 +-
 .../tutorials/project-stm32-slinky/index.html   |   1 +
 latest/os/tutorials/rbnano2/index.html  |  13 +-
 latest/os/tutorials/tutorials/index.html|  10 +-
 latest/sitemap.xml  |  26 +-
 mkdocs/search_index.json|   8 +-
 os/get_started/get_started/index.html   |   5 +-
 sitemap.xml |  26 +-
 v0_9_0/sitemap.xml  |  26 +-
 53 files changed, 1422 insertions(+), 4121 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/45c390ea/develop/faq/go_env/index.html
--
diff --git a/develop/faq/go_env/index.html b/develop/faq/go_env/index.html
index 551e115..f897a6f 100644
--- a/develop/faq/go_env/index.html
+++ b/develop/faq/go_env/index.html
@@ -262,22 +262,23 @@
 
 
 
-Contributing to Newt and Newtmgr 
Tools
-Newt and Newtmgr are written in Go (golang). This guide shows you how to 
install Go and setup your environment if
-you would like to contribute to the newt or newtmgr tools.
+Contributing to Newt or Newtmgr 
Tools
+Newt and Newtmgr are written in Go (golang). This guide shows you how to 
install Go and setup your environment to update and build the tools if you want 
to: 
+
+Contribute to newt or newtmgr features or 

[1/7] incubator-mynewt-site git commit: Updates to installation on Linux and Mac, removal of references to develop branch on website

2017-04-25 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site e7404297d -> 45c390ea1


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/45c390ea/latest/os/tutorials/pin-wheel-mods/index.html
--
diff --git a/latest/os/tutorials/pin-wheel-mods/index.html 
b/latest/os/tutorials/pin-wheel-mods/index.html
deleted file mode 100644
index 8b5a431..000
--- a/latest/os/tutorials/pin-wheel-mods/index.html
+++ /dev/null
@@ -1,681 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-   Pinwheel Blinky - Apache Mynewt
-
-
-
-
-
-
-https://fonts.googleapis.com/css?family=Lato; 
rel="stylesheet">
-https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css;>
-
-
-
-
-
-
-
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-ga('create', 'UA-72162311-1', 'auto');
-ga('send', 'pageview');
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-An OS to build, deploy and securely manage 
billions of devices
-
-
-
-Latest News: Apache Mynewt 
1.0.0 released (March 22, 2017)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Toggle navigation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Quick Start
-
-
-About
-
-
-Talks
-
-
-Documentation
-
-
-Download
-
-
-Community
-
-
-Events
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  
-
-
-
-  Version: develop (latest)
-
-
-
-  Version: 0.9.0
-
-
-
-
-  
-
-  
-
-  
-
-  
-
-  
-
-  
-
-  
-
-  
-
-  
-
-  
-  
-  
-Mynewt Documentation
-  
-  
-
-  
-  
-  
-  
-
-  
-  
-Basic Setup
-  
-  
-
-
-  
-  
-  
-
-
-  Concepts
-
-
-  
-  
-  
-
-  
-  
-Tutorials
-  
-  
-
-  
-  
-  
-  
-
-  
-  
-Project Blinky
-  
-  
-
-  
-  
-  
-  
-
-
-  Blinky on Arduino Zero
-
-
-  
-  
-  
-
-
-  Blinky on Arduino Primo
-
-
-  
-  
-  
-
-
-  Blinky on Olimex
-
-
-  
-  
-  
-
-  
-  
-Blinky on STM32F303
-  
-  
-
-  
-  
-  
-  
-
-
-  Pinwheel Blinky
-
-
-  
-  
-
-  
-
-
-  
-  
-  
-
-
-  Blinky on nRF52
-
-
-  
-  
-  
-
-
-  Blinky on RedBear Nano 2
-
-
-  
-  
-  
-
-
-  Add Console and Shell to Blinky
-
-
-  
-  
-
-  
-
-
-  
-  
-  
-
-  
-  
-Work with repositories
-  
-  
-
-
-  
-  
-  
-
-  
-  
-Project Slinky for Remote Comms
-  
-  
-
-
-  
-  
-  
-
-
-  BLE iBeacon
-
-
-  
-  
-  
-
-
-  BLE Eddystone
-
-
-  
-  
-  
- 

incubator-mynewt-site git commit: Import vanity domain for unixchild package

2017-04-24 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 641cf8e3e -> e7404297d


Import vanity domain for unixchild package


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

Branch: refs/heads/asf-site
Commit: e7404297d8e0bb1d62dca90f979fe01594c5f78d
Parents: 641cf8e
Author: aditihilbert 
Authored: Mon Apr 24 09:30:01 2017 -0700
Committer: aditihilbert 
Committed: Mon Apr 24 09:30:01 2017 -0700

--
 develop/sitemap.xml| 26 +-
 latest/sitemap.xml | 26 +-
 newt/util/unixchild/index.html |  6 ++
 sitemap.xml| 26 +-
 v0_9_0/sitemap.xml | 26 +-
 5 files changed, 58 insertions(+), 52 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e7404297/develop/sitemap.xml
--
diff --git a/develop/sitemap.xml b/develop/sitemap.xml
index 8d98e61..c476bb9 100644
--- a/develop/sitemap.xml
+++ b/develop/sitemap.xml
@@ -4,7 +4,7 @@
 
 
  http://mynewt.apache.org/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -13,7 +13,7 @@
 
 
  http://mynewt.apache.org/pages/ble/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -22,7 +22,7 @@
 
 
  http://mynewt.apache.org/quick-start/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -30,7 +30,7 @@
 
 
  http://mynewt.apache.org/about/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -38,7 +38,7 @@
 
 
  http://mynewt.apache.org/talks/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -46,7 +46,7 @@
 
 
  http://mynewt.apache.org/download/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -54,7 +54,7 @@
 
 
  http://mynewt.apache.org/community/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -62,7 +62,7 @@
 
 
  http://mynewt.apache.org/events/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -71,7 +71,7 @@
 
 
  http://mynewt.apache.org/os/introduction/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -83,7 +83,7 @@
 
 
  http://mynewt.apache.org/os/get_started/vocabulary/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -123,19 +123,19 @@
 
 
  http://mynewt.apache.org/faq/go_env/
- 2017-04-20
+ 2017-04-24
  daily
 
 
 
  http://mynewt.apache.org/faq/how_to_edit_docs/
- 2017-04-20
+ 2017-04-24
  daily
 
 
 
  http://mynewt.apache.org/faq/answers/
- 2017-04-20
+ 2017-04-24
  daily
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e7404297/latest/sitemap.xml
--
diff --git a/latest/sitemap.xml b/latest/sitemap.xml
index 8d98e61..c476bb9 100644
--- a/latest/sitemap.xml
+++ b/latest/sitemap.xml
@@ -4,7 +4,7 @@
 
 
  http://mynewt.apache.org/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -13,7 +13,7 @@
 
 
  http://mynewt.apache.org/pages/ble/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -22,7 +22,7 @@
 
 
  http://mynewt.apache.org/quick-start/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -30,7 +30,7 @@
 
 
  http://mynewt.apache.org/about/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -38,7 +38,7 @@
 
 
  http://mynewt.apache.org/talks/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -46,7 +46,7 @@
 
 
  http://mynewt.apache.org/download/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -54,7 +54,7 @@
 
 
  http://mynewt.apache.org/community/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -62,7 +62,7 @@
 
 
  http://mynewt.apache.org/events/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -71,7 +71,7 @@
 
 
  http://mynewt.apache.org/os/introduction/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -83,7 +83,7 @@
 
 
  http://mynewt.apache.org/os/get_started/vocabulary/
- 2017-04-20
+ 2017-04-24
  daily
 
 
@@ -123,19 +123,19 @@
 
 
  http://mynewt.apache.org/faq/go_env/
- 2017-04-20
+ 2017-04-24
  daily
 
 
 

incubator-mynewt-site git commit: Import vanity domain for unixchild package

2017-04-24 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master 1be654db9 -> e236b4ade


Import vanity domain for unixchild package


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

Branch: refs/heads/master
Commit: e236b4ade57e20274e09b25a71f1e1df1b616769
Parents: 1be654d
Author: spoonofpower 
Authored: Tue Apr 18 11:20:25 2017 -0700
Committer: aditihilbert 
Committed: Mon Apr 24 09:27:35 2017 -0700

--
 extras/newt/util/unixchild/index.html | 6 ++
 1 file changed, 6 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e236b4ad/extras/newt/util/unixchild/index.html
--
diff --git a/extras/newt/util/unixchild/index.html 
b/extras/newt/util/unixchild/index.html
new file mode 100644
index 000..86cf773
--- /dev/null
+++ b/extras/newt/util/unixchild/index.html
@@ -0,0 +1,6 @@
+
+  
+  https://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git;>
+  
+  
+



incubator-mynewt-site git commit: fixing the merge for #172

2017-04-20 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site b3522a138 -> 641cf8e3e


fixing the merge for #172


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

Branch: refs/heads/asf-site
Commit: 641cf8e3ec8eeea11d2982b26e9147b0a656344d
Parents: b3522a1
Author: aditihilbert 
Authored: Thu Apr 20 21:23:21 2017 -0500
Committer: aditihilbert 
Committed: Thu Apr 20 21:23:21 2017 -0500

--
 develop/sitemap.xml | 26 +-
 latest/sitemap.xml  | 26 +-
 sitemap.xml | 26 +-
 v0_9_0/sitemap.xml  | 26 +-
 4 files changed, 52 insertions(+), 52 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/641cf8e3/develop/sitemap.xml
--
diff --git a/develop/sitemap.xml b/develop/sitemap.xml
index c977e77..8d98e61 100644
--- a/develop/sitemap.xml
+++ b/develop/sitemap.xml
@@ -4,7 +4,7 @@
 
 
  http://mynewt.apache.org/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -13,7 +13,7 @@
 
 
  http://mynewt.apache.org/pages/ble/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -22,7 +22,7 @@
 
 
  http://mynewt.apache.org/quick-start/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -30,7 +30,7 @@
 
 
  http://mynewt.apache.org/about/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -38,7 +38,7 @@
 
 
  http://mynewt.apache.org/talks/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -46,7 +46,7 @@
 
 
  http://mynewt.apache.org/download/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -54,7 +54,7 @@
 
 
  http://mynewt.apache.org/community/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -62,7 +62,7 @@
 
 
  http://mynewt.apache.org/events/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -71,7 +71,7 @@
 
 
  http://mynewt.apache.org/os/introduction/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -83,7 +83,7 @@
 
 
  http://mynewt.apache.org/os/get_started/vocabulary/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -123,19 +123,19 @@
 
 
  http://mynewt.apache.org/faq/go_env/
- 2017-04-18
+ 2017-04-20
  daily
 
 
 
  http://mynewt.apache.org/faq/how_to_edit_docs/
- 2017-04-18
+ 2017-04-20
  daily
 
 
 
  http://mynewt.apache.org/faq/answers/
- 2017-04-18
+ 2017-04-20
  daily
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/641cf8e3/latest/sitemap.xml
--
diff --git a/latest/sitemap.xml b/latest/sitemap.xml
index c977e77..8d98e61 100644
--- a/latest/sitemap.xml
+++ b/latest/sitemap.xml
@@ -4,7 +4,7 @@
 
 
  http://mynewt.apache.org/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -13,7 +13,7 @@
 
 
  http://mynewt.apache.org/pages/ble/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -22,7 +22,7 @@
 
 
  http://mynewt.apache.org/quick-start/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -30,7 +30,7 @@
 
 
  http://mynewt.apache.org/about/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -38,7 +38,7 @@
 
 
  http://mynewt.apache.org/talks/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -46,7 +46,7 @@
 
 
  http://mynewt.apache.org/download/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -54,7 +54,7 @@
 
 
  http://mynewt.apache.org/community/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -62,7 +62,7 @@
 
 
  http://mynewt.apache.org/events/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -71,7 +71,7 @@
 
 
  http://mynewt.apache.org/os/introduction/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -83,7 +83,7 @@
 
 
  http://mynewt.apache.org/os/get_started/vocabulary/
- 2017-04-18
+ 2017-04-20
  daily
 
 
@@ -123,19 +123,19 @@
 
 
  http://mynewt.apache.org/faq/go_env/
- 2017-04-18
+ 2017-04-20
  daily
 
 
 
  http://mynewt.apache.org/faq/how_to_edit_docs/
- 2017-04-18
+ 2017-04-20
  daily
 

[2/3] incubator-mynewt-core git commit: MYNEWT-735 tinyprintf: negative field width spec.

2017-04-19 Thread aditi
MYNEWT-735 tinyprintf: negative field width spec.

>From the printf(3) man page on my OS X:

 `-'  A negative field width flag; the converted value is to
  be left adjusted on the field boundary.  Except for n
  conversions, the converted value is padded on the right
  with blanks, rather than on the left with blanks or
  zeros.  A - overrides a 0 if both are given.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/b83face5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b83face5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b83face5

Branch: refs/heads/master
Commit: b83face5dfb740328c79081424fd2abdd9ca8d1d
Parents: 31d00cb
Author: Christopher Collins 
Authored: Wed Apr 19 16:30:27 2017 -0700
Committer: Christopher Collins 
Committed: Wed Apr 19 16:39:14 2017 -0700

--
 libc/baselibc/src/tinyprintf.c | 20 +---
 1 file changed, 17 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b83face5/libc/baselibc/src/tinyprintf.c
--
diff --git a/libc/baselibc/src/tinyprintf.c b/libc/baselibc/src/tinyprintf.c
index 7719d80..11bcf63 100644
--- a/libc/baselibc/src/tinyprintf.c
+++ b/libc/baselibc/src/tinyprintf.c
@@ -70,6 +70,7 @@ struct param {
 char sign:1;/**<  The sign to display (if any) */
 char alt:1; /**< alternate form */
 char uc:1;  /**<  Upper case (for base16 only) */
+char left:1;/**<  Force text to left (padding on right) */
 char base;  /**<  number base (e.g.: 8, 10, 16) */
 char *bf;   /**<  Buffer to output */
 };
@@ -155,8 +156,8 @@ static unsigned putchw(FILE *putp, struct param *p)
 else if (p->alt && p->base == 8)
 n--;
 
-/* Fill with space, before alternate or sign */
-if (!p->lz) {
+/* Unless left-aligned, fill with space, before alternate or sign */
+if (!p->lz && !p->left) {
 while (n-- > 0)
 written += putf(putp, ' ');
 }
@@ -183,6 +184,12 @@ static unsigned putchw(FILE *putp, struct param *p)
 bf = p->bf;
 while ((ch = *bf++))
 written += putf(putp, ch);
+
+/* If left-aligned, pad the end with spaces. */
+if (p->left) {
+while (n-- > 0)
+written += putf(putp, ' ');
+}
 
 return written;
 }
@@ -246,17 +253,24 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va)
 p.alt = 0;
 p.width = 0;
 p.sign = 0;
+p.left = 0;
 lng = 0;
 
 /* Flags */
 while ((ch = *(fmt++))) {
 switch (ch) {
 case '0':
-p.lz = 1;
+if (!p.left) {
+p.lz = 1;
+}
 continue;
 case '#':
 p.alt = 1;
 continue;
+case '-':
+p.left = 1;
+p.lz = 0;
+continue;
 default:
 break;
 }



[3/3] incubator-mynewt-core git commit: Merge branch 'console-num-chars' of https://github.com/ccollins476ad/incubator-mynewt-core

2017-04-19 Thread aditi
Merge branch 'console-num-chars' of 
https://github.com/ccollins476ad/incubator-mynewt-core

This closes #240. This closes #239.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/fd7bf2bf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/fd7bf2bf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/fd7bf2bf

Branch: refs/heads/master
Commit: fd7bf2bf59e0dba634b12acf6fde576cbb26c9d0
Parents: b83face 80fb08c
Author: aditihilbert 
Authored: Wed Apr 19 18:06:04 2017 -0700
Committer: aditihilbert 
Committed: Wed Apr 19 18:06:04 2017 -0700

--
 sys/console/full/include/console/console.h|  2 +-
 sys/console/full/src/cons_fmt.c   | 40 +++---
 sys/console/minimal/include/console/console.h |  5 +--
 sys/console/stub/include/console/console.h|  5 +--
 4 files changed, 42 insertions(+), 10 deletions(-)
--




[1/3] incubator-mynewt-core git commit: MYNEWT-734 console_printf() return # printed chrs.

2017-04-19 Thread aditi
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/master 31d00cb0a -> fd7bf2bf5


MYNEWT-734 console_printf() return # printed chrs.

The *printf family of functions do this. It is useful for aligning text.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/80fb08ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/80fb08ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/80fb08ca

Branch: refs/heads/master
Commit: 80fb08cac5ce1d56c7662b3e549acea6264b47f1
Parents: 31d00cb
Author: Christopher Collins 
Authored: Wed Apr 19 16:20:33 2017 -0700
Committer: Christopher Collins 
Committed: Wed Apr 19 16:34:01 2017 -0700

--
 sys/console/full/include/console/console.h|  2 +-
 sys/console/full/src/cons_fmt.c   | 40 +++---
 sys/console/minimal/include/console/console.h |  5 +--
 sys/console/stub/include/console/console.h|  5 +--
 4 files changed, 42 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/80fb08ca/sys/console/full/include/console/console.h
--
diff --git a/sys/console/full/include/console/console.h 
b/sys/console/full/include/console/console.h
index 054b997..c7ae04c 100644
--- a/sys/console/full/include/console/console.h
+++ b/sys/console/full/include/console/console.h
@@ -34,7 +34,7 @@ int console_read(char *str, int cnt, int *newline);
 void console_blocking_mode(void);
 void console_echo(int on);
 
-void console_printf(const char *fmt, ...)
+int console_printf(const char *fmt, ...)
 __attribute__ ((format (printf, 1, 2)));;
 
 extern int console_is_midline;

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/80fb08ca/sys/console/full/src/cons_fmt.c
--
diff --git a/sys/console/full/src/cons_fmt.c b/sys/console/full/src/cons_fmt.c
index 83c9ca0..1a3c72e 100644
--- a/sys/console/full/src/cons_fmt.c
+++ b/sys/console/full/src/cons_fmt.c
@@ -38,43 +38,73 @@ static const FILE console_file = {
 .vmt = _file_ops
 };
 
-void
+/**
+ * Prints the specified format string to the console.
+ *
+ * @return  The number of characters that would have been
+ *  printed if the console buffer were
+ *  unlimited.  This return value is analogous
+ *  to that of snprintf.
+ */
+int
 console_printf(const char *fmt, ...)
 {
 va_list args;
+int num_chars;
+
+num_chars = 0;
+
 if (console_get_ticks()) {
 /* Prefix each line with a timestamp. */
 if (!console_is_midline) {
-fprintf((FILE *)_file, "%lu:", (unsigned 
long)os_time_get());
+num_chars += fprintf((FILE *)_file, "%lu:",
+ (unsigned long)os_time_get());
 }
 }
 va_start(args, fmt);
-vfprintf((FILE *)_file, fmt, args);
+num_chars += vfprintf((FILE *)_file, fmt, args);
 va_end(args);
+
+return num_chars;
 }
 
 #else
 
-void
+/**
+ * Prints the specified format string to the console.
+ *
+ * @return  The number of characters that would have been
+ *  printed if the console buffer were
+ *  unlimited.  This return value is analogous
+ *  to that of snprintf.
+ */
+int
 console_printf(const char *fmt, ...)
 {
 va_list args;
 char buf[CONS_OUTPUT_MAX_LINE];
+int num_chars;
 int len;
+
 if (console_get_ticks()) {
 /* Prefix each line with a timestamp. */
 if (!console_is_midline) {
-len = snprintf(buf, sizeof(buf), "%lu:", (unsigned 
long)os_time_get());
+len = snprintf(buf, sizeof(buf), "%lu:",
+   (unsigned long)os_time_get());
+num_chars += len;
 console_write(buf, len);
 }
 }
 
 va_start(args, fmt);
 len = vsnprintf(buf, sizeof(buf), fmt, args);
+num_chars += len;
 if (len >= sizeof(buf)) {
 len = sizeof(buf) - 1;
 }
 console_write(buf, len);
 va_end(args);
+
+return num_chars;
 }
 #endif

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/80fb08ca/sys/console/minimal/include/console/console.h
--
diff --git a/sys/console/minimal/include/console/console.h 
b/sys/console/minimal/include/console/console.h
index 384b6a9..61f6534 100644
--- a/sys/console/minimal/include/console/console.h
+++ 

[03/30] incubator-mynewt-core git commit: net/ip; use pkg_init to initialize this package.

2017-04-19 Thread aditi
net/ip; use pkg_init to initialize this package.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1eaee93d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1eaee93d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1eaee93d

Branch: refs/heads/master
Commit: 1eaee93d729a752031b8640eb74d4a1afbb5d000
Parents: 7701a12
Author: Marko Kiiskila 
Authored: Fri Apr 14 12:49:49 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/include/ip/init.h | 32 
 net/ip/pkg.yml   |  4 
 2 files changed, 4 insertions(+), 32 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1eaee93d/net/ip/include/ip/init.h
--
diff --git a/net/ip/include/ip/init.h b/net/ip/include/ip/init.h
deleted file mode 100644
index af90799..000
--- a/net/ip/include/ip/init.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-#ifndef __IP_INIT_H__
-#define __IP_INIT_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int ip_init(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __IP_INIT_H__ */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1eaee93d/net/ip/pkg.yml
--
diff --git a/net/ip/pkg.yml b/net/ip/pkg.yml
index 3387728..0f657f1 100644
--- a/net/ip/pkg.yml
+++ b/net/ip/pkg.yml
@@ -30,3 +30,7 @@ pkg.keywords:
 pkg.deps:
 - kernel/os
 - net/ip/lwip_base
+- net/ip/mn_socket
+
+pkg.init:
+ip_init: 200



[07/30] incubator-mynewt-core git commit: net/ip; add stub of a CLI for managing interfaces.

2017-04-19 Thread aditi
net/ip; add stub of a CLI for managing interfaces.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/a95f14fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a95f14fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a95f14fb

Branch: refs/heads/master
Commit: a95f14fba512766d70fde088b437cbeff5b2a45c
Parents: c700fc7
Author: Marko Kiiskila 
Authored: Fri Apr 14 12:55:02 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/src/ip_init.c  |   5 ++
 net/ip/src/ip_priv.h  |   3 +
 net/ip/src/lwip_cli.c | 140 +
 net/ip/syscfg.yml |  26 +
 4 files changed, 174 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a95f14fb/net/ip/src/ip_init.c
--
diff --git a/net/ip/src/ip_init.c b/net/ip/src/ip_init.c
index 7916d64..c73df02 100644
--- a/net/ip/src/ip_init.c
+++ b/net/ip/src/ip_init.c
@@ -16,6 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+#include "syscfg/syscfg.h"
+
 #include 
 
 #include "ip_priv.h"
@@ -25,6 +27,9 @@ int ip_init(void)
 if (lwip_socket_init()) {
 return -1;
 }
+#if MYNEWT_VAL(LWIP_CLI)
+lwip_cli_init();
+#endif
 tcpip_init(NULL, NULL);
 return 0;
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a95f14fb/net/ip/src/ip_priv.h
--
diff --git a/net/ip/src/ip_priv.h b/net/ip/src/ip_priv.h
index dd50c9f..5189801 100644
--- a/net/ip/src/ip_priv.h
+++ b/net/ip/src/ip_priv.h
@@ -30,6 +30,9 @@ int lwip_itf_getnext(struct mn_itf *mi);
 int lwip_itf_addr_getnext(struct mn_itf *mi, struct mn_itf_addr *mia);
 
 int lwip_socket_init(void);
+void lwip_cli_init(void);
+
+int lwip_err_to_mn_err(int rc);
 
 #ifdef __cplusplus
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a95f14fb/net/ip/src/lwip_cli.c
--
diff --git a/net/ip/src/lwip_cli.c b/net/ip/src/lwip_cli.c
new file mode 100644
index 000..adfa2ef
--- /dev/null
+++ b/net/ip/src/lwip_cli.c
@@ -0,0 +1,140 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+#include 
+
+#if MYNEWT_VAL(LWIP_CLI)
+#include 
+
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+#include "ip_priv.h"
+
+static void
+lwip_nif_print(struct mn_itf *itf)
+{
+int rc;
+int flags = 0;
+struct mn_itf_addr itf_addr;
+char addr_str[48];
+
+console_printf("%d: %s %x(", itf->mif_idx, itf->mif_name, itf->mif_flags);
+if (itf->mif_flags & MN_ITF_F_UP) {
+flags = 1;
+console_printf("up");
+}
+if (itf->mif_flags & MN_ITF_F_MULTICAST) {
+if (flags) {
+console_printf("|");
+}
+flags = 1;
+console_printf("mcast");
+}
+if (itf->mif_flags & MN_ITF_F_LINK) {
+if (flags) {
+console_printf("|");
+}
+flags = 1;
+console_printf("link");
+}
+console_printf(")\n");
+
+memset(_addr, 0, sizeof(itf_addr));
+while (1) {
+rc = mn_itf_addr_getnext(itf, _addr);
+if (rc) {
+break;
+}
+mn_inet_ntop(itf_addr.mifa_family, _addr.mifa_addr,
+ addr_str, sizeof(addr_str));
+console_printf(" %s/%d\n", addr_str, itf_addr.mifa_plen);
+}
+}
+
+int
+lwip_nif_up(const char *name)
+{
+struct netif *nif;
+err_t err;
+
+nif = netif_find(name);
+if (!nif) {
+return MN_EINVAL;
+}
+if (nif->flags & NETIF_FLAG_LINK_UP) {
+netif_set_up(nif);
+netif_set_default(nif);
+#if LWIP_IPV6
+nif->ip6_autoconfig_enabled = 1;
+netif_create_ip6_linklocal_address(nif, 1);
+#endif
+err = dhcp_start(nif);
+

[05/30] incubator-mynewt-core git commit: net/ip; increase the default pbuf pool, listen socket count to allow inet_def_service to operate.

2017-04-19 Thread aditi
net/ip; increase the default pbuf pool, listen socket count to
allow inet_def_service to operate.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/66ae3dfe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/66ae3dfe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/66ae3dfe

Branch: refs/heads/master
Commit: 66ae3dfe4665f07c9231f65c6b52e55130dc3014
Parents: 1eaee93
Author: Marko Kiiskila 
Authored: Fri Apr 14 12:50:29 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/include/lwipopts.h | 10 --
 1 file changed, 8 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/66ae3dfe/net/ip/include/lwipopts.h
--
diff --git a/net/ip/include/lwipopts.h b/net/ip/include/lwipopts.h
index e409b2f..7382692 100644
--- a/net/ip/include/lwipopts.h
+++ b/net/ip/include/lwipopts.h
@@ -80,7 +80,7 @@ extern "C" {
 #define MEMP_NUM_TCP_PCB3  /* XXX */
 /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP
connections. */
-#define MEMP_NUM_TCP_PCB_LISTEN 1
+#define MEMP_NUM_TCP_PCB_LISTEN 3
 /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP
segments. */
 #define MEMP_NUM_TCP_SEG(TCP_SND_QUEUELEN + 1)
@@ -101,12 +101,18 @@ extern "C" {
 /* -- Pbuf options -- */
 /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
 #ifndef PBUF_POOL_SIZE
-#define PBUF_POOL_SIZE  3
+#define PBUF_POOL_SIZE  6
 #endif
 
 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
 #define PBUF_POOL_BUFSIZE   1580
 
+/*
+ * Disable this; causes excessive stack use in device drivers calling
+ * pbuf_alloc()
+ */
+#define PBUF_POOL_FREE_OOSEQ0
+
 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
link level header. */
 #define PBUF_LINK_HLEN  16



[15/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/src/netif/lowpan6.c
--
diff --git a/net/ip/lwip_base/src/netif/lowpan6.c 
b/net/ip/lwip_base/src/netif/lowpan6.c
index 407848c..9a84cbc 100644
--- a/net/ip/lwip_base/src/netif/lowpan6.c
+++ b/net/ip/lwip_base/src/netif/lowpan6.c
@@ -160,13 +160,13 @@ lowpan6_get_address_mode(const ip6_addr_t *ip6addr, const 
struct ieee_802154_add
   if (mac_addr->addr_len == 2) {
 if ((ip6addr->addr[2] == (u32_t)PP_HTONL(0x00ff)) &&
   ((ip6addr->addr[3]  & PP_HTONL(0x)) == PP_NTOHL(0xfe00))) {
-  if ((ip6addr->addr[3]  & PP_HTONL(0x)) == 
ntohl((mac_addr->addr[0] << 8) | mac_addr->addr[1])) {
+  if ((ip6addr->addr[3]  & PP_HTONL(0x)) == 
lwip_ntohl((mac_addr->addr[0] << 8) | mac_addr->addr[1])) {
 return 3;
   }
 }
   } else if (mac_addr->addr_len == 8) {
-if ((ip6addr->addr[2] == ntohl(((mac_addr->addr[0] ^ 2) << 24) | 
(mac_addr->addr[1] << 16) | mac_addr->addr[2] << 8 | mac_addr->addr[3])) &&
-  (ip6addr->addr[3] == ntohl((mac_addr->addr[4] << 24) | 
(mac_addr->addr[5] << 16) | mac_addr->addr[6] << 8 | mac_addr->addr[7]))) {
+if ((ip6addr->addr[2] == lwip_ntohl(((mac_addr->addr[0] ^ 2) << 24) | 
(mac_addr->addr[1] << 16) | mac_addr->addr[2] << 8 | mac_addr->addr[3])) &&
+  (ip6addr->addr[3] == lwip_ntohl((mac_addr->addr[4] << 24) | 
(mac_addr->addr[5] << 16) | mac_addr->addr[6] << 8 | mac_addr->addr[7]))) {
   return 3;
 }
   }
@@ -611,12 +611,13 @@ lowpan4_output(struct netif *netif, struct pbuf *q, const 
ip4_addr_t *ipaddr)
  * @param q The pbuf(s) containing the IP packet to be sent.
  * @param ip6addr The IP address of the packet destination.
  *
- * @return
+ * @return err_t
  */
 err_t
 lowpan6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr)
 {
-  s8_t i;
+  err_t result;
+  const u8_t *hwaddr;
   struct ieee_802154_addr src, dest;
 #if LWIP_6LOWPAN_INFER_SHORT_ADDRESS
   ip6_addr_t ip6_src;
@@ -663,35 +664,23 @@ lowpan6_output(struct netif *netif, struct pbuf *q, const 
ip6_addr_t *ip6addr)
   }
 #endif /* LWIP_6LOWPAN_INFER_SHORT_ADDRESS */
 
-
-  /* Get next hop record. */
-  i = nd6_get_next_hop_entry(ip6addr, netif);
-  if (i < 0) {
+  /* Ask ND6 what to do with the packet. */
+  result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, );
+  if (result != ERR_OK) {
 MIB2_STATS_NETIF_INC(netif, ifoutdiscards);
-/* failed to get a next hop neighbor record. */
-return ERR_MEM;
+return result;
   }
 
-  /* Now that we have a destination record, send or queue the packet. */
-  if (neighbor_cache[i].state == ND6_STALE) {
-/* Switch to delay state. */
-neighbor_cache[i].state = ND6_DELAY;
-neighbor_cache[i].counter.delay_time = LWIP_ND6_DELAY_FIRST_PROBE_TIME;
-  }
-  /* @todo should we send or queue if PROBE? send for now, to let unicast NS 
pass. */
-  if ((neighbor_cache[i].state == ND6_REACHABLE) ||
-  (neighbor_cache[i].state == ND6_DELAY) ||
-  (neighbor_cache[i].state == ND6_PROBE)) {
-
-/* Send out. */
-dest.addr_len = netif->hwaddr_len;
-SMEMCPY(dest.addr, neighbor_cache[i].lladdr, netif->hwaddr_len);
-MIB2_STATS_NETIF_INC(netif, ifoutucastpkts);
-return lowpan6_frag(netif, q, , );
+  /* If no hardware address is returned, nd6 has queued the packet for later. 
*/
+  if (hwaddr == NULL) {
+return ERR_OK;
   }
 
-  /* We should queue packet on this interface. */
-  return nd6_queue_packet(i, q);
+  /* Send out the packet using the returned hardware address. */
+  dest.addr_len = netif->hwaddr_len;
+  SMEMCPY(dest.addr, hwaddr, netif->hwaddr_len);
+  MIB2_STATS_NETIF_INC(netif, ifoutucastpkts);
+  return lowpan6_frag(netif, q, , );
 }
 
 static struct pbuf *
@@ -768,7 +757,7 @@ lowpan6_decompress(struct pbuf * p, struct ieee_802154_addr 
* src, struct ieee_8
   ip6hdr->src.addr[0] = PP_HTONL(0xfe80UL);
   ip6hdr->src.addr[1] = 0;
   ip6hdr->src.addr[2] = PP_HTONL(0x00ffUL);
-  ip6hdr->src.addr[3] = htonl(0xfe00UL | 
(lowpan6_buffer[lowpan6_offset] << 8) |
+  ip6hdr->src.addr[3] = lwip_htonl(0xfe00UL | 
(lowpan6_buffer[lowpan6_offset] << 8) |
   lowpan6_buffer[lowpan6_offset+1]);
   lowpan6_offset += 2;
 } else if ((lowpan6_buffer[1] & 0x30) == 0x30) {
@@ -776,11 +765,11 @@ lowpan6_decompress(struct pbuf * p, struct 
ieee_802154_addr * src, struct ieee_8
   ip6hdr->src.addr[1] = 0;
   if (src->addr_len == 2) {
 ip6hdr->src.addr[2] = PP_HTONL(0x00ffUL);
-ip6hdr->src.addr[3] = htonl(0xfe00UL | (src->addr[0] << 8) | 
src->addr[1]);
+ip6hdr->src.addr[3] = lwip_htonl(0xfe00UL | (src->addr[0] << 8) | 
src->addr[1]);
   } else {
-ip6hdr->src.addr[2] = htonl(((src->addr[0] ^ 2) << 24) | (src->addr[1] 
<< 16) |
+ip6hdr->src.addr[2] = 

[01/30] incubator-mynewt-core git commit: net/ip; fix memory allocation for tcpip stack.

2017-04-19 Thread aditi
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/master 73c8953be -> 28b29f445


net/ip; fix memory allocation for tcpip stack.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/0429ee55
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/0429ee55
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/0429ee55

Branch: refs/heads/master
Commit: 0429ee55c565368d3728c45552b65a0ce34c7258
Parents: a95f14f
Author: Marko Kiiskila 
Authored: Fri Apr 14 13:00:45 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/include/arch/sys_arch.h | 304 ++--
 1 file changed, 152 insertions(+), 152 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0429ee55/net/ip/include/arch/sys_arch.h
--
diff --git a/net/ip/include/arch/sys_arch.h b/net/ip/include/arch/sys_arch.h
index e01f6aa..f8c53a8 100644
--- a/net/ip/include/arch/sys_arch.h
+++ b/net/ip/include/arch/sys_arch.h
@@ -1,160 +1,160 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-#ifndef __LWIP_SYS_ARCH_H__
-#define __LWIP_SYS_ARCH_H__
-
-#include 
-
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+#ifndef __LWIP_SYS_ARCH_H__
+#define __LWIP_SYS_ARCH_H__
+
+#include 
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#undef LITTLE_ENDIAN
-#include 
-#include 
-
-#define SYS_MBOX_NULL NULL
-#define SYS_SEM_NULL  NULL
-
-struct os_queue;
-
-typedef struct os_sem sys_sem_t;
-typedef struct os_mutex sys_mutex_t;
-typedef struct os_queue sys_mbox_t;
-typedef struct os_task * sys_thread_t;
-typedef os_stack_t portSTACK_TYPE;
-
-typedef int sys_prot_t;
-
-static inline int
-sys_arch_protect(void)
-{
-int sr;
-
-OS_ENTER_CRITICAL(sr);
-return sr;
-}
-
-static inline void
-sys_arch_unprotect(int prev_sr)
-{
-OS_EXIT_CRITICAL(prev_sr);
-}
-
-static inline void
-sys_init(void)
-{
-}
-
-static inline err_t
-sys_sem_new(sys_sem_t *sem, u8_t count)
-{
-if (os_sem_init(sem, count)) {
-return ERR_VAL;
-}
-return ERR_OK;
-}
-
-static inline void
-sys_sem_signal(sys_sem_t *sem)
-{
-os_sem_release(sem);
-}
-
-static inline err_t
-sys_mutex_new(sys_mutex_t *mutex)
-{
-if (os_mutex_init(mutex)) {
-return ERR_VAL;
-}
-return ERR_OK;
-}
-
-static inline void
-sys_mutex_lock(sys_mutex_t *mutex)
-{
-os_mutex_pend(mutex, OS_WAIT_FOREVER);
-}
-
-static inline void
-sys_mutex_unlock(sys_mutex_t *mutex)
-{
-os_mutex_release(mutex);
-}
-
-static inline uint32_t
-sys_now(void)
-{
-uint32_t t;
-
-/*
- * XXX not right when g_os_time rolls over
- */
-t = os_time_get() * OS_TICKS_PER_SEC / 1000;
-return t;
-}
-
-static inline err_t
-sys_mbox_new(sys_mbox_t *mbox, int size)
-{
-if (os_queue_init(mbox, sizeof(void *), size)) {
-return ERR_MEM;
-}
-return ERR_OK;
-}
-
-static inline void
-sys_mbox_post(sys_mbox_t *mbox, void *msg)
-{
-os_queue_put(mbox, , OS_WAIT_FOREVER);
-}
-
-static inline err_t
-sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
-{
-if (os_queue_put(mbox, , 

[25/30] incubator-mynewt-core git commit: apps/iptest; add sample task to demonstrate IP config over ethernet.

2017-04-19 Thread aditi
apps/iptest; add sample task to demonstrate IP config over ethernet.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/39ad85d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/39ad85d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/39ad85d2

Branch: refs/heads/master
Commit: 39ad85d22ef78e6082167c046ef33dc7c876b7aa
Parents: f92e6ab
Author: Marko Kiiskila 
Authored: Mon Apr 17 14:35:24 2017 -0700
Committer: Marko Kiiskila 
Committed: Mon Apr 17 14:35:24 2017 -0700

--
 apps/iptest/pkg.yml|  46 +
 apps/iptest/src/main.c | 441 
 apps/iptest/syscfg.yml |  45 +
 3 files changed, 532 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/39ad85d2/apps/iptest/pkg.yml
--
diff --git a/apps/iptest/pkg.yml b/apps/iptest/pkg.yml
new file mode 100644
index 000..a9a5da1
--- /dev/null
+++ b/apps/iptest/pkg.yml
@@ -0,0 +1,46 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+pkg.name: apps/iptest
+pkg.type: app
+pkg.description: "Example application which uses a variety of mynewt features."
+pkg.author: "Apache Mynewt "
+pkg.homepage: "http://mynewt.apache.org/;
+pkg.keywords:
+
+pkg.deps:
+- kernel/os
+- boot/bootutil
+- sys/shell
+- sys/config
+- sys/console/full
+- sys/id
+- sys/log/full
+- sys/stats/full
+- net/ip/inet_def_service
+
+pkg.deps.CONFIG_NFFS:
+- fs/nffs
+
+pkg.deps.CONFIG_FCB:
+- fs/fcb
+
+pkg.deps.BUILD_WITH_OIC:
+- net/oic
+- encoding/cborattr

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/39ad85d2/apps/iptest/src/main.c
--
diff --git a/apps/iptest/src/main.c b/apps/iptest/src/main.c
new file mode 100755
index 000..3ec726e
--- /dev/null
+++ b/apps/iptest/src/main.c
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "syscfg/syscfg.h"
+#include "sysinit/sysinit.h"
+#include "sysflash/sysflash.h"
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+
+#include 
+#include 
+#include 
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+
+#if MYNEWT_VAL(BUILD_WITH_OIC)
+#include 
+#include 
+#include 
+#endif
+
+#ifdef ARCH_sim
+#include 
+#endif
+
+static struct log my_log;
+
+#define MAX_CBMEM_BUF 2048
+
+static uint32_t cbmem_buf[MAX_CBMEM_BUF];
+static struct cbmem cbmem;
+
+static int net_cli(int argc, char **argv);
+struct shell_cmd net_test_cmd = {
+.sc_cmd = "net",
+.sc_cmd_func = net_cli
+};
+
+static struct mn_socket *net_test_socket;
+static struct mn_socket *net_test_socket2;
+
+#if MYNEWT_VAL(BUILD_WITH_OIC)
+static void omgr_app_init(void);
+static const oc_handler_t omgr_oc_handler = {
+.init = omgr_app_init,
+};
+#endif
+
+static void net_test_readable(void *arg, int err)
+{
+console_printf("net_test_readable %x - %d\n", (int)arg, err);
+}
+
+static void net_test_writable(void *arg, int err)
+{
+console_printf("net_test_writable %x 

[08/30] incubator-mynewt-core git commit: stm32f767-nucleo; add syscfg option to enable ethernet.

2017-04-19 Thread aditi
stm32f767-nucleo; add syscfg option to enable ethernet.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/383906f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/383906f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/383906f4

Branch: refs/heads/master
Commit: 383906f4318f518add476699c04cf7a7d961d0d0
Parents: c9afda6
Author: Marko Kiiskila 
Authored: Fri Apr 14 10:44:47 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 hw/bsp/stm32f767-nucleo/pkg.yml   |  3 ++
 hw/bsp/stm32f767-nucleo/src/hal_bsp.c | 50 ++
 hw/bsp/stm32f767-nucleo/syscfg.yml|  4 +++
 3 files changed, 57 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/383906f4/hw/bsp/stm32f767-nucleo/pkg.yml
--
diff --git a/hw/bsp/stm32f767-nucleo/pkg.yml b/hw/bsp/stm32f767-nucleo/pkg.yml
index 5b3e684..da9cfb2 100644
--- a/hw/bsp/stm32f767-nucleo/pkg.yml
+++ b/hw/bsp/stm32f767-nucleo/pkg.yml
@@ -38,3 +38,6 @@ pkg.deps:
 
 pkg.deps.UART_0:
 - hw/drivers/uart/uart_hal
+
+pkg.deps.ETH_0:
+- hw/drivers/lwip/stm32_eth

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/383906f4/hw/bsp/stm32f767-nucleo/src/hal_bsp.c
--
diff --git a/hw/bsp/stm32f767-nucleo/src/hal_bsp.c 
b/hw/bsp/stm32f767-nucleo/src/hal_bsp.c
index 34fd01c..6a7b8e0 100644
--- a/hw/bsp/stm32f767-nucleo/src/hal_bsp.c
+++ b/hw/bsp/stm32f767-nucleo/src/hal_bsp.c
@@ -21,6 +21,7 @@
 #include 
 
 #include 
+#include 
 #if MYNEWT_VAL(UART_0)
 #include 
 #include 
@@ -35,6 +36,11 @@
 #include 
 #include 
 
+#if MYNEWT_VAL(ETH_0)
+#include 
+#include 
+#endif
+
 #include "bsp/bsp.h"
 
 #if MYNEWT_VAL(UART_0)
@@ -55,6 +61,41 @@ static const struct stm32f7_uart_cfg uart_cfg[UART_CNT] = {
 };
 #endif
 
+#if MYNEWT_VAL(ETH_0)
+static const struct stm32_eth_cfg eth_cfg = {
+/*
+ * PORTA
+ *   PA1 - ETH_RMII_REF_CLK
+ *   PA2 - ETH_RMII_MDIO
+ *   PA7 - ETH_RMII_CRS_DV
+ */
+.sec_port_mask[0] = (1 << 1) | (1 << 2) | (1 << 7),
+
+/*
+ * PORTB
+ *   PB13 - ETH_RMII_TXD1
+ */
+.sec_port_mask[1] = (1 << 13),
+
+/*
+ * PORTC
+ *   PC1 - ETH_RMII_MDC
+ *   PC4 - ETH_RMII_RXD0
+ *   PC5 - ETH_RMII_RXD1
+ */
+.sec_port_mask[2] = (1 << 1) | (1 << 4) | (1 << 5),
+
+/*
+ * PORTG
+ *   PG11 - ETH_RMII_TXEN
+ *   PG13 - ETH_RMII_TXD0
+ */
+.sec_port_mask[6] = (1 << 11) | (1 << 13),
+.sec_phy_type = LAN_8742_RMII,
+.sec_phy_irq = -1
+};
+#endif
+
 /* FIXME */
 static const struct hal_bsp_mem_dump dump_cfg[] = {
 [0] = {
@@ -114,6 +155,15 @@ hal_bsp_init(void)
 #if MYNEWT_VAL(TIMER_2)
 hal_timer_init(2, TIM9);
 #endif
+
+#if (MYNEWT_VAL(OS_CPUTIME_TIMER_NUM) >= 0)
+rc = os_cputime_init(MYNEWT_VAL(OS_CPUTIME_FREQ));
+assert(rc == 0);
+#endif
+
+#if MYNEWT_VAL(ETH_0)
+stm32_eth_init(_cfg);
+#endif
 }
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/383906f4/hw/bsp/stm32f767-nucleo/syscfg.yml
--
diff --git a/hw/bsp/stm32f767-nucleo/syscfg.yml 
b/hw/bsp/stm32f767-nucleo/syscfg.yml
index a4d2a73..fb083ed 100644
--- a/hw/bsp/stm32f767-nucleo/syscfg.yml
+++ b/hw/bsp/stm32f767-nucleo/syscfg.yml
@@ -31,6 +31,10 @@ syscfg.defs:
 description: 'Timer 2'
 value: 1
 
+ETH_0:
+description: 'Ethernet driver for LwIP'
+value: 0
+
 syscfg.vals:
 REBOOT_LOG_FLASH_AREA: FLASH_AREA_REBOOT_LOG
 CONFIG_FCB_FLASH_AREA: FLASH_AREA_NFFS



[30/30] incubator-mynewt-core git commit: Merge branch 'lwip_updates' of https://github.com/mkiiskila/incubator-mynewt-core

2017-04-19 Thread aditi
Merge branch 'lwip_updates' of 
https://github.com/mkiiskila/incubator-mynewt-core

This closes #235.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/28b29f44
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/28b29f44
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/28b29f44

Branch: refs/heads/master
Commit: 28b29f44549bcb7cec4bf47f10af45237a88d12b
Parents: 8492749 bcba6bd
Author: aditihilbert 
Authored: Wed Apr 19 11:12:27 2017 -0700
Committer: aditihilbert 
Committed: Wed Apr 19 11:12:27 2017 -0700

--
 apps/iptest/pkg.yml |   46 +
 apps/iptest/src/main.c  |  441 ++
 apps/iptest/syscfg.yml  |   45 +
 .../include/bsp/stm32f4xx_hal_conf.h|1 +
 hw/bsp/olimex_stm32-e407_devboard/pkg.yml   |4 +-
 hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c |   41 +-
 hw/bsp/olimex_stm32-e407_devboard/syscfg.yml|4 +
 hw/bsp/stm32f767-nucleo/pkg.yml |3 +
 hw/bsp/stm32f767-nucleo/src/hal_bsp.c   |   50 +
 hw/bsp/stm32f767-nucleo/syscfg.yml  |4 +
 .../stm32_eth/include/stm32_eth/stm32_eth.h |   49 +
 .../stm32_eth/include/stm32_eth/stm32_eth_cfg.h |   47 +
 hw/drivers/lwip/stm32_eth/pkg.yml   |   41 +
 hw/drivers/lwip/stm32_eth/src/stm32_eth.c   |  538 +++
 .../include/stm32f4_eth/stm32f4_eth.h   |   27 -
 .../include/stm32f4_eth/stm32f4_eth_cfg.h   |   32 -
 hw/drivers/lwip/stm32f4_eth/pkg.yml |   33 -
 hw/drivers/lwip/stm32f4_eth/src/stm32f4_eth.c   |  746 --
 hw/hal/include/hal/hal_timer.h  |2 +
 hw/mcu/stm/stm32f4xx/syscfg.yml |4 +
 hw/mcu/stm/stm32f7xx/syscfg.yml |4 +
 libc/baselibc/include/string.h  |1 +
 libc/baselibc/src/strstr.c  |5 +
 net/ip/include/arch/sys_arch.h  |  304 ++--
 net/ip/include/ip/init.h|   32 -
 net/ip/include/lwipopts.h   |   15 +-
 net/ip/inet_def_service/src/inet_def_service.c  |  110 +-
 net/ip/lwip_base/CHANGELOG  |  146 ++
 net/ip/lwip_base/UPGRADING  |   16 +-
 net/ip/lwip_base/doc/NO_SYS_SampleCode.c|   16 +-
 net/ip/lwip_base/doc/doxygen/generate.sh|2 +
 net/ip/lwip_base/doc/doxygen/lwip.Doxyfile  |7 +-
 net/ip/lwip_base/doc/doxygen/main_page.h|   75 +-
 net/ip/lwip_base/doc/mqtt_client.txt|  162 +++
 net/ip/lwip_base/doc/ppp.txt|6 +-
 net/ip/lwip_base/doc/rawapi.txt |8 +-
 net/ip/lwip_base/doc/sys_arch.txt   |2 +-
 net/ip/lwip_base/include/lwip/api.h |   31 +-
 net/ip/lwip_base/include/lwip/apps/httpd_opts.h |   30 -
 net/ip/lwip_base/include/lwip/apps/mdns.h   |   10 +-
 net/ip/lwip_base/include/lwip/apps/mdns_opts.h  |   10 +-
 net/ip/lwip_base/include/lwip/apps/mdns_priv.h  |   10 +-
 net/ip/lwip_base/include/lwip/apps/mqtt.h   |  244 
 net/ip/lwip_base/include/lwip/apps/mqtt_opts.h  |  103 ++
 net/ip/lwip_base/include/lwip/apps/netbiosns.h  |8 -
 .../include/lwip/apps/netbiosns_opts.h  |   18 -
 net/ip/lwip_base/include/lwip/apps/snmp_opts.h  |8 -
 net/ip/lwip_base/include/lwip/apps/snmpv3.h |8 -
 net/ip/lwip_base/include/lwip/apps/sntp_opts.h  |8 -
 net/ip/lwip_base/include/lwip/apps/tftp_opts.h  |  105 ++
 .../lwip_base/include/lwip/apps/tftp_server.h   |   94 ++
 net/ip/lwip_base/include/lwip/arch.h|  299 ++--
 net/ip/lwip_base/include/lwip/autoip.h  |2 +
 net/ip/lwip_base/include/lwip/debug.h   |   81 +-
 net/ip/lwip_base/include/lwip/def.h |   95 +-
 net/ip/lwip_base/include/lwip/dhcp.h|2 +
 net/ip/lwip_base/include/lwip/dhcp6.h   |8 -
 net/ip/lwip_base/include/lwip/dns.h |   18 +-
 net/ip/lwip_base/include/lwip/err.h |4 +
 net/ip/lwip_base/include/lwip/errno.h   |  193 +++
 net/ip/lwip_base/include/lwip/icmp.h|2 +-
 net/ip/lwip_base/include/lwip/icmp6.h   |   89 +-
 net/ip/lwip_base/include/lwip/igmp.h|6 +-
 net/ip/lwip_base/include/lwip/inet.h|8 +-
 net/ip/lwip_base/include/lwip/inet_chksum.h |8 +-
 net/ip/lwip_base/include/lwip/init.h|4 +-
 net/ip/lwip_base/include/lwip/ip4_addr.h|   36 +-
 net/ip/lwip_base/include/lwip/ip6_addr.h|   66 +-
 net/ip/lwip_base/include/lwip/ip_addr.h |   73 +-
 net/ip/lwip_base/include/lwip/mem.h |3 +-
 net/ip/lwip_base/include/lwip/mld6.h|7 +-
 net/ip/lwip_base/include/lwip/nd6.h 

[04/30] incubator-mynewt-core git commit: mn_socket; add LINK flag, mn_itf_get() convenience function.

2017-04-19 Thread aditi
mn_socket; add LINK flag, mn_itf_get() convenience function.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/7701a125
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/7701a125
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/7701a125

Branch: refs/heads/master
Commit: 7701a125257fc850a129f8fc2e6a5695094d0a4a
Parents: e120cfc
Author: Marko Kiiskila 
Authored: Fri Apr 14 12:47:19 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/mn_socket/include/mn_socket/mn_socket.h |  7 +++
 net/ip/mn_socket/src/mn_socket.c   | 16 
 2 files changed, 23 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7701a125/net/ip/mn_socket/include/mn_socket/mn_socket.h
--
diff --git a/net/ip/mn_socket/include/mn_socket/mn_socket.h 
b/net/ip/mn_socket/include/mn_socket/mn_socket.h
index b21bc33..b90ce1a 100644
--- a/net/ip/mn_socket/include/mn_socket/mn_socket.h
+++ b/net/ip/mn_socket/include/mn_socket/mn_socket.h
@@ -55,6 +55,7 @@ extern "C" {
 #define MN_EUNKNOWN 11
 #define MN_EADDRNOTAVAIL12
 #define MN_ENETUNREACH  13
+#define MN_OPNOSUPPORT  14
 
 /*
  * Multicast macros
@@ -198,6 +199,7 @@ const char *mn_inet_ntop(int af, const void *src, void 
*dst, int len);
  */
 #define MN_ITF_F_UP1
 #define MN_ITF_F_MULTICAST 2
+#define MN_ITF_F_LINK  4
 
 struct mn_itf {
 char mif_name[MN_ITF_NAME_MAX];
@@ -220,6 +222,11 @@ struct mn_itf_addr {
 int mn_itf_getnext(struct mn_itf *);
 int mn_itf_addr_getnext(struct mn_itf *, struct mn_itf_addr *);
 
+/*
+ * Find specific interface, given name.
+ */
+int mn_itf_get(char *name, struct mn_itf *mi);
+
 #ifdef __cplusplus
 }
 #endif

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7701a125/net/ip/mn_socket/src/mn_socket.c
--
diff --git a/net/ip/mn_socket/src/mn_socket.c b/net/ip/mn_socket/src/mn_socket.c
index 2d0d06e..d0070c3 100644
--- a/net/ip/mn_socket/src/mn_socket.c
+++ b/net/ip/mn_socket/src/mn_socket.c
@@ -19,6 +19,7 @@
 
 #include 
 #include 
+#include 
 
 #include 
 
@@ -136,3 +137,18 @@ mn_itf_addr_getnext(struct mn_itf *mi, struct mn_itf_addr 
*mia)
 {
 return mn_sock_tgt->mso_itf_addr_getnext(mi, mia);
 }
+
+int
+mn_itf_get(char *name, struct mn_itf *mi)
+{
+memset(mi, 0, sizeof(*mi));
+while (1) {
+if (mn_itf_getnext(mi)) {
+break;
+}
+if (!strcmp(name, mi->mif_name)) {
+return 0;
+}
+}
+return -1;
+}



[23/30] incubator-mynewt-core git commit: net/ip; updates needed for LwIP 2.0.2

2017-04-19 Thread aditi
net/ip; updates needed for LwIP 2.0.2


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/54c29c66
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/54c29c66
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/54c29c66

Branch: refs/heads/master
Commit: 54c29c6625fedbebd5b9997acf8b9338147b3933
Parents: f52033e
Author: Marko Kiiskila 
Authored: Fri Apr 14 17:36:26 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 17:36:26 2017 -0700

--
 net/ip/include/lwipopts.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/54c29c66/net/ip/include/lwipopts.h
--
diff --git a/net/ip/include/lwipopts.h b/net/ip/include/lwipopts.h
index 7382692..2110570 100644
--- a/net/ip/include/lwipopts.h
+++ b/net/ip/include/lwipopts.h
@@ -181,9 +181,9 @@ extern "C" {
 
 /* -- Statistics options -- */
 /* XXX hook into sys/stats */
-#define STATS   0
+#define LWIP_STATS   0
 
-#if STATS
+#if LWIP_STATS
 #define LINK_STATS  1
 #define IP_STATS1
 #define ICMP_STATS  1
@@ -196,6 +196,7 @@ extern "C" {
 #endif /* STATS */
 
 #define LWIP_PROVIDE_ERRNO 1
+#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS 1
 #define ERRNO 0
 
 #ifdef __cplusplus



[22/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/f52033e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f52033e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f52033e9

Branch: refs/heads/master
Commit: f52033e9a02b2e8e6a378023977543facb29378d
Parents: 0429ee5
Author: Marko Kiiskila 
Authored: Fri Apr 14 17:35:31 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 17:35:31 2017 -0700

--
 net/ip/lwip_base/CHANGELOG  |  146 ++
 net/ip/lwip_base/UPGRADING  |   16 +-
 net/ip/lwip_base/doc/NO_SYS_SampleCode.c|   16 +-
 net/ip/lwip_base/doc/doxygen/generate.sh|2 +
 net/ip/lwip_base/doc/doxygen/lwip.Doxyfile  |7 +-
 net/ip/lwip_base/doc/doxygen/main_page.h|   75 +-
 net/ip/lwip_base/doc/mqtt_client.txt|  162 +++
 net/ip/lwip_base/doc/ppp.txt|6 +-
 net/ip/lwip_base/doc/rawapi.txt |8 +-
 net/ip/lwip_base/doc/sys_arch.txt   |2 +-
 net/ip/lwip_base/include/lwip/api.h |   31 +-
 net/ip/lwip_base/include/lwip/apps/httpd_opts.h |   30 -
 net/ip/lwip_base/include/lwip/apps/mdns.h   |   10 +-
 net/ip/lwip_base/include/lwip/apps/mdns_opts.h  |   10 +-
 net/ip/lwip_base/include/lwip/apps/mdns_priv.h  |   10 +-
 net/ip/lwip_base/include/lwip/apps/mqtt.h   |  244 
 net/ip/lwip_base/include/lwip/apps/mqtt_opts.h  |  103 ++
 net/ip/lwip_base/include/lwip/apps/netbiosns.h  |8 -
 .../include/lwip/apps/netbiosns_opts.h  |   18 -
 net/ip/lwip_base/include/lwip/apps/snmp_opts.h  |8 -
 net/ip/lwip_base/include/lwip/apps/snmpv3.h |8 -
 net/ip/lwip_base/include/lwip/apps/sntp_opts.h  |8 -
 net/ip/lwip_base/include/lwip/apps/tftp_opts.h  |  105 ++
 .../lwip_base/include/lwip/apps/tftp_server.h   |   94 ++
 net/ip/lwip_base/include/lwip/arch.h|  299 ++--
 net/ip/lwip_base/include/lwip/autoip.h  |2 +
 net/ip/lwip_base/include/lwip/debug.h   |   81 +-
 net/ip/lwip_base/include/lwip/def.h |   95 +-
 net/ip/lwip_base/include/lwip/dhcp.h|2 +
 net/ip/lwip_base/include/lwip/dhcp6.h   |8 -
 net/ip/lwip_base/include/lwip/dns.h |   18 +-
 net/ip/lwip_base/include/lwip/err.h |4 +
 net/ip/lwip_base/include/lwip/errno.h   |  193 +++
 net/ip/lwip_base/include/lwip/icmp.h|2 +-
 net/ip/lwip_base/include/lwip/icmp6.h   |   89 +-
 net/ip/lwip_base/include/lwip/igmp.h|6 +-
 net/ip/lwip_base/include/lwip/inet.h|8 +-
 net/ip/lwip_base/include/lwip/inet_chksum.h |8 +-
 net/ip/lwip_base/include/lwip/init.h|4 +-
 net/ip/lwip_base/include/lwip/ip4_addr.h|   36 +-
 net/ip/lwip_base/include/lwip/ip6_addr.h|   66 +-
 net/ip/lwip_base/include/lwip/ip_addr.h |   73 +-
 net/ip/lwip_base/include/lwip/mem.h |3 +-
 net/ip/lwip_base/include/lwip/mld6.h|7 +-
 net/ip/lwip_base/include/lwip/nd6.h |   93 +-
 net/ip/lwip_base/include/lwip/netdb.h   |3 +-
 net/ip/lwip_base/include/lwip/netif.h   |   10 +-
 net/ip/lwip_base/include/lwip/netifapi.h|   12 +-
 net/ip/lwip_base/include/lwip/opt.h |  116 +-
 net/ip/lwip_base/include/lwip/pbuf.h|   20 +-
 net/ip/lwip_base/include/lwip/priv/api_msg.h|3 +-
 net/ip/lwip_base/include/lwip/priv/memp_std.h   |8 -
 net/ip/lwip_base/include/lwip/priv/nd6_priv.h   |  144 ++
 net/ip/lwip_base/include/lwip/priv/tcp_priv.h   |   27 +-
 net/ip/lwip_base/include/lwip/priv/tcpip_priv.h |4 +-
 net/ip/lwip_base/include/lwip/prot/dns.h|   18 +
 net/ip/lwip_base/include/lwip/prot/ethernet.h   |2 +-
 net/ip/lwip_base/include/lwip/prot/icmp6.h  |   87 ++
 net/ip/lwip_base/include/lwip/prot/ip.h |8 -
 net/ip/lwip_base/include/lwip/prot/ip4.h|   16 +
 net/ip/lwip_base/include/lwip/prot/ip6.h|   27 +-
 net/ip/lwip_base/include/lwip/prot/mld6.h   |2 +-
 net/ip/lwip_base/include/lwip/prot/nd6.h|   24 +
 net/ip/lwip_base/include/lwip/prot/tcp.h|   14 +-
 net/ip/lwip_base/include/lwip/raw.h |2 +
 net/ip/lwip_base/include/lwip/sockets.h |5 +-
 net/ip/lwip_base/include/lwip/stats.h   |4 +-
 net/ip/lwip_base/include/lwip/sys.h |   44 +-
 net/ip/lwip_base/include/lwip/tcp.h |   12 +-
 net/ip/lwip_base/include/lwip/tcpip.h   |2 +
 net/ip/lwip_base/include/lwip/timeouts.h|2 +-
 net/ip/lwip_base/include/netif/lowpan6_opts.h   |8 -
 net/ip/lwip_base/include/netif/ppp/ccp.h  

[19/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/src/apps/httpd/httpd.c
--
diff --git a/net/ip/lwip_base/src/apps/httpd/httpd.c 
b/net/ip/lwip_base/src/apps/httpd/httpd.c
index f8e2e28..43195d7 100644
--- a/net/ip/lwip_base/src/apps/httpd/httpd.c
+++ b/net/ip/lwip_base/src/apps/httpd/httpd.c
@@ -98,11 +98,11 @@
 #include "lwip/ip.h"
 #include "lwip/tcp.h"
 
-#include 
-#include 
+#include  /* memset */
+#include  /* atoi */
 #include 
 
-#if LWIP_TCP
+#if LWIP_TCP && LWIP_CALLBACK_API
 
 /** Minimum length for a valid HTTP/0.9 request: "GET /\r\n" -> 7 bytes */
 #define MIN_REQ_LEN   7
@@ -335,85 +335,34 @@ char *http_cgi_param_vals[LWIP_HTTPD_MAX_CGI_PARAMETERS]; 
/* Values for each ext
 /** global list of active HTTP connections, use to kill the oldest when
 running out of memory */
 static struct http_state *http_connections;
-#endif /* LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED */
 
-#if LWIP_HTTPD_STRNSTR_PRIVATE
-/** Like strstr but does not need 'buffer' to be NULL-terminated */
-static char*
-strnstr(const char* buffer, const char* token, size_t n)
+static void
+http_add_connection(struct http_state *hs)
 {
-  const char* p;
-  int tokenlen = (int)strlen(token);
-  if (tokenlen == 0) {
-return (char *)(size_t)buffer;
-  }
-  for (p = buffer; *p && (p + tokenlen <= buffer + n); p++) {
-if ((*p == *token) && (strncmp(p, token, tokenlen) == 0)) {
-  return (char *)(size_t)p;
-}
-  }
-  return NULL;
+  /* add the connection to the list */
+  hs->next = http_connections;
+  http_connections = hs;
 }
-#endif /* LWIP_HTTPD_STRNSTR_PRIVATE */
 
-#if LWIP_HTTPD_STRICMP_PRIVATE
-static int
-stricmp(const char* str1, const char* str2)
+static void
+http_remove_connection(struct http_state *hs)
 {
-  char c1, c2;
-
-  do {
-c1 = *str1++;
-c2 = *str2++;
-if (c1 != c2) {
-  char c1_upc = c1 | 0x20;
-  if ((c1_upc >= 'a') && (c1_upc <= 'z')) {
-/* characters are not equal an one is in the alphabet range:
-downcase both chars and check again */
-char c2_upc = c2 | 0x20;
-if (c1_upc != c2_upc) {
-  /* still not equal */
-  /* don't care for < or > */
-  return 1;
+  /* take the connection off the list */
+  if (http_connections) {
+if (http_connections == hs) {
+  http_connections = hs->next;
+} else {
+  struct http_state *last;
+  for(last = http_connections; last->next != NULL; last = last->next) {
+if (last->next == hs) {
+  last->next = hs->next;
+  break;
 }
-  } else {
-/* characters are not equal but none is in the alphabet range */
-return 1;
   }
 }
-  } while (c1 != 0);
-  return 0;
-}
-#endif /* LWIP_HTTPD_STRICMP_PRIVATE */
-
-#if LWIP_HTTPD_ITOA_PRIVATE && LWIP_HTTPD_DYNAMIC_HEADERS
-static void
-httpd_itoa(int value, char* result)
-{
-  const int base = 10;
-  char* ptr = result, *ptr1 = result, tmp_char;
-  int tmp_value;
-
-  do {
-tmp_value = value;
-value /= base;
-*ptr++ = 
"zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"[35 + 
(tmp_value - value * base)];
-  } while(value);
-
-   /* Apply negative sign */
-  if (tmp_value < 0) {
- *ptr++ = '-';
-  }
-  *ptr-- = '\0';
-  while(ptr1 < ptr) {
-tmp_char = *ptr;
-*ptr--= *ptr1;
-*ptr1++ = tmp_char;
   }
 }
-#endif
 
-#if LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED
 static void
 http_kill_oldest_connection(u8_t ssi_required)
 {
@@ -442,6 +391,11 @@ http_kill_oldest_connection(u8_t ssi_required)
 http_close_or_abort_conn(hs_free_next->next->pcb, hs_free_next->next, 1); 
/* this also unlinks the http_state from the list */
   }
 }
+#else /* LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED */
+
+#define http_add_connection(hs)
+#define http_remove_connection(hs)
+
 #endif /* LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED */
 
 #if LWIP_HTTPD_SSI
@@ -498,17 +452,7 @@ http_state_alloc(void)
 #endif /* LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED */
   if (ret != NULL) {
 http_state_init(ret);
-#if LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED
-/* add the connection to the list */
-if (http_connections == NULL) {
-  http_connections = ret;
-} else {
-  struct http_state *last;
-  for(last = http_connections; last->next != NULL; last = last->next);
-  LWIP_ASSERT("last != NULL", last != NULL);
-  last->next = ret;
-}
-#endif /* LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED */
+http_add_connection(ret);
   }
   return ret;
 }
@@ -557,22 +501,7 @@ http_state_free(struct http_state *hs)
 {
   if (hs != NULL) {
 http_state_eof(hs);
-#if LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED
-/* take the connection off the list */
-if (http_connections) {
-  if (http_connections == hs) {
-http_connections = hs->next;
-  } else {
-struct http_state *last;
-

[18/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/src/apps/snmp/snmp_core.c
--
diff --git a/net/ip/lwip_base/src/apps/snmp/snmp_core.c 
b/net/ip/lwip_base/src/apps/snmp/snmp_core.c
index 1230d62..c041833 100644
--- a/net/ip/lwip_base/src/apps/snmp/snmp_core.c
+++ b/net/ip/lwip_base/src/apps/snmp/snmp_core.c
@@ -270,7 +270,7 @@ snmp_oid_to_ip4(const u32_t *oid, ip4_addr_t *ip)
   (oid[1] > 0xFF) ||
   (oid[2] > 0xFF) ||
   (oid[3] > 0xFF)) {
-ip4_addr_copy(*ip, *IP4_ADDR_ANY);
+ip4_addr_copy(*ip, *IP4_ADDR_ANY4);
 return 0;
   }
 
@@ -359,9 +359,9 @@ snmp_ip6_to_oid(const ip6_addr_t *ip, u32_t *oid)
 #if LWIP_IPV4 || LWIP_IPV6
 /**
  * Convert to InetAddressType+InetAddress+InetPortNumber
- * @param ip
- * @param port
- * @param oid
+ * @param ip IP address
+ * @param port Port
+ * @param oid OID
  * @return OID length
  */
 u8_t
@@ -378,8 +378,8 @@ snmp_ip_port_to_oid(const ip_addr_t *ip, u16_t port, u32_t 
*oid)
 
 /**
  * Convert to InetAddressType+InetAddress
- * @param ip
- * @param oid
+ * @param ip IP address
+ * @param oid OID
  * @return OID length
  */
 u8_t
@@ -412,9 +412,9 @@ snmp_ip_to_oid(const ip_addr_t *ip, u32_t *oid)
 
 /**
  * Convert from InetAddressType+InetAddress to ip_addr_t
- * @param oid
- * @param oid_len
- * @param ip
+ * @param oid OID
+ * @param oid_len OID length
+ * @param ip IP address
  * @return Parsed OID length
  */
 u8_t
@@ -487,10 +487,10 @@ snmp_oid_to_ip(const u32_t *oid, u8_t oid_len, ip_addr_t 
*ip)
 
 /**
  * Convert from InetAddressType+InetAddress+InetPortNumber to ip_addr_t and 
u16_t
- * @param oid
- * @param oid_len
- * @param ip
- * @param port
+ * @param oid OID
+ * @param oid_len OID length
+ * @param ip IP address
+ * @param port Port
  * @return Parsed OID length
  */
 u8_t
@@ -520,10 +520,10 @@ snmp_oid_to_ip_port(const u32_t *oid, u8_t oid_len, 
ip_addr_t *ip, u16_t *port)
 #endif /* LWIP_IPV4 || LWIP_IPV6 */
 
 /**
- * Assign an OID to \struct snmp_obj_id
- * @param target
- * @param oid
- * @param oid_len
+ * Assign an OID to struct snmp_obj_id
+ * @param target Assignment target 
+ * @param oid OID
+ * @param oid_len OID length
  */
 void
 snmp_oid_assign(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len)
@@ -538,10 +538,10 @@ snmp_oid_assign(struct snmp_obj_id* target, const u32_t 
*oid, u8_t oid_len)
 }
 
 /**
- * Prefix an OID to OID in \struct snmp_obj_id
- * @param target
- * @param oid
- * @param oid_len
+ * Prefix an OID to OID in struct snmp_obj_id
+ * @param target Assignment target to prefix
+ * @param oid OID
+ * @param oid_len OID length
  */
 void
 snmp_oid_prefix(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len)
@@ -561,12 +561,12 @@ snmp_oid_prefix(struct snmp_obj_id* target, const u32_t 
*oid, u8_t oid_len)
 }
 
 /**
- * Combine two OIDs into \struct snmp_obj_id
- * @param target
- * @param oid1
- * @param oid1_len
- * @param oid2
- * @param oid2_len
+ * Combine two OIDs into struct snmp_obj_id
+ * @param target Assignmet target
+ * @param oid1 OID 1
+ * @param oid1_len OID 1 length
+ * @param oid2 OID 2
+ * @param oid2_len OID 2 length
  */
 void
 snmp_oid_combine(struct snmp_obj_id* target, const u32_t *oid1, u8_t oid1_len, 
const u32_t *oid2, u8_t oid2_len)
@@ -576,10 +576,10 @@ snmp_oid_combine(struct snmp_obj_id* target, const u32_t 
*oid1, u8_t oid1_len, c
 }
 
 /**
- * Append OIDs to \struct snmp_obj_id
- * @param target
- * @param oid
- * @param oid_len
+ * Append OIDs to struct snmp_obj_id
+ * @param target Assignment target to append to
+ * @param oid OID
+ * @param oid_len OID length
  */
 void
 snmp_oid_append(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len)
@@ -594,11 +594,11 @@ snmp_oid_append(struct snmp_obj_id* target, const u32_t 
*oid, u8_t oid_len)
 
 /**
  * Compare two OIDs
- * @param oid1
- * @param oid1_len
- * @param oid2
- * @param oid2_len
- * @return
+ * @param oid1 OID 1
+ * @param oid1_len OID 1 length
+ * @param oid2 OID 2
+ * @param oid2_len OID 2 length
+ * @return -1: OID1OID2  1: OID1 OID2 0: equal
  */
 s8_t
 snmp_oid_compare(const u32_t *oid1, u8_t oid1_len, const u32_t *oid2, u8_t 
oid2_len)
@@ -635,11 +635,11 @@ snmp_oid_compare(const u32_t *oid1, u8_t oid1_len, const 
u32_t *oid2, u8_t oid2_
 
 /**
  * Check of two OIDs are equal
- * @param oid1
- * @param oid1_len
- * @param oid2
- * @param oid2_len
- * @return
+ * @param oid1 OID 1
+ * @param oid1_len OID 1 length
+ * @param oid2 OID 2
+ * @param oid2_len OID 2 length
+ * @return 1: equal 0: non-equal
  */
 u8_t
 snmp_oid_equal(const u32_t *oid1, u8_t oid1_len, const u32_t *oid2, u8_t 
oid2_len)
@@ -649,7 +649,7 @@ snmp_oid_equal(const u32_t *oid1, u8_t oid1_len, const 
u32_t *oid2, u8_t oid2_le
 
 /**
  * Convert netif to interface index
- * @param netif
+ * @param netif netif
  * @return index
  */
 u8_t


[09/30] incubator-mynewt-core git commit: STM32 ethernet driver for LwIP. Make it functional.

2017-04-19 Thread aditi
STM32 ethernet driver for LwIP. Make it functional.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/c5f8cf66
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c5f8cf66
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c5f8cf66

Branch: refs/heads/master
Commit: c5f8cf661026c137cf5832133183b8a76452df9b
Parents: 0092753
Author: Marko Kiiskila 
Authored: Fri Apr 14 10:37:34 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 .../stm32_eth/include/stm32_eth/stm32_eth.h |  49 ++
 .../stm32_eth/include/stm32_eth/stm32_eth_cfg.h |  47 ++
 hw/drivers/lwip/stm32_eth/pkg.yml   |  41 +
 hw/drivers/lwip/stm32_eth/src/stm32_eth.c   | 538 +
 .../include/stm32f4_eth/stm32f4_eth.h   |  27 -
 .../include/stm32f4_eth/stm32f4_eth_cfg.h   |  32 -
 hw/drivers/lwip/stm32f4_eth/pkg.yml |  33 -
 hw/drivers/lwip/stm32f4_eth/src/stm32f4_eth.c   | 746 ---
 8 files changed, 675 insertions(+), 838 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c5f8cf66/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth.h
--
diff --git a/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth.h 
b/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth.h
new file mode 100644
index 000..fa2f048
--- /dev/null
+++ b/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth.h
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __STM32_ETH_H__
+#define __STM32_ETH_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Initialize the ethernet device with cfg.
+ *
+ * @param cfg HW specific configuration.
+ *
+ * @return int 0 on success, non-zero error code on failure.
+ */
+int stm32_eth_init(const void *cfg);
+
+/*
+ * Set the MAC address for ethernet to use.
+ *
+ * @param addr Byte array of 6 bytes to use as MAC address.
+ *
+ * @return int 0 on success, non-zero error code on failure.
+ */
+int stm32_eth_set_hwaddr(uint8_t *addr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __STM32_ETH_H__ */

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c5f8cf66/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth_cfg.h
--
diff --git a/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth_cfg.h 
b/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth_cfg.h
new file mode 100644
index 000..db11201
--- /dev/null
+++ b/hw/drivers/lwip/stm32_eth/include/stm32_eth/stm32_eth_cfg.h
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef __STM32_ETH_CFG_H__
+#define __STM32_ETH_CFG_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * BSP specific ethernet settings.
+ */
+#define STM32_MAX_PORTS9
+
+struct stm32_eth_cfg {
+/* Mask of pins from ports A-I to use */
+uint32_t sec_port_mask[STM32_MAX_PORTS];
+enum {
+SMSC_8710_RMII,
+LAN_8742_RMII
+} sec_phy_type;
+int sec_phy_irq;
+uint8_t sec_phy_addr;
+};
+
+#ifdef __cplusplus
+}
+#endif
+

[17/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/src/core/ipv4/icmp.c
--
diff --git a/net/ip/lwip_base/src/core/ipv4/icmp.c 
b/net/ip/lwip_base/src/core/ipv4/icmp.c
index e60e448..5ee24ee 100644
--- a/net/ip/lwip_base/src/core/ipv4/icmp.c
+++ b/net/ip/lwip_base/src/core/ipv4/icmp.c
@@ -51,6 +51,10 @@
 
 #include 
 
+#ifdef LWIP_HOOK_FILENAME
+#include LWIP_HOOK_FILENAME
+#endif
+
 /** Small optimization: set to 0 if incoming PBUF_POOL pbuf always can be
  * used to modify and send a response packet (and to 1 if this is not the case,
  * e.g. when link header is stripped of when receiving) */
@@ -81,7 +85,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
 #endif /* LWIP_DEBUG */
   struct icmp_echo_hdr *iecho;
   const struct ip_hdr *iphdr_in;
-  s16_t hlen;
+  u16_t hlen;
   const ip4_addr_t* src;
 
   ICMP_STATS_INC(icmp.recv);
@@ -148,7 +152,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
 }
 #endif
 #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
-if (pbuf_header(p, (hlen + PBUF_LINK_HLEN + 
PBUF_LINK_ENCAPSULATION_HLEN))) {
+if (pbuf_header(p, (s16_t)(hlen + PBUF_LINK_HLEN + 
PBUF_LINK_ENCAPSULATION_HLEN))) {
   /* p is not big enough to contain link headers
* allocate a new one and copy p into it
*/
@@ -167,7 +171,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
   /* copy the ip header */
   MEMCPY(r->payload, iphdr_in, hlen);
   /* switch r->payload back to icmp header (cannot fail) */
-  if (pbuf_header(r, -hlen)) {
+  if (pbuf_header(r, (s16_t)-hlen)) {
 LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 
0);
 pbuf_free(r);
 goto icmperr;
@@ -194,7 +198,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
 /* We generate an answer by switching the dest and src ip addresses,
  * setting the icmp type to ECHO_RESPONSE and updating the checksum. */
 iecho = (struct icmp_echo_hdr *)p->payload;
-if (pbuf_header(p, hlen)) {
+if (pbuf_header(p, (s16_t)hlen)) {
   LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over 
header in packet"));
 } else {
   err_t ret;
@@ -247,7 +251,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
 if (type == ICMP_DUR) {
   MIB2_STATS_INC(mib2.icmpindestunreachs);
 } else if (type == ICMP_TE) {
-  MIB2_STATS_INC(mib2.icmpindestunreachs);
+  MIB2_STATS_INC(mib2.icmpintimeexcds);
 } else if (type == ICMP_PP) {
   MIB2_STATS_INC(mib2.icmpinparmprobs);
 } else if (type == ICMP_SQ) {

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/src/core/ipv4/igmp.c
--
diff --git a/net/ip/lwip_base/src/core/ipv4/igmp.c 
b/net/ip/lwip_base/src/core/ipv4/igmp.c
index f3db591..74a6c37 100644
--- a/net/ip/lwip_base/src/core/ipv4/igmp.c
+++ b/net/ip/lwip_base/src/core/ipv4/igmp.c
@@ -195,10 +195,13 @@ igmp_report_groups(struct netif *netif)
 
   LWIP_DEBUGF(IGMP_DEBUG, ("igmp_report_groups: sending IGMP reports on if 
%p\n", (void*)netif));
 
+  /* Skip the first group in the list, it is always the allsystems group added 
in igmp_start() */
+  if(group != NULL) {
+group = group->next;
+  }
+  
   while (group != NULL) {
-if (!(ip4_addr_cmp(&(group->group_address), ))) {
-  igmp_delaying_member(group, IGMP_JOIN_DELAYING_MEMBER_TMR);
-}
+igmp_delaying_member(group, IGMP_JOIN_DELAYING_MEMBER_TMR);
 group = group->next;
   }
 }
@@ -237,10 +240,11 @@ igmp_lookfor_group(struct netif *ifp, const ip4_addr_t 
*addr)
  * @return a struct igmp_group*,
  * NULL on memory error.
  */
-struct igmp_group *
+static struct igmp_group *
 igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr)
 {
   struct igmp_group *group;
+  struct igmp_group *list_head = netif_igmp_data(ifp);
 
   /* Search if the group already exists */
   group = igmp_lookfor_group(ifp, addr);
@@ -248,7 +252,7 @@ igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr)
 /* Group already exists. */
 return group;
   }
-
+  
   /* Group doesn't exist yet, create a new one */
   group = (struct igmp_group *)memp_malloc(MEMP_IGMP_GROUP);
   if (group != NULL) {
@@ -257,9 +261,21 @@ igmp_lookup_group(struct netif *ifp, const ip4_addr_t 
*addr)
 group->group_state= IGMP_GROUP_NON_MEMBER;
 group->last_reporter_flag = 0;
 group->use= 0;
-group->next   = netif_igmp_data(ifp);
 
-netif_set_client_data(ifp, LWIP_NETIF_CLIENT_DATA_INDEX_IGMP, group);
+/* Ensure allsystems group is always first in list */
+if (list_head == NULL) {
+  /* this is the first entry in linked list */
+  LWIP_ASSERT("igmp_lookup_group: first group must be allsystems",
+(ip4_addr_cmp(addr, ) != 0));
+  group->next = NULL;
+  netif_set_client_data(ifp, 

[20/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/include/lwip/prot/tcp.h
--
diff --git a/net/ip/lwip_base/include/lwip/prot/tcp.h 
b/net/ip/lwip_base/include/lwip/prot/tcp.h
index 8ef0bf1..67fe7b9 100644
--- a/net/ip/lwip_base/include/lwip/prot/tcp.h
+++ b/net/ip/lwip_base/include/lwip/prot/tcp.h
@@ -80,15 +80,15 @@ PACK_STRUCT_END
 /* Valid TCP header flags */
 #define TCP_FLAGS 0x3fU
 
-#define TCPH_HDRLEN(phdr) ((u16_t)(ntohs((phdr)->_hdrlen_rsvd_flags) >> 12))
-#define TCPH_FLAGS(phdr)  ((u16_t)(ntohs((phdr)->_hdrlen_rsvd_flags) & 
TCP_FLAGS))
+#define TCPH_HDRLEN(phdr) ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) >> 
12))
+#define TCPH_FLAGS(phdr)  ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) & 
TCP_FLAGS))
 
-#define TCPH_HDRLEN_SET(phdr, len) (phdr)->_hdrlen_rsvd_flags = htons(((len) 
<< 12) | TCPH_FLAGS(phdr))
-#define TCPH_FLAGS_SET(phdr, flags) (phdr)->_hdrlen_rsvd_flags = 
(((phdr)->_hdrlen_rsvd_flags & PP_HTONS(~TCP_FLAGS)) | htons(flags))
-#define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags) (phdr)->_hdrlen_rsvd_flags = 
htons(((len) << 12) | (flags))
+#define TCPH_HDRLEN_SET(phdr, len) (phdr)->_hdrlen_rsvd_flags = 
lwip_htons(((len) << 12) | TCPH_FLAGS(phdr))
+#define TCPH_FLAGS_SET(phdr, flags) (phdr)->_hdrlen_rsvd_flags = 
(((phdr)->_hdrlen_rsvd_flags & PP_HTONS(~TCP_FLAGS)) | lwip_htons(flags))
+#define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags) (phdr)->_hdrlen_rsvd_flags = 
(u16_t)(lwip_htons((u16_t)((len) << 12) | (flags)))
 
-#define TCPH_SET_FLAG(phdr, flags ) (phdr)->_hdrlen_rsvd_flags = 
((phdr)->_hdrlen_rsvd_flags | htons(flags))
-#define TCPH_UNSET_FLAG(phdr, flags) (phdr)->_hdrlen_rsvd_flags = 
((phdr)->_hdrlen_rsvd_flags & ~htons(flags))
+#define TCPH_SET_FLAG(phdr, flags ) (phdr)->_hdrlen_rsvd_flags = 
((phdr)->_hdrlen_rsvd_flags | lwip_htons(flags))
+#define TCPH_UNSET_FLAG(phdr, flags) (phdr)->_hdrlen_rsvd_flags = 
((phdr)->_hdrlen_rsvd_flags & ~lwip_htons(flags))
 
 #ifdef __cplusplus
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/include/lwip/raw.h
--
diff --git a/net/ip/lwip_base/include/lwip/raw.h 
b/net/ip/lwip_base/include/lwip/raw.h
index f92c8ee..30aa147 100644
--- a/net/ip/lwip_base/include/lwip/raw.h
+++ b/net/ip/lwip_base/include/lwip/raw.h
@@ -104,6 +104,8 @@ void raw_recv   (struct raw_pcb *pcb, 
raw_recv_fn recv, void *re
 u8_t raw_input  (struct pbuf *p, struct netif *inp);
 #define raw_init() /* Compatibility define, no init needed. */
 
+void raw_netif_ip_addr_changed(const ip_addr_t* old_addr, const ip_addr_t* 
new_addr);
+
 /* for compatibility with older implementation */
 #define raw_new_ip6(proto) raw_new_ip_type(IPADDR_TYPE_V6, proto)
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/include/lwip/sockets.h
--
diff --git a/net/ip/lwip_base/include/lwip/sockets.h 
b/net/ip/lwip_base/include/lwip/sockets.h
index 20ba629..2522056 100644
--- a/net/ip/lwip_base/include/lwip/sockets.h
+++ b/net/ip/lwip_base/include/lwip/sockets.h
@@ -43,11 +43,10 @@
 
 #if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */
 
-#include  /* for size_t */
-
 #include "lwip/ip_addr.h"
 #include "lwip/err.h"
 #include "lwip/inet.h"
+#include "lwip/errno.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -427,6 +426,8 @@ typedef struct fd_set
 
 #elif LWIP_SOCKET_OFFSET
 #error LWIP_SOCKET_OFFSET does not work with external FD_SET!
+#elif FD_SETSIZE < MEMP_NUM_NETCONN
+#error "external FD_SETSIZE too small for number of sockets"
 #endif /* FD_SET */
 
 /** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/include/lwip/stats.h
--
diff --git a/net/ip/lwip_base/include/lwip/stats.h 
b/net/ip/lwip_base/include/lwip/stats.h
index 89f54f3..bcda2ac 100644
--- a/net/ip/lwip_base/include/lwip/stats.h
+++ b/net/ip/lwip_base/include/lwip/stats.h
@@ -304,7 +304,7 @@ struct stats_ {
 extern struct stats_ lwip_stats;
 
 /** Init statistics */
-void lwip_stats_init(void);
+void stats_init(void);
 
 #define STATS_INC(x) ++lwip_stats.x
 #define STATS_DEC(x) --lwip_stats.x
@@ -315,7 +315,7 @@ void lwip_stats_init(void);
  } while(0)
 #define STATS_GET(x) lwip_stats.x
 #else /* LWIP_STATS */
-#define lwip_stats_init()
+#define stats_init()
 #define STATS_INC(x)
 #define STATS_DEC(x)
 #define STATS_INC_USED(x)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/include/lwip/sys.h
--
diff --git 

[29/30] incubator-mynewt-core git commit: Merge branch 'ruuvi' of https://github.com/wes3/incubator-mynewt-core

2017-04-19 Thread aditi
Merge branch 'ruuvi' of https://github.com/wes3/incubator-mynewt-core

This closes #236.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/84927494
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/84927494
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/84927494

Branch: refs/heads/master
Commit: 84927494547020e75dc1fd191666f1283a751f6f
Parents: 73c8953 f4e2b34
Author: aditihilbert 
Authored: Wed Apr 19 11:11:21 2017 -0700
Committer: aditihilbert 
Committed: Wed Apr 19 11:11:21 2017 -0700

--
 hw/bsp/ruuvi_tag_revb2/boot-nrf52xxaa.ld|  25 ++
 hw/bsp/ruuvi_tag_revb2/bsp.yml  |  64 
 hw/bsp/ruuvi_tag_revb2/include/bsp/boards.h |  19 ++
 hw/bsp/ruuvi_tag_revb2/include/bsp/bsp.h|  73 +
 hw/bsp/ruuvi_tag_revb2/include/bsp/cmsis_nvic.h |  29 ++
 hw/bsp/ruuvi_tag_revb2/nrf52dk_debug.cmd|  22 ++
 hw/bsp/ruuvi_tag_revb2/nrf52dk_debug.sh |  46 +++
 hw/bsp/ruuvi_tag_revb2/nrf52dk_download.cmd |  22 ++
 hw/bsp/ruuvi_tag_revb2/nrf52dk_download.sh  |  40 +++
 hw/bsp/ruuvi_tag_revb2/nrf52dk_no_boot.ld   | 191 
 hw/bsp/ruuvi_tag_revb2/nrf52xxaa.ld |  25 ++
 hw/bsp/ruuvi_tag_revb2/pkg.yml  |  97 ++
 hw/bsp/ruuvi_tag_revb2/split-nrf52dk.ld | 208 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s  | 301 ++
 .../arch/cortex_m4/gcc_startup_nrf52_split.s| 166 ++
 hw/bsp/ruuvi_tag_revb2/src/hal_bsp.c| 303 +++
 hw/bsp/ruuvi_tag_revb2/src/sbrk.c   |  59 
 hw/bsp/ruuvi_tag_revb2/syscfg.yml   |  95 ++
 18 files changed, 1785 insertions(+)
--




[14/30] incubator-mynewt-core git commit: net/ip/lwip_base; update to LwIP to tag STABLE-2_0_2_RELEASE

2017-04-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f52033e9/net/ip/lwip_base/test/unit/mdns/test_mdns.c
--
diff --git a/net/ip/lwip_base/test/unit/mdns/test_mdns.c 
b/net/ip/lwip_base/test/unit/mdns/test_mdns.c
index 9cff0fd..ca9be64 100644
--- a/net/ip/lwip_base/test/unit/mdns/test_mdns.c
+++ b/net/ip/lwip_base/test/unit/mdns/test_mdns.c
@@ -26,10 +26,7 @@
  *
  * This file is part of the lwIP TCP/IP stack.
  *
- * Author: Erik Ekman 
- *
- * Please coordinate changes and requests with Erik Ekman
- * 
+ * Author: Erik Ekman 
  *
  */
 
@@ -45,6 +42,7 @@ START_TEST(readname_basic)
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -63,6 +61,7 @@ START_TEST(readname_anydata)
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -81,6 +80,7 @@ START_TEST(readname_short_buf)
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -92,18 +92,20 @@ START_TEST(readname_short_buf)
 END_TEST
 
 START_TEST(readname_long_label)
-{  static const u8_t data[] = {
+{
+  static const u8_t data[] = {
   0x05, 'm', 'u', 'l', 't', 'i',
   0x52, 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 
'a',
   'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 
'a',
   'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 
'a',
   'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 
'a',
   'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 
'a',
-  'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 0x00,
+  'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 0x00
   };
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -154,11 +156,12 @@ START_TEST(readname_overflow)
   0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't',
   0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't',
   0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't',
-  0x00,
+  0x00
   };
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -175,14 +178,15 @@ START_TEST(readname_jump_earlier)
   /* Some padding needed, not supported to jump to bytes containing dns 
header */
   /*  0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   /* 10 */ 0x0f, 0x0e, 0x05, 'l', 'o', 'c', 'a', 'l', 0x00, 0xab,
-  /* 20 */ 0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't', 0xc0, 
0x0c,
+  /* 20 */ 0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't', 0xc0, 
0x0c
   };
   static const u8_t fullname[] = {
-  0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't', 0x05, 'l', 'o', 
'c', 'a', 'l', 0x00,
+  0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't', 0x05, 'l', 'o', 
'c', 'a', 'l', 0x00
   };
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -203,14 +207,15 @@ START_TEST(readname_jump_earlier_jump)
   /* 0x00 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   /* 0x08 */ 0x00, 0x00, 0x00, 0x00, 0x03, 0x0b, 0x0a, 0xf2,
   /* 0x10 */ 0x04, 'c', 'a', 's', 't', 0x00, 0xc0, 0x10,
-  /* 0x18 */ 0x05, 'm', 'u', 'l', 't', 'i', 0xc0, 0x16,
+  /* 0x18 */ 0x05, 'm', 'u', 'l', 't', 'i', 0xc0, 0x16
   };
   static const u8_t fullname[] = {
-  0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't', 0x00,
+  0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't', 0x00
   };
   struct pbuf *p;
   struct mdns_domain domain;
   u16_t offset;
+  LWIP_UNUSED_ARG(_i);
 
   p = pbuf_alloc(PBUF_RAW, sizeof(data), PBUF_ROM);
   p->payload = (void *)(size_t)data;
@@ -234,16 +239,17 @@ START_TEST(readname_jump_maxdepth)
   /* 0x18 */ 0x03, 'd', 'n', 's', 0xc0, 0x10, 0xc0, 0x10,
   /* 0x20 */ 0x04, 'd', 'e', 'e', 'p', 0xc0, 0x18, 0x00,
   /* 0x28 */ 0x04, 'c', 'a', 's', 't', 0xc0, 0x20, 0xb0,
-  /* 0x30 */ 0x05, 'm', 'u', 'l', 't', 'i', 0xc0, 0x28,
+  /* 0x30 */ 0x05, 'm', 'u', 'l', 't', 'i', 0xc0, 0x28
   };
   static const u8_t fullname[] = {
   0x05, 'm', 'u', 'l', 't', 'i', 0x04, 'c', 'a', 's', 't',
   0x04, 'd', 'e', 'e', 'p', 0x03, 'd', 'n', 's',
-  0x04, 'n', 'a', 'm', 'e', 0x00,
+  0x04, 'n', 'a', 'm', 'e', 0x00
   

[10/30] incubator-mynewt-core git commit: olimex_stm32-e407; add syscfg option to enable ethernet.

2017-04-19 Thread aditi
olimex_stm32-e407; add syscfg option to enable ethernet.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/c9afda6e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c9afda6e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c9afda6e

Branch: refs/heads/master
Commit: c9afda6eacafbe2ff004e93d72bdb5e9a2664755
Parents: c5f8cf6
Author: Marko Kiiskila 
Authored: Fri Apr 14 10:43:49 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 .../include/bsp/stm32f4xx_hal_conf.h|  1 +
 hw/bsp/olimex_stm32-e407_devboard/pkg.yml   |  4 +-
 hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c | 41 +++-
 hw/bsp/olimex_stm32-e407_devboard/syscfg.yml|  4 ++
 4 files changed, 46 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c9afda6e/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
--
diff --git a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h 
b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
index fb65323..b2b7717 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
+++ b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/stm32f4xx_hal_conf.h
@@ -95,6 +95,7 @@
 #define HAL_FLASH_MODULE_ENABLED
 #define HAL_GPIO_MODULE_ENABLED
 #define HAL_I2C_MODULE_ENABLED
+#define HAL_ETH_MODULE_ENABLED
 #define HAL_IWDG_MODULE_ENABLED
 #define HAL_PWR_MODULE_ENABLED
 #define HAL_RCC_MODULE_ENABLED

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c9afda6e/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
--
diff --git a/hw/bsp/olimex_stm32-e407_devboard/pkg.yml 
b/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
index 7aefaab..f4e6020 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
+++ b/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
@@ -48,5 +48,5 @@ pkg.deps.ADC_3:
 pkg.deps.UART_0:
 - hw/drivers/uart/uart_hal
 
-pkg.deps.UART_1:
-- hw/drivers/uart/uart_bitbang
+pkg.deps.ETH_0:
+- hw/drivers/lwip/stm32_eth

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c9afda6e/hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c
--
diff --git a/hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c 
b/hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c
index d0bcc39..8d9daf7 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c
+++ b/hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c
@@ -41,6 +41,10 @@
 #if MYNEWT_VAL(SPI_0_MASTER) || MYNEWT_VAL(SPI_0_SLAVE)
 #include "hal/hal_spi.h"
 #endif
+#if MYNEWT_VAL(ETH_0)
+#include "stm32_eth/stm32_eth.h"
+#include "stm32_eth/stm32_eth_cfg.h"
+#endif
 #include "mcu/stm32f4_bsp.h"
 #include "mcu/stm32f4xx_mynewt_hal.h"
 
@@ -48,8 +52,6 @@
 struct uart_dev hal_uart0;
 #endif
 
-/* XXX should not be here */
-
 #if MYNEWT_VAL(ADC_1)
 struct adc_dev my_dev_adc1;
 #endif
@@ -286,6 +288,36 @@ static const struct stm32f4_uart_cfg uart_cfg0 = {
 .suc_irqn = USART6_IRQn
 };
 #endif
+#if MYNEWT_VAL(ETH_0)
+static const struct stm32_eth_cfg eth_cfg = {
+/*
+ * PORTA
+ *   PA1 - ETH_RMII_REF_CLK
+ *   PA2 - ETH_RMII_MDIO
+ *   PA3 - ETH_RMII_MDINT  (GPIO irq?)
+ *   PA7 - ETH_RMII_CRS_DV
+ */
+.sec_port_mask[0] = (1 << 1) | (1 << 2) | (1 << 7),
+
+/*
+ * PORTC
+ *   PC1 - ETH_RMII_MDC
+ *   PC4 - ETH_RMII_RXD0
+ *   PC5 - ETH_RMII_RXD1
+ */
+.sec_port_mask[2] = (1 << 1) | (1 << 4) | (1 << 5),
+
+/*
+ * PORTG
+ *   PG11 - ETH_RMII_TXEN
+ *   PG13 - ETH_RMII_TXD0
+ *   PG14 - ETH_RMII_TXD1
+ */
+.sec_port_mask[6] = (1 << 11) | (1 << 13) | (1 << 14),
+.sec_phy_type = SMSC_8710_RMII,
+.sec_phy_irq = MCU_GPIO_PORTA(3)
+};
+#endif
 static const struct hal_bsp_mem_dump dump_cfg[] = {
 [0] = {
 .hbmd_start = &_ram_start,
@@ -387,4 +419,9 @@ hal_bsp_init(void)
 #if MYNEWT_VAL(TIMER_0)
 hal_timer_init(0, TIM9);
 #endif
+
+#if MYNEWT_VAL(ETH_0)
+rc = stm32_eth_init(_cfg);
+assert(rc == 0);
+#endif
 }

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c9afda6e/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
--
diff --git a/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml 
b/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
index 7b2fe59..4e49b0c 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
+++ b/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
@@ -52,6 +52,10 @@ syscfg.defs:
 description: 

[11/30] incubator-mynewt-core git commit: inet_def_service; fix race when connection is closing.

2017-04-19 Thread aditi
inet_def_service; fix race when connection is closing.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/e120cfc3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e120cfc3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e120cfc3

Branch: refs/heads/master
Commit: e120cfc316d7181fdd24e0b7d9da95ad7bf8a7cd
Parents: 73a3202
Author: Marko Kiiskila 
Authored: Fri Apr 14 12:46:33 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/inet_def_service/src/inet_def_service.c | 110 ++--
 1 file changed, 6 insertions(+), 104 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e120cfc3/net/ip/inet_def_service/src/inet_def_service.c
--
diff --git a/net/ip/inet_def_service/src/inet_def_service.c 
b/net/ip/inet_def_service/src/inet_def_service.c
index 3bbe59e..ff688da 100644
--- a/net/ip/inet_def_service/src/inet_def_service.c
+++ b/net/ip/inet_def_service/src/inet_def_service.c
@@ -106,7 +106,7 @@ inet_def_tcp_readable(void *arg, int err)
 {
 struct inet_def_tcp *idt = (struct inet_def_tcp *)arg;
 
-if (err) {
+if (err && !idt->closed) {
 idt->closed = 1;
 /*
  * No locking here. Assuming new connection notifications, as well as
@@ -241,7 +241,11 @@ inet_def_event(struct os_event *ev)
 case INET_DEF_ECHO:
 while (mn_recvfrom(sock, , (struct mn_sockaddr *)) == 0) {
 console_printf("echo %d bytes\n", OS_MBUF_PKTLEN(m));
-rc = mn_sendto(sock, m, (struct mn_sockaddr *));
+if ((int)ev->ev_arg == MN_SOCK_DGRAM) {
+rc = mn_sendto(sock, m, (struct mn_sockaddr *));
+} else {
+rc = mn_sendto(sock, m, NULL);
+}
 if (rc) {
 console_printf("  failed: %d\n", rc);
 os_mbuf_free_chain(m);
@@ -308,108 +312,6 @@ inet_def_event(struct os_event *ev)
 }
 }
 
-#if 0
-static void
-inet_def_srv(void *arg)
-{
-struct inet_def_udp *idu;
-struct inet_def_tcp *idt;
-struct mn_socket *sock;
-struct os_event *ev;
-struct mn_sockaddr_in msin;
-struct os_mbuf *m;
-enum inet_def_type type;
-int rc;
-int off;
-int loop_cnt;
-
-while (1) {
-/*
- * Wait here. When event comes, check what type of socket got it,
- * and then act on it.
- */
-ev = os_eventq_get(inet_def_evq);
-type = ev->ev_type;
-idt = (struct inet_def_tcp *)ev;
-idu = (struct inet_def_udp *)ev;
-if ((int)ev->ev_arg == MN_SOCK_DGRAM) {
-sock = idu->socket;
-} else {
-sock = idt->socket;
-}
-switch (type) {
-case INET_DEF_ECHO:
-while (mn_recvfrom(sock, , (struct mn_sockaddr *)) == 0) {
-console_printf("echo %d bytes\n", OS_MBUF_PKTLEN(m));
-rc = mn_sendto(sock, m, (struct mn_sockaddr *));
-if (rc) {
-console_printf("  failed: %d\n", rc);
-os_mbuf_free_chain(m);
-}
-}
-break;
-case INET_DEF_DISCARD:
-while (mn_recvfrom(sock, , NULL) == 0) {
-console_printf("discard %d bytes\n", OS_MBUF_PKTLEN(m));
-os_mbuf_free_chain(m);
-}
-break;
-case INET_DEF_CHARGEN:
-while (mn_recvfrom(sock, , NULL) == 0) {
-os_mbuf_free_chain(m);
-}
-if ((int)ev->ev_arg == MN_SOCK_STREAM && idt->closed) {
-/*
- * Don't try to send tons of data to a closed socket.
- */
-break;
-}
-loop_cnt = 0;
-do {
-m = os_msys_get(CHARGEN_WRITE_SZ, 0);
-if (m) {
-for (off = 0;
- OS_MBUF_TRAILINGSPACE(m) >= CHARGEN_PATTERN_SZ;
- off += CHARGEN_PATTERN_SZ) {
-os_mbuf_copyinto(m, off, chargen_pattern,
-  CHARGEN_PATTERN_SZ);
-}
-console_printf("chargen %d bytes\n", m->om_len);
-rc = mn_sendto(sock, m, NULL); /* assumes TCP for now */
-if (rc) {
-os_mbuf_free_chain(m);
-if (rc != MN_ENOBUFS && rc != MN_EAGAIN) {
-console_write("  sendto fail!!! %d\n", rc);
-}
-break;
-}
-

[02/30] incubator-mynewt-core git commit: net/ip; add locking, and other bug fixes.

2017-04-19 Thread aditi
net/ip; add locking, and other bug fixes.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/c700fc74
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c700fc74
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c700fc74

Branch: refs/heads/master
Commit: c700fc74b966dccff481039c7fd7f617915de779
Parents: 66ae3df
Author: Marko Kiiskila 
Authored: Fri Apr 14 12:52:29 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 net/ip/src/lwip_if.c |  17 +++---
 net/ip/src/lwip_socket.c | 121 +++---
 2 files changed, 89 insertions(+), 49 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c700fc74/net/ip/src/lwip_if.c
--
diff --git a/net/ip/src/lwip_if.c b/net/ip/src/lwip_if.c
index 1b4c427..41d6b2e 100644
--- a/net/ip/src/lwip_if.c
+++ b/net/ip/src/lwip_if.c
@@ -36,19 +36,18 @@ lwip_if_flags(uint8_t if_flags)
 
 flags = 0;
 
-if ((if_flags & (NETIF_FLAG_UP | NETIF_FLAG_LINK_UP)) ==
-  (NETIF_FLAG_UP | NETIF_FLAG_LINK_UP)) {
+if (if_flags & NETIF_FLAG_UP) {
 flags |= MN_ITF_F_UP;
 }
+if (if_flags & NETIF_FLAG_LINK_UP) {
+flags |= MN_ITF_F_LINK;
+}
 if (if_flags & (NETIF_FLAG_IGMP | NETIF_FLAG_MLD6)) {
 flags |= MN_ITF_F_MULTICAST;
 }
 return flags;
 }
 
-/*
- * XXX locking
- */
 int
 lwip_itf_getnext(struct mn_itf *mi)
 {
@@ -64,6 +63,7 @@ lwip_itf_getnext(struct mn_itf *mi)
 mi->mif_idx = UCHAR_MAX;
 
 rc = MN_ENOBUFS;
+LOCK_TCPIP_CORE();
 for (nif = netif_list; nif; nif = nif->next) {
 cur_idx = nif->num;
 if (cur_idx <= prev_idx || cur_idx >= mi->mif_idx) {
@@ -76,6 +76,7 @@ lwip_itf_getnext(struct mn_itf *mi)
 mi->mif_flags = lwip_if_flags(nif->flags);
 rc = 0;
 }
+UNLOCK_TCPIP_CORE();
 return rc;
 }
 
@@ -109,8 +110,10 @@ lwip_itf_addr_getnext(struct mn_itf *mi, struct 
mn_itf_addr *mia)
 int copy_next = 0;
 #endif
 
+LOCK_TCPIP_CORE();
 nif = netif_find(mi->mif_name);
 if (!nif) {
+UNLOCK_TCPIP_CORE();
 return MN_EINVAL;
 }
 
@@ -122,6 +125,7 @@ lwip_itf_addr_getnext(struct mn_itf *mi, struct mn_itf_addr 
*mia)
   sizeof(struct mn_in_addr));
 mia->mifa_plen = plen(ip_2_ip4(>netmask),
   sizeof(struct mn_in_addr));
+UNLOCK_TCPIP_CORE();
 return 0;
 }
 #endif
@@ -139,6 +143,7 @@ lwip_itf_addr_getnext(struct mn_itf *mi, struct mn_itf_addr 
*mia)
 memcpy(>mifa_addr, netif_ip6_addr(nif, i),
   sizeof(struct mn_in6_addr));
 mia->mifa_plen = 64;
+UNLOCK_TCPIP_CORE();
 return 0;
 }
 if (!memcmp(>mifa_addr, netif_ip6_addr(nif, i),
@@ -147,6 +152,6 @@ lwip_itf_addr_getnext(struct mn_itf *mi, struct mn_itf_addr 
*mia)
 }
 }
 #endif
+UNLOCK_TCPIP_CORE();
 return -1;
 }
-

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c700fc74/net/ip/src/lwip_socket.c
--
diff --git a/net/ip/src/lwip_socket.c b/net/ip/src/lwip_socket.c
index ddf7be7..1a57392 100644
--- a/net/ip/src/lwip_socket.c
+++ b/net/ip/src/lwip_socket.c
@@ -24,6 +24,7 @@
 #include 
 #include 
 
+#include 
 #include 
 #include 
 #include "ip_priv.h"
@@ -63,7 +64,7 @@ static const struct mn_socket_ops lwip_sock_ops = {
 .mso_getpeername = lwip_getpeername,
 
 .mso_itf_getnext = lwip_itf_getnext,
-.mso_itf_addr_getnext = lwip_itf_addr_getnext
+.mso_itf_addr_getnext = lwip_itf_addr_getnext,
 };
 
 struct lwip_sock {
@@ -93,7 +94,7 @@ lwip_mn_addr_to_addr(struct mn_sockaddr *ms, ip_addr_t *addr, 
uint16_t *port)
 case MN_AF_INET:
 msin = (struct mn_sockaddr_in *)ms;
 IP_SET_TYPE_VAL(*addr, IPADDR_TYPE_V4);
-*port = msin->msin_port;
+*port = ntohs(msin->msin_port);
 memcpy(ip_2_ip4(addr), >msin_addr, sizeof(struct mn_in_addr));
 return 0;
 #endif
@@ -101,7 +102,7 @@ lwip_mn_addr_to_addr(struct mn_sockaddr *ms, ip_addr_t 
*addr, uint16_t *port)
 case MN_AF_INET6:
 msin6 =  (struct mn_sockaddr_in6 *)ms;
 IP_SET_TYPE_VAL(*addr, IPADDR_TYPE_V6);
-*port = msin6->msin6_port;
+*port = ntohs(msin6->msin6_port);
 memcpy(ip_2_ip6(addr), >msin6_addr, sizeof(struct mn_in6_addr));
 return 0;
 #endif
@@ -122,9 +123,7 @@ lwip_addr_to_mn_addr(struct mn_sockaddr *ms, const 
ip_addr_t *addr,
 } else {
 ms->msa_family = MN_AF_INET6;
 }
-#if !LWIP_IPV4
-ms->msa_family = 

[06/30] incubator-mynewt-core git commit: stm32f4xx/stm32f7xx; add syscfg indicating which version of STM32 is being used.

2017-04-19 Thread aditi
stm32f4xx/stm32f7xx; add syscfg indicating which version of STM32
is being used.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/8d8cf59c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8d8cf59c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8d8cf59c

Branch: refs/heads/master
Commit: 8d8cf59ca47d4fdf37dbbef99428c0b25c5893d1
Parents: 383906f
Author: Marko Kiiskila 
Authored: Fri Apr 14 10:45:22 2017 -0700
Committer: Marko Kiiskila 
Committed: Fri Apr 14 13:21:30 2017 -0700

--
 hw/mcu/stm/stm32f4xx/syscfg.yml | 4 
 hw/mcu/stm/stm32f7xx/syscfg.yml | 4 
 2 files changed, 8 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8d8cf59c/hw/mcu/stm/stm32f4xx/syscfg.yml
--
diff --git a/hw/mcu/stm/stm32f4xx/syscfg.yml b/hw/mcu/stm/stm32f4xx/syscfg.yml
index d0c40be..42bb13a 100644
--- a/hw/mcu/stm/stm32f4xx/syscfg.yml
+++ b/hw/mcu/stm/stm32f4xx/syscfg.yml
@@ -24,3 +24,7 @@ syscfg.defs:
 Specifies the required alignment for internal flash writes.
 Used internally by the newt tool.
 value: 1
+
+MCU_STM32F4:
+description: MCUs are of STM32F4xx family
+value: 1

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8d8cf59c/hw/mcu/stm/stm32f7xx/syscfg.yml
--
diff --git a/hw/mcu/stm/stm32f7xx/syscfg.yml b/hw/mcu/stm/stm32f7xx/syscfg.yml
index d2cb541..cf82e27 100644
--- a/hw/mcu/stm/stm32f7xx/syscfg.yml
+++ b/hw/mcu/stm/stm32f7xx/syscfg.yml
@@ -22,3 +22,7 @@ syscfg.defs:
 Specifies the required alignment for internal flash writes.
 Used internally by the newt tool.
 value: 1
+
+MCU_STM32F7:
+description: MCUs are of STM32F7xx family
+value: 1



[26/30] incubator-mynewt-core git commit: net/ip; add sys/shell as conditional dependency.

2017-04-19 Thread aditi
net/ip; add sys/shell as conditional dependency.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/ed273edb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/ed273edb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/ed273edb

Branch: refs/heads/master
Commit: ed273edbe3e3f79b93170dccd12a16ad35cb6030
Parents: 39ad85d
Author: Marko Kiiskila 
Authored: Mon Apr 17 15:01:02 2017 -0700
Committer: Marko Kiiskila 
Committed: Mon Apr 17 15:01:02 2017 -0700

--
 net/ip/pkg.yml | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ed273edb/net/ip/pkg.yml
--
diff --git a/net/ip/pkg.yml b/net/ip/pkg.yml
index 0f657f1..8fb6af6 100644
--- a/net/ip/pkg.yml
+++ b/net/ip/pkg.yml
@@ -32,5 +32,8 @@ pkg.deps:
 - net/ip/lwip_base
 - net/ip/mn_socket
 
+pkg.deps.LWIP_CLI:
+- sys/shell
+
 pkg.init:
 ip_init: 200



[27/30] incubator-mynewt-core git commit: native_sockets; fill in LINK flag when querying interfaces in sim.

2017-04-19 Thread aditi
native_sockets; fill in LINK flag when querying interfaces in sim.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/bcba6bd9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/bcba6bd9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/bcba6bd9

Branch: refs/heads/master
Commit: bcba6bd9d35bcd9f8caf2baa3ec5b365097916dc
Parents: ed273ed
Author: Marko Kiiskila 
Authored: Mon Apr 17 15:25:48 2017 -0700
Committer: Marko Kiiskila 
Committed: Mon Apr 17 15:25:48 2017 -0700

--
 net/ip/native_sockets/src/native_itf.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/bcba6bd9/net/ip/native_sockets/src/native_itf.c
--
diff --git a/net/ip/native_sockets/src/native_itf.c 
b/net/ip/native_sockets/src/native_itf.c
index 6c186ca..2d491b0 100644
--- a/net/ip/native_sockets/src/native_itf.c
+++ b/net/ip/native_sockets/src/native_itf.c
@@ -34,9 +34,12 @@ itf_flags(int if_flags)
 
 flags = 0;
 
-if ((if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING)) {
+if (if_flags & IFF_UP) {
 flags |= MN_ITF_F_UP;
 }
+if (if_flags & IFF_RUNNING) {
+flags |= MN_ITF_F_LINK;
+}
 if (if_flags & IFF_MULTICAST) {
 flags |= MN_ITF_F_MULTICAST;
 }



[24/30] incubator-mynewt-core git commit: net/ip; allow multicast join/leave via socket interface.

2017-04-19 Thread aditi
net/ip; allow multicast join/leave via socket interface.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/f92e6ab0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f92e6ab0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f92e6ab0

Branch: refs/heads/master
Commit: f92e6ab09ce4c52ca6ce11ee81a36aed0b381984
Parents: 54c29c6
Author: Marko Kiiskila 
Authored: Mon Apr 17 14:11:26 2017 -0700
Committer: Marko Kiiskila 
Committed: Mon Apr 17 14:11:26 2017 -0700

--
 net/ip/src/lwip_socket.c | 58 +--
 1 file changed, 56 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f92e6ab0/net/ip/src/lwip_socket.c
--
diff --git a/net/ip/src/lwip_socket.c b/net/ip/src/lwip_socket.c
index 1a57392..b000e3b 100644
--- a/net/ip/src/lwip_socket.c
+++ b/net/ip/src/lwip_socket.c
@@ -27,6 +27,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 #include "ip_priv.h"
 
 static int lwip_sock_create(struct mn_socket **sp, uint8_t domain,
@@ -607,10 +609,62 @@ lwip_getsockopt(struct mn_socket *s, uint8_t level,
 return MN_EPROTONOSUPPORT;
 }
 
+static struct netif *
+lwip_nif_from_idx(int idx)
+{
+struct netif *nif;
+
+for (nif = netif_list; nif; nif = nif->next) {
+if (idx == nif->num) {
+return nif;
+}
+}
+return NULL;
+}
+
 static int
-lwip_setsockopt(struct mn_socket *s, uint8_t level,
-  uint8_t name, void *val)
+lwip_setsockopt(struct mn_socket *ms, uint8_t level, uint8_t name, void *val)
 {
+struct netif *nif;
+struct mn_mreq *mreq;
+int rc = MN_EPROTONOSUPPORT;
+
+if (level == MN_SO_LEVEL) {
+switch (name) {
+case MN_MCAST_JOIN_GROUP:
+case MN_MCAST_LEAVE_GROUP:
+mreq = (struct mn_mreq *)val;
+
+LOCK_TCPIP_CORE();
+nif = lwip_nif_from_idx(mreq->mm_idx);
+if (mreq->mm_family == MN_AF_INET) {
+#if LWIP_IGMP
+if (name == MN_MCAST_JOIN_GROUP) {
+rc = igmp_joingroup_netif(nif,
+  (ip4_addr_t *)>mm_addr);
+} else {
+rc = igmp_leavegroup_netif(nif,
+  (ip4_addr_t *)>mm_addr);
+}
+#endif
+} else if (mreq->mm_family == MN_AF_INET6) {
+#if LWIP_IPV6_MLD && LWIP_IPV6
+if (name == MN_MCAST_JOIN_GROUP) {
+rc = mld6_joingroup_netif(nif,
+  (ip6_addr_t *)>mm_addr);
+} else {
+rc = mld6_leavegroup_netif(nif,
+  (ip6_addr_t *)>mm_addr);
+}
+#endif
+}
+UNLOCK_TCPIP_CORE();
+return lwip_err_to_mn_err(rc);
+case MN_MCAST_IF:
+default:
+break;
+}
+}
 return MN_EPROTONOSUPPORT;
 }
 



  1   2   3   4   5   6   7   8   9   10   >