svn commit: r12762 - in /dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2: apache-blinky-0.8.0-incubating-b2.tgz apache-blinky-0.8.0-incubating-b2.tgz.asc apache-blinky-0.8.0-incubating-b2.tgz.s

2016-03-19 Thread ccollins
Author: ccollins
Date: Thu Mar 17 06:36:28 2016
New Revision: 12762

Log:
Updated 0.8.0-b2 blinky with corrected README.

Modified:

dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz

dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.asc

dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.sha

Modified: 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz
==
Binary files - no diff available.

Modified: 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.asc
==
--- 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.asc
 (original)
+++ 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.asc
 Thu Mar 17 06:36:28 2016
@@ -1,17 +1,17 @@
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2
 
-iQIcBAABCAAGBQJW6keQAAoJEHcQQPRhBHcBB1QP/RpC1OxTRwiKGBN2RNSIzq4d
-uLyKaB3OYlkGJdUWJvrQxl8SCs126dg0Mu799p9kpR3tWUBES2VpKI31onBc06R+
-O1mYNkywpZE/nOK5ovrosVd88y3iZNVN+p3hw8eL6aVyvO+nu9E/vh7pimMaW9oR
-K03HncZJ3oI7v5Ne4R0tTWEHKAXATOR2F4o5ITzohlWp6GZHce5KNNFhcz1IDm9V
-yRr7wEOiits3ih3ThDvfIkcoKQKHZdte7Ik6cMY5460KACQLt7Xm8n5NxVkaj0L8
-alywjqVn+LFk67ePCJ25kaXqqEq0Qi8MYHl1B7pnyy3OeKpHEh/YCtB7v7c1I+1F
-8MuiwVKE9uuDlW9z/cxWs0kjA2ML5LcXhgYMOxc1RMrAmjw1O/tvtJaxDetEhN9J
-eOCmWinvkWl3UbbNcK3utonM1NIFtRBz9sWUpDrpsELj7f+os8nik3I6WDPE0XxN
-vPTKS/bQrDanET/iCf6AUO4hu3QqnZszwNINSJqU2k/pikUZEqo5Ct0k9r6yPggY
-Y0Gqbho7t8x6QUUhq2Tg/JsDETPrY5S8VvfVovU1Xu0g/Z2U+WrUtFAioekQHBMH
-3JorP2NfKozMEWpvNsYDMqZSlRNuW2xvPQf/n6hcwulEvrvGm0AuS6sXodEnXGHk
-FGSNt/wTLN4fHXgY44M8
-=OX3V
+iQIcBAABCAAGBQJW6lAiAAoJEHcQQPRhBHcBh4EP/1MFBslYWfLigmXsgctGuHXd
+klKy6q21u+SdS92pW1rPXQfeXwuBUttVJqJnyrtJ4kRDFoaCL86te+J1LgpZt9BG
+9OVhzrMGLH1zF3dhkUUXsBRZ4Z+KLll7Qeb3ql72Vo8ZhRZ5iOBaORTc7UjtA+dy
+eO7uSMuz+fGpKB1KuJMNt8of7z2cCRao4NwErNa/s7e8ybLLWbL6Zra9XDxILMaI
+n5LPgEkcRCupqiXFK1pOWTswMpjQt2uGVLK4edc3uShkWyK4nMzpJD3PrPopDwuZ
+2j0hHRxfbn8XosLMkbi3WzeDSBKLWvhmjBjDaIqI45lPphj/IKdSd6qdzJBLFIe9
+p741A7e6QszNANmTfujmMqxergTNMcP+0wJ9QLGQkWFLbSYmDmouZe37WoDt5ARa
+DnF8pwp+eOEg+f3/PGMrh92AyOgdAGOn8/LfqnCHNGYTHEN8Bxa7CKhJWm1esl5h
+Fmwz6hBGTBsIIZ60ry3iwUJcw2QMi+PszeUJvl7w+4lmRK34mHjKJdEm6le8hBjI
+7SdjvRByyZDgV7PIUa2pm0rwkqex0V3PmmdyI2B/3v9603zkOiYSpJ1VrOROK0H3
+YIzB8k0sB+VyJSUnAnmTrxfGV7ScMynWQ6Kdih+tIxgAiBXOfJu6uURCVWJofOs4
+XRPCOrSAdVfJRmsdbCyZ
+=WwO/
 -END PGP SIGNATURE-

Modified: 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.sha
==
--- 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.sha
 (original)
+++ 
dev/incubator/mynewt/apache-mynewt-0.8.0-incubating-b2/apache-blinky-0.8.0-incubating-b2.tgz.sha
 Thu Mar 17 06:36:28 2016
@@ -1,4 +1,4 @@
-apache-blinky-0.8.0-incubating-b2.tgz: E4F27EEA F9905DB0 AB1037F2 C1DECB01
-   677D1F5E 0FA8CDCC 61F882F5 6C27F16D
-   48112BA6 BE1D6794 34A2E018 32D958DD
-   9842225D 5801F202 E3618879 500D343F
+apache-blinky-0.8.0-incubating-b2.tgz: D42F7F3A 42015460 20E1FE64 ED100666
+   791B3177 58EF239E E018C65B 9347A949
+   EC43D52C E3580A6C F50E882B 0AA275DA
+   0C2A5220 ADF31A1F 2CBB5B0C 1E6C97F1




[1/5] incubator-mynewt-core git commit: minor revision to be more consistent with test macros

2016-03-19 Thread ccollins
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 44e560f98 -> 18477e345


minor revision to be more consistent with test macros


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

Branch: refs/heads/develop
Commit: 04dbf5c50faf71bb91b25f96fbd7d0b9f46718d6
Parents: 655b79e
Author: Paul Dietrich 
Authored: Fri Mar 11 12:27:48 2016 -0800
Committer: Paul Dietrich 
Committed: Fri Mar 11 13:07:20 2016 -0800

--
 libs/json/src/test/test_json.h| 4 ++--
 libs/json/src/test/test_json_simple.c | 6 +++---
 libs/testutil/include/testutil/testutil.h | 4 
 3 files changed, 9 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/04dbf5c5/libs/json/src/test/test_json.h
--
diff --git a/libs/json/src/test/test_json.h b/libs/json/src/test/test_json.h
index 8466213..ea5efcf 100644
--- a/libs/json/src/test/test_json.h
+++ b/libs/json/src/test/test_json.h
@@ -20,8 +20,8 @@
 #ifndef TEST_JSON_H
 #define TEST_JSON_H
 
-void test_json_simple_encode(void);
-void test_json_simple_decode(void);
+TEST_CASE_DECL(test_json_simple_encode);
+TEST_CASE_DECL(test_json_simple_decode);
 
 #endif /* TEST_JSON_H */
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/04dbf5c5/libs/json/src/test/test_json_simple.c
--
diff --git a/libs/json/src/test/test_json_simple.c 
b/libs/json/src/test/test_json_simple.c
index e7046bd..ab2d005 100644
--- a/libs/json/src/test/test_json_simple.c
+++ b/libs/json/src/test/test_json_simple.c
@@ -17,10 +17,10 @@
  * under the License.
  */
 
-#include "test_json.h"
 #include 
 #include 
 #include "testutil/testutil.h"
+#include "test_json.h"
 #include "json/json.h"
 
 static char *output = "{\"KeyBool\": true,\"KeyInt\": -1234,\"KeyUint\": 
1353214,\"KeyString\": \"foobar\",\"KeyStringN\": \"foobarlong\"}";
@@ -35,7 +35,7 @@ static int test_write(void *buf, char* data, int len) {
 return len;
 }
 
-void test_json_simple_encode(void) {
+TEST_CASE(test_json_simple_encode){
 struct json_encoder encoder;
 struct json_value value;
 int rc;
@@ -145,7 +145,7 @@ test_buf_init(struct test_jbuf *ptjb, char *string) {
 }
 
 /* now test the decode on a string */
-void test_json_simple_decode(void) {
+TEST_CASE(test_json_simple_decode){
 struct test_jbuf tjb; 
 unsigned int uint_val;
 int int_val;

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/04dbf5c5/libs/testutil/include/testutil/testutil.h
--
diff --git a/libs/testutil/include/testutil/testutil.h 
b/libs/testutil/include/testutil/testutil.h
index 2868cdd..2c8000a 100644
--- a/libs/testutil/include/testutil/testutil.h
+++ b/libs/testutil/include/testutil/testutil.h
@@ -98,6 +98,10 @@ extern jmp_buf tu_case_jb;
 static void   \
 TEST_SUITE_##suite_name(void)
 
+/* for creating multiple files with test cases all belonging to the same
+ * suite */
+#define TEST_CASE_DECL(case_name)  int case_name(void);
+
 #define TEST_CASE(case_name)  \
 static void TEST_CASE_##case_name(void);  \
   \



[19/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go
new file mode 100644
index 000..2a329f0
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go
@@ -0,0 +1,1530 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,dragonfly
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ATM= 0x1e
+   AF_BLUETOOTH  = 0x21
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x23
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1c
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x24
+   AF_MPLS   = 0x22
+   AF_NATM   = 0x1d
+   AF_NETGRAPH   = 0x20
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x18
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc0084279
+   BIOCGETIF = 0x4020426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044272
+   BIOCGRTIMEOUT = 0x4008426e
+   BIOCGSEESENT  = 0x40044276
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCLOCK  = 0x2000427a
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044278
+   BIOCSETF  = 0x80084267
+   BIOCSETIF = 0x8020426c
+   BIOCSETWF = 0x8008427b
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044273
+   BIOCSRTIMEOUT = 0x8008426d
+   BIOCSSEESENT  = 0x80044277
+   BIOCVERSION   = 0x40044271
+   BPF_A = 0x10
+   BPF_ABS   = 0x20
+   BPF_ADD   = 0x0
+   BPF_ALIGNMENT 

[03/10] incubator-mynewt-newt git commit: Replace hashicorp logutils with logrus.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/magiconair/properties/doc.go
--
diff --git a/newt/Godeps/_workspace/src/github.com/magiconair/properties/doc.go 
b/newt/Godeps/_workspace/src/github.com/magiconair/properties/doc.go
deleted file mode 100644
index 1d3fb86..000
--- a/newt/Godeps/_workspace/src/github.com/magiconair/properties/doc.go
+++ /dev/null
@@ -1,156 +0,0 @@
-// Copyright 2015 Frank Schroeder. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package properties provides functions for reading and writing
-// ISO-8859-1 and UTF-8 encoded .properties files and has
-// support for recursive property expansion.
-//
-// Java properties files are ISO-8859-1 encoded and use Unicode
-// literals for characters outside the ISO character set. Unicode
-// literals can be used in UTF-8 encoded properties files but
-// aren't necessary.
-//
-// To load a single properties file use MustLoadFile():
-//
-//   p := properties.MustLoadFile(filename, properties.UTF8)
-//
-// To load multiple properties files use MustLoadFiles()
-// which loads the files in the given order and merges the
-// result. Missing properties files can be ignored if the
-// 'ignoreMissing' flag is set to true.
-//
-// Filenames can contain environment variables which are expanded
-// before loading.
-//
-//   f1 := "/etc/myapp/myapp.conf"
-//   f2 := "/home/${USER}/myapp.conf"
-//   p := MustLoadFiles([]string{f1, f2}, properties.UTF8, true)
-//
-// All of the different key/value delimiters ' ', ':' and '=' are
-// supported as well as the comment characters '!' and '#' and
-// multi-line values.
-//
-//   ! this is a comment
-//   # and so is this
-//
-//   # the following expressions are equal
-//   key value
-//   key=value
-//   key:value
-//   key = value
-//   key : value
-//   key = val\
-// ue
-//
-// Properties stores all comments preceding a key and provides
-// GetComments() and SetComments() methods to retrieve and
-// update them. The convenience functions GetComment() and
-// SetComment() allow access to the last comment. The
-// WriteComment() method writes properties files including
-// the comments and with the keys in the original order.
-// This can be used for sanitizing properties files.
-//
-// Property expansion is recursive and circular references
-// and malformed expressions are not allowed and cause an
-// error. Expansion of environment variables is supported.
-//
-//   # standard property
-//   key = value
-//
-//   # property expansion: key2 = value
-//   key2 = ${key}
-//
-//   # recursive expansion: key3 = value
-//   key3 = ${key2}
-//
-//   # circular reference (error)
-//   key = ${key}
-//
-//   # malformed expression (error)
-//   key = ${ke
-//
-//   # refers to the users' home dir
-//   home = ${HOME}
-//
-//   # local key takes precendence over env var: u = foo
-//   USER = foo
-//   u = ${USER}
-//
-// The default property expansion format is ${key} but can be
-// changed by setting different pre- and postfix values on the
-// Properties object.
-//
-//   p := properties.NewProperties()
-//   p.Prefix = "#["
-//   p.Postfix = "]#"
-//
-// Properties provides convenience functions for getting typed
-// values with default values if the key does not exist or the
-// type conversion failed.
-//
-//   # Returns true if the value is either "1", "on", "yes" or "true"
-//   # Returns false for every other value and the default value if
-//   # the key does not exist.
-//   v = p.GetBool("key", false)
-//
-//   # Returns the value if the key exists and the format conversion
-//   # was successful. Otherwise, the default value is returned.
-//   v = p.GetInt64("key", 999)
-//   v = p.GetUint64("key", 999)
-//   v = p.GetFloat64("key", 123.0)
-//   v = p.GetString("key", "def")
-//   v = p.GetDuration("key", 999)
-//
-// As an alterantive properties may be applied with the standard
-// library's flag implementation at any time.
-//
-//   # Standard configuration
-//   v = flag.Int("key", 999, "help message")
-//   flag.Parse()
-//
-//   # Merge p into the flag set
-//   p.MustFlag(flag.CommandLine)
-//
-// Properties provides several MustXXX() convenience functions
-// which will terminate the app if an error occurs. The behavior
-// of the failure is configurable and the default is to call
-// log.Fatal(err). To have the MustXXX() functions panic instead
-// of logging the error set a different ErrorHandler before
-// you use the Properties package.
-//
-//   properties.ErrorHandler = properties.PanicHandler
-//
-//   # Will panic instead of logging an error
-//   p := properties.MustLoadFile("config.properties")
-//
-// You can also provide your own ErrorHandler function. The only requirement
-// is that the error handler function must exit after handling the error.
-//
-//   

[10/10] incubator-mynewt-newt git commit: Replace hashicorp logutils with logrus.

2016-03-19 Thread ccollins
Replace hashicorp logutils with logrus.


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

Branch: refs/heads/develop
Commit: 4ae9684f23bd31d4d41fecd652e7c3596368d042
Parents: 1ef31a0
Author: Christopher Collins 
Authored: Wed Mar 16 13:39:56 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 13:47:40 2016 -0700

--
 .rat-excludes   |   12 +-
 LICENSE |   19 +-
 newt/Godeps/Godeps.json |   29 +-
 .../src/github.com/BurntSushi/toml/.gitignore   |5 -
 .../src/github.com/BurntSushi/toml/.travis.yml  |   12 -
 .../src/github.com/BurntSushi/toml/COMPATIBLE   |3 -
 .../src/github.com/BurntSushi/toml/COPYING  |   14 -
 .../src/github.com/BurntSushi/toml/Makefile |   19 -
 .../src/github.com/BurntSushi/toml/README.md|  220 
 .../toml/cmd/toml-test-decoder/COPYING  |   14 -
 .../toml/cmd/toml-test-decoder/README.md|   14 -
 .../toml/cmd/toml-test-decoder/main.go  |   90 --
 .../toml/cmd/toml-test-encoder/COPYING  |   14 -
 .../toml/cmd/toml-test-encoder/README.md|   14 -
 .../toml/cmd/toml-test-encoder/main.go  |  131 ---
 .../BurntSushi/toml/cmd/tomlv/COPYING   |   14 -
 .../BurntSushi/toml/cmd/tomlv/README.md |   22 -
 .../BurntSushi/toml/cmd/tomlv/main.go   |   61 -
 .../src/github.com/BurntSushi/toml/decode.go|  505 
 .../github.com/BurntSushi/toml/decode_meta.go   |  122 --
 .../github.com/BurntSushi/toml/decode_test.go   | 1092 --
 .../src/github.com/BurntSushi/toml/doc.go   |   27 -
 .../src/github.com/BurntSushi/toml/encode.go|  549 -
 .../github.com/BurntSushi/toml/encode_test.go   |  590 --
 .../BurntSushi/toml/encoding_types.go   |   19 -
 .../BurntSushi/toml/encoding_types_1.1.go   |   18 -
 .../src/github.com/BurntSushi/toml/lex.go   |  871 --
 .../src/github.com/BurntSushi/toml/parse.go |  493 
 .../src/github.com/BurntSushi/toml/session.vim  |1 -
 .../github.com/BurntSushi/toml/type_check.go|   91 --
 .../github.com/BurntSushi/toml/type_fields.go   |  241 
 .../src/github.com/Sirupsen/logrus/.gitignore   |1 +
 .../src/github.com/Sirupsen/logrus/.travis.yml  |9 +
 .../src/github.com/Sirupsen/logrus/CHANGELOG.md |   59 +
 .../src/github.com/Sirupsen/logrus/LICENSE  |   21 +
 .../src/github.com/Sirupsen/logrus/README.md|  386 +++
 .../src/github.com/Sirupsen/logrus/doc.go   |   26 +
 .../src/github.com/Sirupsen/logrus/entry.go |  264 +
 .../github.com/Sirupsen/logrus/entry_test.go|   77 ++
 .../Sirupsen/logrus/examples/basic/basic.go |   50 +
 .../Sirupsen/logrus/examples/hook/hook.go   |   30 +
 .../src/github.com/Sirupsen/logrus/exported.go  |  193 
 .../src/github.com/Sirupsen/logrus/formatter.go |   48 +
 .../Sirupsen/logrus/formatter_bench_test.go |   98 ++
 .../logrus/formatters/logstash/logstash.go  |   61 +
 .../logrus/formatters/logstash/logstash_test.go |   52 +
 .../src/github.com/Sirupsen/logrus/hook_test.go |  122 ++
 .../src/github.com/Sirupsen/logrus/hooks.go |   34 +
 .../Sirupsen/logrus/hooks/syslog/README.md  |   39 +
 .../Sirupsen/logrus/hooks/syslog/syslog.go  |   54 +
 .../Sirupsen/logrus/hooks/syslog/syslog_test.go |   26 +
 .../Sirupsen/logrus/hooks/test/test.go  |   67 ++
 .../Sirupsen/logrus/hooks/test/test_test.go |   39 +
 .../Sirupsen/logrus/json_formatter.go   |   41 +
 .../Sirupsen/logrus/json_formatter_test.go  |  120 ++
 .../src/github.com/Sirupsen/logrus/logger.go|  212 
 .../src/github.com/Sirupsen/logrus/logrus.go|  109 ++
 .../github.com/Sirupsen/logrus/logrus_test.go   |  344 ++
 .../github.com/Sirupsen/logrus/terminal_bsd.go  |9 +
 .../Sirupsen/logrus/terminal_linux.go   |   12 +
 .../Sirupsen/logrus/terminal_notwindows.go  |   21 +
 .../Sirupsen/logrus/terminal_solaris.go |   15 +
 .../Sirupsen/logrus/terminal_windows.go |   27 +
 .../Sirupsen/logrus/text_formatter.go   |  161 +++
 .../Sirupsen/logrus/text_formatter_test.go  |   61 +
 .../src/github.com/Sirupsen/logrus/writer.go|   31 +
 .../src/github.com/hashicorp/hcl/.gitignore |7 -
 .../src/github.com/hashicorp/hcl/.travis.yml|3 -
 .../src/github.com/hashicorp/hcl/LICENSE|  354 --
 .../src/github.com/hashicorp/hcl/Makefile   |   17 -
 .../src/github.com/hashicorp/hcl/README.md  |  104 --
 .../src/github.com/hashicorp/hcl/decoder.go |  

incubator-mynewt-newt git commit: Fix viper tests after removing hcl/toml/prop

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 4ae9684f2 -> 7e4724c07


Fix viper tests after removing hcl/toml/prop


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

Branch: refs/heads/develop
Commit: 7e4724c076d9f20a4cce8e9588d2fcf1559c4953
Parents: 4ae9684
Author: Christopher Collins 
Authored: Wed Mar 16 14:37:25 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 14:37:25 2016 -0700

--
 viper/viper_test.go | 170 ++-
 1 file changed, 34 insertions(+), 136 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/7e4724c0/viper/viper_test.go
--
diff --git a/viper/viper_test.go b/viper/viper_test.go
index 858caff..c6a29f8 100644
--- a/viper/viper_test.go
+++ b/viper/viper_test.go
@@ -15,7 +15,6 @@ import (
"sort"
"strings"
"testing"
-   "time"
 
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
@@ -45,14 +44,6 @@ type testUnmarshalExtra struct {
Existing bool
 }
 
-var tomlExample = []byte(`
-title = "TOML Example"
-
-[owner]
-organization = "MongoDB"
-Bio = "MongoDB Chief Developer Advocate & Hacker at Large"
-dob = 1979-05-27T07:32:00Z # First class dates? Why not?`)
-
 var jsonExample = []byte(`{
 "id": "0001",
 "type": "donut",
@@ -68,34 +59,6 @@ var jsonExample = []byte(`{
 }
 }`)
 
-var hclExample = []byte(`
-id = "0001"
-type = "donut"
-name = "Cake"
-ppu = 0.55
-foos {
-   foo {
-   key = 1
-   }
-   foo {
-   key = 2
-   }
-   foo {
-   key = 3
-   }
-   foo {
-   key = 4
-   }
-}`)
-
-var propertiesExample = []byte(`
-p_id: 0001
-p_type: donut
-p_name: Cake
-p_ppu: 0.55
-p_batters.batter.type: Regular
-`)
-
 var remoteExample = []byte(`{
 "id":"0002",
 "type":"cronut",
@@ -112,18 +75,6 @@ func initConfigs() {
r = bytes.NewReader(jsonExample)
unmarshalReader(r, v.config)
 
-   SetConfigType("hcl")
-   r = bytes.NewReader(hclExample)
-   unmarshalReader(r, v.config)
-
-   SetConfigType("properties")
-   r = bytes.NewReader(propertiesExample)
-   unmarshalReader(r, v.config)
-
-   SetConfigType("toml")
-   r = bytes.NewReader(tomlExample)
-   unmarshalReader(r, v.config)
-
SetConfigType("json")
remote := bytes.NewReader(remoteExample)
unmarshalReader(remote, v.kvstore)
@@ -145,30 +96,6 @@ func initJSON() {
unmarshalReader(r, v.config)
 }
 
-func initProperties() {
-   Reset()
-   SetConfigType("properties")
-   r := bytes.NewReader(propertiesExample)
-
-   unmarshalReader(r, v.config)
-}
-
-func initTOML() {
-   Reset()
-   SetConfigType("toml")
-   r := bytes.NewReader(tomlExample)
-
-   unmarshalReader(r, v.config)
-}
-
-func initHcl() {
-   Reset()
-   SetConfigType("hcl")
-   r := bytes.NewReader(hclExample)
-
-   unmarshalReader(r, v.config)
-}
-
 // make directories for testing
 func initDirs(t *testing.T) (string, string, func()) {
 
@@ -197,8 +124,8 @@ func initDirs(t *testing.T) (string, string, func()) {
assert.Nil(t, err)
 
err = ioutil.WriteFile(
-   path.Join(dir, config+".toml"),
-   []byte("key = \"value is "+dir+"\"\n"),
+   path.Join(dir, config+".yml"),
+   []byte("key: \"value is "+dir+"\"\n"),
0640)
assert.Nil(t, err)
}
@@ -312,27 +239,6 @@ func TestJSON(t *testing.T) {
assert.Equal(t, "0001", Get("id"))
 }
 
-func TestProperties(t *testing.T) {
-   initProperties()
-   assert.Equal(t, "0001", Get("p_id"))
-}
-
-func TestTOML(t *testing.T) {
-   initTOML()
-   assert.Equal(t, "TOML Example", Get("title"))
-}
-
-func TestHCL(t *testing.T) {
-   initHcl()
-   assert.Equal(t, "0001", Get("id"))
-   assert.Equal(t, 0.55, Get("ppu"))
-   assert.Equal(t, "donut", Get("type"))
-   assert.Equal(t, "Cake", Get("name"))
-   Set("id", "0002")
-   assert.Equal(t, "0002", Get("id"))
-   assert.NotEqual(t, "cronut", Get("type"))
-}
-
 func TestRemotePrecedence(t *testing.T) {
initJSON()
 
@@ -420,9 +326,30 @@ func TestSetEnvReplacer(t *testing.T) {
 func TestAllKeys(t *testing.T) {
initConfigs()
 
-   ks := sort.StringSlice{"title", "newkey", "owner", "name", 

[3/5] incubator-mynewt-core git commit: Remove exact dates from RELEASE_NOTES.

2016-03-19 Thread ccollins
Remove exact dates from RELEASE_NOTES.


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

Branch: refs/heads/master
Commit: 7cc41db7f5ddcdf74c058de92748f35f194fd71e
Parents: 58e4a8d
Author: Christopher Collins 
Authored: Wed Mar 16 19:39:03 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 19:39:03 2016 -0700

--
 RELEASE_NOTES.md | 25 -
 1 file changed, 12 insertions(+), 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7cc41db7/RELEASE_NOTES.md
--
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 5c791db..a721fb9 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,15 +1,15 @@
 # RELEASE NOTES
 
-14 Mar 2016 - Apache Mynewt V0.8 Beta 2 
+16 Mar 2016 - Apache Mynewt V0.8 Beta 2
 
-For full release notes, please visit the 
+For full release notes, please visit the
 [Apache Mynewt 
Wiki](https://cwiki.apache.org/confluence/display/MYNEWT/Release+Notes).
-For information about bugs fixed in beta 2, please view the 
+For information about bugs fixed in beta 2, please view the
 [Issue Tracker 
Summary](https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12319221=12334805)
 
-This is the second source release of Apache Mynewt Core.  For more 
-information on Apache Mynewt, please visit the 
-[Apache Mynewt Website](https://mynewt.apache.org/).  
+This is the second source release of Apache Mynewt Core.  For more
+information on Apache Mynewt, please visit the
+[Apache Mynewt Website](https://mynewt.apache.org/).
 
 As an early beta release of Apache Mynewt, all the normal caveats apply:
 
@@ -17,20 +17,19 @@ As an early beta release of Apache Mynewt, all the normal 
caveats apply:
 
   * There are definitely bugs hiding around many corners
 
-However, we believe this release of Apache Mynewt represents the going forward 
-architecture and layout of the Apache Mynewt Operating System.  Further, we 
have 
-been running Apache Mynewt stably on real hardware for over 6+ mos, without 
+However, we believe this release of Apache Mynewt represents the going forward
+architecture and layout of the Apache Mynewt Operating System.  Further, we 
have
+been running Apache Mynewt stably on real hardware for over 6+ mos, without
 any issues.  So, people who are interested in playing around, and trying 
Mynewt,
 are encouraged to download and begin to evaluate it.
 
 A full roadmap for Apache Mynewt is available on the 
[website](http://mynewt.apache.org/about/).
-In addition, a detailed view of what is being worked on, and all open feature 
-requests are in 
+In addition, a detailed view of what is being worked on, and all open feature
+requests are in
 
[JIRA](https://issues.apache.org/jira/browse/MYNEWT/?selectedTab=com.atlassian.jira.jira-projects-plugin:roadmap-panel).
 
 More information is available in the [README](/README.md) file in this 
directory.
 
-The next release of Apache Mynewt is scheduled for April 22nd, 2016.  If 
building 
+The next release of Apache Mynewt is scheduled for April 2016.  If building
 an Operating System for Microcontrollers sounds fun to you, get in touch by 
sending
 a mail to the [Apache Mynewt Developer's 
list](mailto:d...@mynewt.incubator.apache.org).
-



[34/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
--
diff --git a/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c 
b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
new file mode 100644
index 000..c0ab233
--- /dev/null
+++ b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
@@ -0,0 +1,186041 @@
+/**
+** This file is an amalgamation of many separate C source files from SQLite
+** version 3.10.2.  By combining all the individual C code files into this 
+** single large file, the entire code can be compiled as a single translation
+** unit.  This allows many compilers to do optimizations that would not be
+** possible if the files were compiled separately.  Performance improvements
+** of 5% or more are commonly seen when SQLite is compiled as a single
+** translation unit.
+**
+** This file is all you need to compile SQLite.  To use SQLite in other
+** programs, you need this file and the "sqlite3.h" header file that defines
+** the programming interface to the SQLite library.  (If you do not have 
+** the "sqlite3.h" header file at hand, you will find a copy embedded within
+** the text of this file.  Search for "Begin file sqlite3.h" to find the start
+** of the embedded sqlite3.h header file.) Additional code files may be needed
+** if you want a wrapper to interface SQLite with your choice of programming
+** language. The code for the "sqlite3" command-line shell is also in a
+** separate file. This file contains only code for the core SQLite library.
+*/
+#define SQLITE_CORE 1
+#define SQLITE_AMALGAMATION 1
+#ifndef SQLITE_PRIVATE
+# define SQLITE_PRIVATE static
+#endif
+/** Begin file sqliteInt.h ***/
+/*
+** 2001 September 15
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+*
+** Internal interface definitions for SQLite.
+**
+*/
+#ifndef _SQLITEINT_H_
+#define _SQLITEINT_H_
+
+/*
+** Include the header file used to customize the compiler options for MSVC.
+** This should be done first so that it can successfully prevent spurious
+** compiler warnings due to subsequent content in this file and other files
+** that are included by this file.
+*/
+/** Include msvc.h in the middle of sqliteInt.h **/
+/** Begin file msvc.h /
+/*
+** 2015 January 12
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+**
+**
+** This file contains code that is specific to MSVC.
+*/
+#ifndef _MSVC_H_
+#define _MSVC_H_
+
+#if defined(_MSC_VER)
+#pragma warning(disable : 4054)
+#pragma warning(disable : 4055)
+#pragma warning(disable : 4100)
+#pragma warning(disable : 4127)
+#pragma warning(disable : 4130)
+#pragma warning(disable : 4152)
+#pragma warning(disable : 4189)
+#pragma warning(disable : 4206)
+#pragma warning(disable : 4210)
+#pragma warning(disable : 4232)
+#pragma warning(disable : 4244)
+#pragma warning(disable : 4305)
+#pragma warning(disable : 4306)
+#pragma warning(disable : 4702)
+#pragma warning(disable : 4706)
+#endif /* defined(_MSC_VER) */
+
+#endif /* _MSVC_H_ */
+
+/** End of msvc.h /
+/** Continuing where we left off in sqliteInt.h **/
+
+/*
+** Special setup for VxWorks
+*/
+/** Include vxworks.h in the middle of sqliteInt.h ***/
+/** Begin file vxworks.h */
+/*
+** 2015-03-02
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+**
+**
+** This file contains code that is specific to Wind River's VxWorks
+*/
+#if defined(__RTP__) || defined(_WRS_KERNEL)
+/* This is VxWorks.  Set up things specially for that OS
+*/
+#include 
+#include   /* amalgamator: dontcache */
+#define OS_VXWORKS 1
+#define SQLITE_OS_OTHER 0
+#define 

[07/10] incubator-mynewt-newt git commit: Replace hashicorp logutils with logrus.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/text_formatter_test.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/text_formatter_test.go 
b/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/text_formatter_test.go
new file mode 100644
index 000..e25a44f
--- /dev/null
+++ 
b/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/text_formatter_test.go
@@ -0,0 +1,61 @@
+package logrus
+
+import (
+   "bytes"
+   "errors"
+   "testing"
+   "time"
+)
+
+func TestQuoting(t *testing.T) {
+   tf := {DisableColors: true}
+
+   checkQuoting := func(q bool, value interface{}) {
+   b, _ := tf.Format(WithField("test", value))
+   idx := bytes.Index(b, ([]byte)("test="))
+   cont := bytes.Contains(b[idx+5:], []byte{'"'})
+   if cont != q {
+   if q {
+   t.Errorf("quoting expected for: %#v", value)
+   } else {
+   t.Errorf("quoting not expected for: %#v", value)
+   }
+   }
+   }
+
+   checkQuoting(false, "abcd")
+   checkQuoting(false, "v1.0")
+   checkQuoting(false, "1234567890")
+   checkQuoting(true, "/foobar")
+   checkQuoting(true, "x y")
+   checkQuoting(true, "x,y")
+   checkQuoting(false, errors.New("invalid"))
+   checkQuoting(true, errors.New("invalid argument"))
+}
+
+func TestTimestampFormat(t *testing.T) {
+   checkTimeStr := func(format string) {
+   customFormatter := {DisableColors: true, 
TimestampFormat: format}
+   customStr, _ := customFormatter.Format(WithField("test", 
"test"))
+   timeStart := bytes.Index(customStr, ([]byte)("time="))
+   timeEnd := bytes.Index(customStr, ([]byte)("level="))
+   timeStr := customStr[timeStart+5 : timeEnd-1]
+   if timeStr[0] == '"' && timeStr[len(timeStr)-1] == '"' {
+   timeStr = timeStr[1 : len(timeStr)-1]
+   }
+   if format == "" {
+   format = time.RFC3339
+   }
+   _, e := time.Parse(format, (string)(timeStr))
+   if e != nil {
+   t.Errorf("time string \"%s\" did not match provided 
time format \"%s\": %s", timeStr, format, e)
+   }
+   }
+
+   checkTimeStr("2006-01-02T15:04:05.0Z07:00")
+   checkTimeStr("Mon Jan _2 15:04:05 2006")
+   checkTimeStr("")
+}
+
+// TODO add tests for sorting etc., this requires a parser for the text
+// formatter output.

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/writer.go
--
diff --git a/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/writer.go 
b/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/writer.go
new file mode 100644
index 000..1e30b1c
--- /dev/null
+++ b/newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/writer.go
@@ -0,0 +1,31 @@
+package logrus
+
+import (
+   "bufio"
+   "io"
+   "runtime"
+)
+
+func (logger *Logger) Writer() *io.PipeWriter {
+   reader, writer := io.Pipe()
+
+   go logger.writerScanner(reader)
+   runtime.SetFinalizer(writer, writerFinalizer)
+
+   return writer
+}
+
+func (logger *Logger) writerScanner(reader *io.PipeReader) {
+   scanner := bufio.NewScanner(reader)
+   for scanner.Scan() {
+   logger.Print(scanner.Text())
+   }
+   if err := scanner.Err(); err != nil {
+   logger.Errorf("Error while reading from Writer: %s", err)
+   }
+   reader.Close()
+}
+
+func writerFinalizer(writer *io.PipeWriter) {
+   writer.Close()
+}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.gitignore
--
diff --git a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.gitignore 
b/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.gitignore
deleted file mode 100644
index 8ed84fe..000
--- a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-y.output
-
-# ignore intellij files
-.idea
-*.iml
-*.ipr
-*.iws

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.travis.yml
--
diff --git a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.travis.yml 
b/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/.travis.yml
deleted file mode 100644
index 83dc540..000
--- 

[04/10] incubator-mynewt-newt git commit: Replace hashicorp logutils with logrus.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token.go 
b/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token.go
deleted file mode 100644
index 95a0c3e..000
--- a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token.go
+++ /dev/null
@@ -1,118 +0,0 @@
-package token
-
-import (
-   "fmt"
-   "strconv"
-
-   hcltoken "github.com/hashicorp/hcl/hcl/token"
-)
-
-// Token defines a single HCL token which can be obtained via the Scanner
-type Token struct {
-   Type Type
-   Pos  Pos
-   Text string
-}
-
-// Type is the set of lexical tokens of the HCL (HashiCorp Configuration 
Language)
-type Type int
-
-const (
-   // Special tokens
-   ILLEGAL Type = iota
-   EOF
-
-   identifier_beg
-   literal_beg
-   NUMBER // 12345
-   FLOAT  // 123.45
-   BOOL   // true,false
-   STRING // "abc"
-   NULL   // null
-   literal_end
-   identifier_end
-
-   operator_beg
-   LBRACK // [
-   LBRACE // {
-   COMMA  // ,
-   PERIOD // .
-   COLON  // :
-
-   RBRACK // ]
-   RBRACE // }
-
-   operator_end
-)
-
-var tokens = [...]string{
-   ILLEGAL: "ILLEGAL",
-
-   EOF: "EOF",
-
-   NUMBER: "NUMBER",
-   FLOAT:  "FLOAT",
-   BOOL:   "BOOL",
-   STRING: "STRING",
-   NULL:   "NULL",
-
-   LBRACK: "LBRACK",
-   LBRACE: "LBRACE",
-   COMMA:  "COMMA",
-   PERIOD: "PERIOD",
-   COLON:  "COLON",
-
-   RBRACK: "RBRACK",
-   RBRACE: "RBRACE",
-}
-
-// String returns the string corresponding to the token tok.
-func (t Type) String() string {
-   s := ""
-   if 0 <= t && t < Type(len(tokens)) {
-   s = tokens[t]
-   }
-   if s == "" {
-   s = "token(" + strconv.Itoa(int(t)) + ")"
-   }
-   return s
-}
-
-// IsIdentifier returns true for tokens corresponding to identifiers and basic
-// type literals; it returns false otherwise.
-func (t Type) IsIdentifier() bool { return identifier_beg < t && t < 
identifier_end }
-
-// IsLiteral returns true for tokens corresponding to basic type literals; it
-// returns false otherwise.
-func (t Type) IsLiteral() bool { return literal_beg < t && t < literal_end }
-
-// IsOperator returns true for tokens corresponding to operators and
-// delimiters; it returns false otherwise.
-func (t Type) IsOperator() bool { return operator_beg < t && t < operator_end }
-
-// String returns the token's literal text. Note that this is only
-// applicable for certain token types, such as token.IDENT,
-// token.STRING, etc..
-func (t Token) String() string {
-   return fmt.Sprintf("%s %s %s", t.Pos.String(), t.Type.String(), t.Text)
-}
-
-// HCLToken converts this token to an HCL token.
-//
-// The token type must be a literal type or this will panic.
-func (t Token) HCLToken() hcltoken.Token {
-   switch t.Type {
-   case BOOL:
-   return hcltoken.Token{Type: hcltoken.BOOL, Text: t.Text}
-   case FLOAT:
-   return hcltoken.Token{Type: hcltoken.FLOAT, Text: t.Text}
-   case NULL:
-   return hcltoken.Token{Type: hcltoken.STRING, Text: ""}
-   case NUMBER:
-   return hcltoken.Token{Type: hcltoken.NUMBER, Text: t.Text}
-   case STRING:
-   return hcltoken.Token{Type: hcltoken.STRING, Text: t.Text, 
JSON: true}
-   default:
-   panic(fmt.Sprintf("unimplemented HCLToken for type: %s", 
t.Type))
-   }
-}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token_test.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token_test.go 
b/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token_test.go
deleted file mode 100644
index a83fdd5..000
--- 
a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/json/token/token_test.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package token
-
-import (
-   "testing"
-)
-
-func TestTypeString(t *testing.T) {
-   var tokens = []struct {
-   tt  Type
-   str string
-   }{
-   {ILLEGAL, "ILLEGAL"},
-   {EOF, "EOF"},
-   {NUMBER, "NUMBER"},
-   {FLOAT, "FLOAT"},
-   {BOOL, "BOOL"},
-   {STRING, "STRING"},
-   {NULL, "NULL"},
-   {LBRACK, "LBRACK"},
-   {LBRACE, "LBRACE"},
-   {COMMA, "COMMA"},
-   {PERIOD, "PERIOD"},
-   {RBRACK, "RBRACK"},
-   {RBRACE, "RBRACE"},
-   }
-
-   for _, token := range tokens {
-   

[3/3] incubator-mynewt-site git commit: Minor edits to the Additional REpositories tutorial mainly for formatting. This closes #59.

2016-03-19 Thread aditi
Minor edits to the Additional REpositories tutorial mainly for formatting. This 
closes #59.


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

Branch: refs/heads/master
Commit: 4f897dde0a35cebb20f98dcbb0f9b7121a8cd6dc
Parents: f705099
Author: aditihilbert 
Authored: Fri Mar 18 10:06:02 2016 -0700
Committer: aditihilbert 
Committed: Fri Mar 18 10:06:02 2016 -0700

--
 docs/os/tutorials/add_repos.md | 130 ++--
 1 file changed, 79 insertions(+), 51 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/4f897dde/docs/os/tutorials/add_repos.md
--
diff --git a/docs/os/tutorials/add_repos.md b/docs/os/tutorials/add_repos.md
index 39c7a4e..6213c41 100644
--- a/docs/os/tutorials/add_repos.md
+++ b/docs/os/tutorials/add_repos.md
@@ -1,39 +1,40 @@
-## What is a Repository
+## Additional Repositories
 
-A repository is a version-ed mynewt project, which is a 
-collection of mynewt packages organized in a specific
+### What is a Repository
+
+A repository is a version-ed Mynewt project, which is a 
+collection of Mynewt packages organized in a specific
 way.  
 
-What differentiates a repository from a mynewt project is the presence of a
+What differentiates a repository from a Mynewt project is the presence of a
 `repository.yml` file describing the repository. This will be described 
-below.
-
-For the remainder of this document we'll use the term repo as shorthand for a 
-mynewt repository.
+below. **Note:** For the remainder of this document we'll use the term repo as 
shorthand for a 
+Mynewt repository.
 
 Repos are useful because they are an organized way for the community
-to share mynewt packages and projects.  In fact, the mynewt-core is 
+to share Mynewt packages and projects.  In fact, the Mynewt-core is 
 distributed as a repo.
 
-# Additional Repos 
+
 
-Why does mynewt need additional repos? 
+### Why does Mynewt need additional repos? 
 
-Repos add functionality 
-not included in the mynewt core.  New repos might be created for 
+Repos add functionality not included in the Mynewt core.  New repos might be 
created for 
 several reasons.
 
 * **Expertise**.  Individuals or organizations may have expertise that they 
want
 to share in the form of repos. For example a chip vendor may
-create a repo to hold the mynewt support for their chips.
+create a repo to hold the Mynewt support for their chips.
 * **Non-Core component**.  Some components, although very useful to Mynewt 
users
-are not core to all mynewt users.  These are likely candidate to be held in 
+are not core to all Mynewt users.  These are likely candidates to be held in 
 different repos.
-* **Software licensing**.  Some software has licenses that make them 
incompatible
+* **Software licensing**.  Some software have licenses that make them 
incompatible
 with the ASF (Apache Software Foundation) license policies.  These may be 
-valuable components to some mynewt users, but cannot be contained in the 
`apache-mynewt-core`.
+valuable components to some Mynewt users, but cannot be contained in the 
`apache-Mynewt-core`.
+
+
 
-## What Repos are in my Project
+### What Repos are in my Project
 
 The list of repos used by your project are contained within the 
 `project.yml` file.  An example can be seen by creating a new project:
@@ -45,26 +46,32 @@ $ newt new myproj
 $ cd myproj
 ```
 
+
+
 View the `project.yml` section and you will see a line describing the repos:
 
 ```no-highlight
 project.repositories:
-- apache-mynewt-core
+- apache-Mynewt-core
 ```
 
+ 
+
 By default, this newly created project uses a single repo called 
-`apache-mynewt-core`.  
+`apache-Mynewt-core`.  
 
 If you wish to add additional repos, you would add 
 additional lines to the `project.repositories` variable like this.
 
 ```no-highlight
 project.repositories:
-- apache-mynewt-core
+- apache-Mynewt-core
 - another_repo_named_x
 ```
 
-## Repo Descriptors
+
+
+### Repo Descriptors
 
 In addition to the repo name, the `project.yml` file must also contain
 a repo descriptor for each repository you include that gives `newt` 
@@ -73,7 +80,7 @@ information on obtaining the repo.
 In the same `myproj` above you will see the following repo descriptor.
  
 ```no-highlight
-repository.apache-mynewt-core:
+repository.apache-Mynewt-core:
 type: github
 vers: 0-latest
 user: apache
@@ -81,7 +88,9 @@ repository.apache-mynewt-core:
 ```
 
 A repo descriptor starts with 

[2/5] incubator-mynewt-site git commit: resize pictures to the render better more minor edits to match new newt format

2016-03-19 Thread aditi
resize pictures to the render better
more minor edits to match new newt format


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

Branch: refs/heads/master
Commit: 585c6dd296fb7f1ec645eef37f377ae4ec46c6e9
Parents: 591e062
Author: Paul Dietrich 
Authored: Wed Mar 16 11:10:20 2016 -0700
Committer: Paul Dietrich 
Committed: Wed Mar 16 11:10:20 2016 -0700

--
 docs/os/tutorials/Olimex.md   |  22 ++
 docs/os/tutorials/pics/bottomview.png | Bin 1995826 -> 701983 bytes
 docs/os/tutorials/pics/topview.png| Bin 1945584 -> 72 bytes
 3 files changed, 10 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/585c6dd2/docs/os/tutorials/Olimex.md
--
diff --git a/docs/os/tutorials/Olimex.md b/docs/os/tutorials/Olimex.md
index fea329e..a8f80fc 100644
--- a/docs/os/tutorials/Olimex.md
+++ b/docs/os/tutorials/Olimex.md
@@ -196,7 +196,7 @@ Let's create boot_olimex:
 $ newt target set boot_olimex compiler_def=optimized
 Target boot_olimex successfully set compiler_def to optimized
 $ newt target set boot_olimex bsp=hw/bsp/olimex_stm32-e407_devboard
-Target boot_olimex successfully set bsp to 
hw/bsp/olimex_stm32-e407_devboard
+Target boot_olimex successfully set bsp to ...
 $ newt target set boot_olimex app=apps/boot
 Target targets/boot_olimex successfully set target.app to apps/boot
 $ newt target show boot_olimex
@@ -207,26 +207,24 @@ Let's create boot_olimex:
 compiler=arm-none-eabi-m4
 compiler_def=optimized
 ```
-* Now let's build all the three targets now.
+* Now let's build both targets now.
 ```no-highlight
-Successfully run!
 $ newt build boot_olimex
-App successfully built: 
~/dev/core/bin/boot_olimex/apps/boot/boot_olimex.elf
-Successfully run!
 ...
-Successfully run!
+App successfully built: 
~/dev/core/bin/boot_olimex/apps/boot/boot_olimex.elf
 $ newt  build blinky
+...
 Linking blinky.elf
 App successfully built: ~/dev/core/bin/blinky/apps/blinky/blinky.elf
-Successfully run!
 ```
 
 * Create the bootloader image and download the bootloader and the image to 
flash ... in a flash! 
+When creating an image, you can assign a version number to your image; here we 
use '1.2.3'
 ```no-highlight
 $ newt create-image boot_olimex 1.2.3
-$ newt target download boot_olimex
+$ newt download boot_olimex
 $ newt create-image blinky 1.2.3
-$ newt target download blinky
+$ newt download blinky
 
 ```
 
@@ -236,14 +234,14 @@ Let's create boot_olimex:
 
The LED light will start blinking again. Success!
   
-   Note #1: If you want to download the image to flash and a gdb session 
opened up, use `newt debug blinky` after `newt target download blinky`.
+   Note #1: If you want to download the image to flash and a gdb session 
opened up, use `newt debug blinky` after `newt download blinky`.
 ```no-highlight 
 $ newt debug blinky
-Debugging with 
~/dev/core/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh
 blinky
+Debugging with ~/dev/core/hw/bsp/olimex_stm32-e407_...
 Debugging ~/dev/core/project/blinky/bin/blinky/blinky.elf
 GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
 Copyright (C) 2014 Free Software Foundation, Inc.
-License GPLv3+: GNU GPL version 3 or later 

+License GPLv3+: GNU GPL version 3 
 ...
 (info)
 ...

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/585c6dd2/docs/os/tutorials/pics/bottomview.png
--
diff --git a/docs/os/tutorials/pics/bottomview.png 
b/docs/os/tutorials/pics/bottomview.png
index fb7bf0a..c50a461 100644
Binary files a/docs/os/tutorials/pics/bottomview.png and 
b/docs/os/tutorials/pics/bottomview.png differ

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/585c6dd2/docs/os/tutorials/pics/topview.png
--
diff --git a/docs/os/tutorials/pics/topview.png 
b/docs/os/tutorials/pics/topview.png
index e57995e..e889ee0 100644
Binary files a/docs/os/tutorials/pics/topview.png and 
b/docs/os/tutorials/pics/topview.png differ



[2/3] incubator-mynewt-site git commit: Merge branch 'MYNEWT-214' of https://github.com/paulfdietrich/incubator-mynewt-site

2016-03-19 Thread aditi
Merge branch 'MYNEWT-214' of 
https://github.com/paulfdietrich/incubator-mynewt-site


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

Branch: refs/heads/master
Commit: 6695951b0595966280309e2a817f0b825b313f17
Parents: 0ff4d89 b332b1c
Author: aditihilbert 
Authored: Wed Mar 16 18:30:56 2016 -0700
Committer: aditihilbert 
Committed: Wed Mar 16 18:30:56 2016 -0700

--
 docs/newtmgr/installing.md|  67 +++
 docs/newtmgr/project-slinky.md| 292 -
 docs/newtmgr/project-target-slinky.md | 179 ++
 mkdocs.yml|   4 +-
 4 files changed, 331 insertions(+), 211 deletions(-)
--




[GitHub] incubator-mynewt-site pull request: add a file describing a reposi...

2016-03-19 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-mynewt-site/pull/59


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[01/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master 23a6f5ffa -> da9d64c39
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [created] 6aadc302d


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
new file mode 100644
index 000..a08922b
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
@@ -0,0 +1,1436 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build amd64,solaris
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_802= 0x12
+   AF_APPLETALK  = 0x10
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_ECMA   = 0x8
+   AF_FILE   = 0x1
+   AF_GOSIP  = 0x16
+   AF_HYLINK = 0xf
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1a
+   AF_INET_OFFLOAD   = 0x1e
+   AF_IPX= 0x17
+   AF_KEY= 0x1b
+   AF_LAT= 0xe
+   AF_LINK   = 0x19
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x20
+   AF_NBS= 0x7
+   AF_NCA= 0x1c
+   AF_NIT= 0x11
+   AF_NS = 0x6
+   AF_OSI= 0x13
+   AF_OSINET = 0x15
+   AF_PACKET = 0x20
+   AF_POLICY = 0x1d
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x18
+   AF_SNA= 0xb
+   AF_TRILL  = 0x1f
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   AF_X25= 0x14
+   ARPHRD_ARCNET = 0x7
+   ARPHRD_ATM= 0x10
+   ARPHRD_AX25   = 0x3
+   ARPHRD_CHAOS  = 0x5
+   ARPHRD_EETHER = 0x2
+   ARPHRD_ETHER  = 0x1
+   ARPHRD_FC = 0x12
+   ARPHRD_FRAME  = 0xf
+   ARPHRD_HDLC   = 0x11
+   ARPHRD_IB = 0x20
+   ARPHRD_IEEE802= 0x6
+   ARPHRD_IPATM  = 0x13
+   ARPHRD_METRICOM   = 0x17
+   ARPHRD_TUNNEL = 0x1f
+   B0= 0x0
+   B110  = 0x3
+   B115200   = 0x12
+   B1200 = 0x9
+   B134  = 0x4
+   B150  = 0x5
+   B153600   = 0x13
+   B1800 = 0xa
+   B19200= 0xe
+   B200  = 0x6
+   B230400   = 0x14
+   B2400 = 0xb
+   B300  = 0x7
+   B307200   = 0x15
+   B38400= 0xf
+   B460800   = 0x16
+   B4800 = 0xc
+   B50   = 0x1
+   B57600= 0x10
+   B600  = 0x8
+   B75   = 0x2
+   B76800= 0x11
+   B921600   = 0x17
+   B9600 = 0xd
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = -0x3fefbd89
+   BIOCGDLTLIST32= -0x3ff7bd89
+   BIOCGETIF = 0x4020426b
+   BIOCGETLIF= 0x4078426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRTIMEOUT = 0x4010427b
+   BIOCGRTIMEOUT32   = 0x4008427b
+   BIOCGSEESENT  = 0x40044278
+   BIOCGSTATS= 0x4080426f
+   BIOCGSTATSOLD = 0x4008426f
+   BIOCIMMEDIATE = -0x7ffbbd90
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = -0x3ffbbd9a
+   BIOCSDLT   

[GitHub] incubator-mynewt-site pull request: MYNEWT-250

2016-03-19 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-mynewt-site/pull/57


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


incubator-mynewt-newt git commit: Minor changes to newt's README.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 15b13e5ea -> da9d64c39


Minor changes to newt's README.


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

Branch: refs/heads/develop
Commit: da9d64c39b40fb43cf5df14e745d4f9985ba44f0
Parents: 15b13e5
Author: Christopher Collins 
Authored: Wed Mar 16 22:26:23 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:26:23 2016 -0700

--
 README.md | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/da9d64c3/README.md
--
diff --git a/README.md b/README.md
index a2ec735..b27d67e 100644
--- a/README.md
+++ b/README.md
@@ -21,16 +21,16 @@
 
 # Newt
 
-Newt is a build and package management tool, designed for C and C++ 
+Apache Newt is a build and package management tool, designed for C and C++ 
 applications in embedded contexts.  Newt was developed as a part of the 
 Apache Mynewt Operating System, more information on Apache Mynewt can be found 
 at https://mynewt.apache.org/.
 
 # Getting Started
 
-The included build.sh script can be used to build newt.  For more information
-on how to install Newt, please read [INSTALLING](/INSTALLING.md) or the
-documentation on https://mynewt.apache.org/
+To build Apache Newt, simply run the included build.sh script.  For more
+information on building and installng Apache Newt, please read
+[INSTALLING](/INSTALLING.md) or the documentation on https://mynewt.apache.org/
 
 Once you've installed newt, you can get started by creating a new project: 
 
@@ -39,7 +39,7 @@ Once you've installed newt, you can get started by creating a 
new project:
 ```
 
 For more information, and a tutorial for getting started, please take a look 
at 
-the [Apache Mynewt 
documentation](http://mynewt.apache.org/os/get_started/introduction/).
+the [Apache Mynewt 
documentation](https://mynewt.apache.org/os/get_started/introduction/).
 
 # Contributing 
 
@@ -60,7 +60,7 @@ If you are suggesting a new feature, please email the 
developer list directly,
 with a description of the feature you are planning to work on.  
 
 We do not merge pull requests directly on Github, all PRs will be pulled and 
-pushed through http://git.apache.org/.
+pushed through https://git.apache.org/.
 
 ## Filing Bugs
 
@@ -87,7 +87,7 @@ to get involved with the Apache Mynewt project.
 
 Pull requests to the apache-mynewt-site repository on Github are the best 
 way to submit documentation.  For more information on contributing to the 
-documentation, the [FAQ](http://mynewt.apache.org/faq/answers/) has some 
+documentation, the [FAQ](https://mynewt.apache.org/faq/answers/) has some 
 more information.
 
 ## Getting Help



incubator-mynewt-blinky git commit: Remove obsolete mentions from rat-excludes.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-blinky
Updated Branches:
  refs/heads/develop 682385a1c -> 5cb224887


Remove obsolete mentions from rat-excludes.


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

Branch: refs/heads/develop
Commit: 5cb22488716d0ccb3f8cb9b783347da744fb0bbe
Parents: 682385a
Author: Christopher Collins 
Authored: Wed Mar 16 14:44:46 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 14:44:46 2016 -0700

--
 .rat-excludes | 153 -
 1 file changed, 153 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/blob/5cb22488/.rat-excludes
--
diff --git a/.rat-excludes b/.rat-excludes
index 15eedd4..49b7d68 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -5,156 +5,3 @@
 .gdb_history
 .gdb_out
 tags
-
-# CRC16 - BSD License.
-crc16.*
-
-# Nordic nRF51 SDK - BSD License.
-boot-nrf51dk.ld
-nrf51dk.ld
-nrf51dk_no_boot.ld
-system_nrf51.c
-gcc_startup_nrf51.s
-boot-nrf51dk-16kbram.ld
-nrf51dk-16kbram.ld
-nrf51dk-16kbram_no_boot.ld
-nrf51.h
-nrf51422_peripherals.h
-nrf51822_peripherals.h
-nrf51_bitfields.h
-nrf51_deprecated.h
-system_nrf51.h
-
-# Nordic nRF52 SDK - BSD License.
-nrf52pdk.ld
-system_nrf52.c
-gcc_startup_nrf52.s
-nrf51_to_nrf52.h
-nrf52.h
-nrf52832_peripherals.h
-nrf52_bitfields.h
-system_nrf52.h
-
-# Nordic nRF51 SDK - BSD License.
-# Nordic nRF52 SDK - BSD License.
-compiler_abstraction.h
-nrf.h
-
-# STM32CubeF4  - BSD License.
-stm32f4xx_hal_conf.h
-system_stm32f4xx.c
-startup_STM32F40x.s
-stm32f407xx.h
-stm32f4xx.h
-stm32f4xx_hal.h
-stm32f4xx_hal_adc.h
-stm32f4xx_hal_adc_ex.h
-stm32f4xx_hal_can.h
-stm32f4xx_hal_cec.h
-stm32f4xx_hal_cortex.h
-stm32f4xx_hal_crc.h
-stm32f4xx_hal_cryp.h
-stm32f4xx_hal_cryp_ex.h
-stm32f4xx_hal_dac.h
-stm32f4xx_hal_dac_ex.h
-stm32f4xx_hal_dcmi.h
-stm32f4xx_hal_dcmi_ex.h
-stm32f4xx_hal_def.h
-stm32f4xx_hal_dma.h
-stm32f4xx_hal_dma2d.h
-stm32f4xx_hal_dma_ex.h
-stm32f4xx_hal_eth.h
-stm32f4xx_hal_flash.h
-stm32f4xx_hal_flash_ex.h
-stm32f4xx_hal_flash_ramfunc.h
-stm32f4xx_hal_fmpi2c.h
-stm32f4xx_hal_fmpi2c_ex.h
-stm32f4xx_hal_gpio.h
-stm32f4xx_hal_gpio_ex.h
-stm32f4xx_hal_hash.h
-stm32f4xx_hal_hash_ex.h
-stm32f4xx_hal_hcd.h
-stm32f4xx_hal_i2c.h
-stm32f4xx_hal_i2c_ex.h
-stm32f4xx_hal_i2s.h
-stm32f4xx_hal_i2s_ex.h
-stm32f4xx_hal_irda.h
-stm32f4xx_hal_iwdg.h
-stm32f4xx_hal_ltdc.h
-stm32f4xx_hal_nand.h
-stm32f4xx_hal_nor.h
-stm32f4xx_hal_pccard.h
-stm32f4xx_hal_pcd.h
-stm32f4xx_hal_pcd_ex.h
-stm32f4xx_hal_pwr.h
-stm32f4xx_hal_pwr_ex.h
-stm32f4xx_hal_qspi.h
-stm32f4xx_hal_rcc.h
-stm32f4xx_hal_rcc_ex.h
-stm32f4xx_hal_rng.h
-stm32f4xx_hal_rtc.h
-stm32f4xx_hal_rtc_ex.h
-stm32f4xx_hal_sai.h
-stm32f4xx_hal_sai_ex.h
-stm32f4xx_hal_sd.h
-stm32f4xx_hal_sdram.h
-stm32f4xx_hal_smartcard.h
-stm32f4xx_hal_spdifrx.h
-stm32f4xx_hal_spi.h
-stm32f4xx_hal_sram.h
-stm32f4xx_hal_tim.h
-stm32f4xx_hal_tim_ex.h
-stm32f4xx_hal_uart.h
-stm32f4xx_hal_usart.h
-stm32f4xx_hal_wwdg.h
-stm32f4xx_ll_fmc.h
-stm32f4xx_ll_fsmc.h
-stm32f4xx_ll_sdmmc.h
-stm32f4xx_ll_usb.h
-system_stm32f4xx.h
-stm32f4xx_hal_flash.c
-stm32f4xx_hal_flash_ex.c
-stm32f4xx_hal_gpio.c
-stm32f4xx_hal_rcc.c
-stm32f4xx_hal_uart.c
-
-# baselibc - BSD License.
-# tinyprintf - BSD License.
-# klibc - MIT License.
-baselibc
-
-# eLua - MUT License.
-elua
-
-# CMSIS-CORE - BSD License.
-core_ca9.h
-core_caFunc.h
-core_caInstr.h
-core_ca_mmu.h
-core_cm0.h
-core_cm0plus.h
-core_cm3.h
-core_cm4.h
-core_cm4_simd.h
-core_cmFunc.h
-core_cmInstr.h
-cmsis_nvic.c
-cmsis_nvic.h
-HAL_CM0.s
-HAL_CM4.s
-SVC_Table.s
-
-# microjson - BSD License.
-MSJSON_COPYING
-json_decode.c
-json_encode.c
-
-# queue.h - BSD License.
-queue.h
-
-# FreeBSD - BSD License.
-os_mbuf.c
-base64.c
-
-# crc32.c - Public domain.
-crc32.c



[24/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go 
b/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go
new file mode 100644
index 000..f3c971d
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go
@@ -0,0 +1,242 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build ignore
+
+/*
+Input to cgo -godefs.  See also mkerrors.sh and mkall.sh
+*/
+
+// +godefs map struct_in_addr [4]byte /* in_addr */
+// +godefs map struct_in6_addr [16]byte /* in6_addr */
+
+package unix
+
+/*
+#define KERNEL
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+enum {
+   sizeofPtr = sizeof(void*),
+};
+
+union sockaddr_all {
+   struct sockaddr s1; // this one gets used for fields
+   struct sockaddr_in s2;  // these pad it out
+   struct sockaddr_in6 s3;
+   struct sockaddr_un s4;
+   struct sockaddr_dl s5;
+};
+
+struct sockaddr_any {
+   struct sockaddr addr;
+   char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
+};
+
+*/
+import "C"
+
+// Machine characteristics; for internal use.
+
+const (
+   sizeofPtr  = C.sizeofPtr
+   sizeofShort= C.sizeof_short
+   sizeofInt  = C.sizeof_int
+   sizeofLong = C.sizeof_long
+   sizeofLongLong = C.sizeof_longlong
+)
+
+// Basic types
+
+type (
+   _C_short C.short
+   _C_int   C.int
+   _C_long  C.long
+   _C_long_long C.longlong
+)
+
+// Time
+
+type Timespec C.struct_timespec
+
+type Timeval C.struct_timeval
+
+// Processes
+
+type Rusage C.struct_rusage
+
+type Rlimit C.struct_rlimit
+
+type _Gid_t C.gid_t
+
+// Files
+
+const ( // Directory mode bits
+   S_IFMT   = C.S_IFMT
+   S_IFIFO  = C.S_IFIFO
+   S_IFCHR  = C.S_IFCHR
+   S_IFDIR  = C.S_IFDIR
+   S_IFBLK  = C.S_IFBLK
+   S_IFREG  = C.S_IFREG
+   S_IFLNK  = C.S_IFLNK
+   S_IFSOCK = C.S_IFSOCK
+   S_ISUID  = C.S_ISUID
+   S_ISGID  = C.S_ISGID
+   S_ISVTX  = C.S_ISVTX
+   S_IRUSR  = C.S_IRUSR
+   S_IWUSR  = C.S_IWUSR
+   S_IXUSR  = C.S_IXUSR
+)
+
+type Stat_t C.struct_stat
+
+type Statfs_t C.struct_statfs
+
+type Flock_t C.struct_flock
+
+type Dirent C.struct_dirent
+
+type Fsid C.struct_fsid
+
+// Sockets
+
+type RawSockaddrInet4 C.struct_sockaddr_in
+
+type RawSockaddrInet6 C.struct_sockaddr_in6
+
+type RawSockaddrUnix C.struct_sockaddr_un
+
+type RawSockaddrDatalink C.struct_sockaddr_dl
+
+type RawSockaddr C.struct_sockaddr
+
+type RawSockaddrAny C.struct_sockaddr_any
+
+type _Socklen C.socklen_t
+
+type Linger C.struct_linger
+
+type Iovec C.struct_iovec
+
+type IPMreq C.struct_ip_mreq
+
+type IPv6Mreq C.struct_ipv6_mreq
+
+type Msghdr C.struct_msghdr
+
+type Cmsghdr C.struct_cmsghdr
+
+type Inet6Pktinfo C.struct_in6_pktinfo
+
+type IPv6MTUInfo C.struct_ip6_mtuinfo
+
+type ICMPv6Filter C.struct_icmp6_filter
+
+const (
+   SizeofSockaddrInet4= C.sizeof_struct_sockaddr_in
+   SizeofSockaddrInet6= C.sizeof_struct_sockaddr_in6
+   SizeofSockaddrAny  = C.sizeof_struct_sockaddr_any
+   SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
+   SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
+   SizeofLinger   = C.sizeof_struct_linger
+   SizeofIPMreq   = C.sizeof_struct_ip_mreq
+   SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
+   SizeofMsghdr   = C.sizeof_struct_msghdr
+   SizeofCmsghdr  = C.sizeof_struct_cmsghdr
+   SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
+   SizeofIPv6MTUInfo  = C.sizeof_struct_ip6_mtuinfo
+   SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
+)
+
+// Ptrace requests
+
+const (
+   PTRACE_TRACEME = C.PT_TRACE_ME
+   PTRACE_CONT= C.PT_CONTINUE
+   PTRACE_KILL= C.PT_KILL
+)
+
+// Events (kqueue, kevent)
+
+type Kevent_t C.struct_kevent
+
+// Select
+
+type FdSet C.fd_set
+
+// Routing and interface messages
+
+const (
+   SizeofIfMsghdr = C.sizeof_struct_if_msghdr
+   SizeofIfData   = C.sizeof_struct_if_data
+   SizeofIfaMsghdr= C.sizeof_struct_ifa_msghdr
+   SizeofIfmaMsghdr   = C.sizeof_struct_ifma_msghdr
+   SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
+   SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
+   SizeofRtMetrics= C.sizeof_struct_rt_metrics
+)
+
+type IfMsghdr C.struct_if_msghdr
+
+type IfData C.struct_if_data
+

[GitHub] incubator-mynewt-site pull request: MYNEWT-214

2016-03-19 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-mynewt-site/pull/54


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[3/5] incubator-mynewt-site git commit: Pull request #55 closed.

2016-03-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/1415e6b9/newt/command_list/newt_app/index.html
--
diff --git a/newt/command_list/newt_app/index.html 
b/newt/command_list/newt_app/index.html
index f5625da..769ca14 100644
--- a/newt/command_list/newt_app/index.html
+++ b/newt/command_list/newt_app/index.html
@@ -446,11 +446,11 @@
 
 
 Global Flags:
--h, --help=false: help for newt
--l, --loglevel=WARN: Log level, 
defaults to WARN.
--q, --quiet=false: Be quiet; only 
display error output.
--s, --silent=false: Be silent; dont output anything.
--v, --verbose=false: Enable 
verbose output when executing commands.
+-h, --help=false: help for newt
+-l, --loglevel=WARN: Log level, defaults to WARN.
+-q, --quiet=false: Be quiet; only display error output.
+-s, --silent=false: Be silent; dont output anything.
+-v, --verbose=false: Enable verbose output when executing commands.
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/1415e6b9/newt/command_list/newt_help/index.html
--
diff --git a/newt/command_list/newt_help/index.html 
b/newt/command_list/newt_help/index.html
index 9e98c28..a7bfe65 100644
--- a/newt/command_list/newt_help/index.html
+++ b/newt/command_list/newt_help/index.html
@@ -433,11 +433,11 @@
 
 
 Flags:
--h, --help=false: help for newt
--l, --loglevel=WARN: Log level, 
defaults to WARN.
--q, --quiet=false: Be quiet; only 
display error output.
--s, --silent=false: Be silent; dont output anything.
--v, --verbose=false: Enable 
verbose output when executing commands.
+-h, --help=false: help for newt
+-l, --loglevel=WARN: Log level, defaults to WARN.
+-q, --quiet=false: Be quiet; only display error output.
+-s, --silent=false: Be silent; dont output anything.
+-v, --verbose=false: Enable verbose output when executing commands.
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/1415e6b9/newt/command_list/newt_new/index.html
--
diff --git a/newt/command_list/newt_new/index.html 
b/newt/command_list/newt_new/index.html
index 89a1e26..d92488e 100644
--- a/newt/command_list/newt_new/index.html
+++ b/newt/command_list/newt_new/index.html
@@ -440,11 +440,11 @@ that URL instead of using the default, and create a new 
app directory by the nam
 
 
 Global Flags:
--h, --help=false: help for newt
--l, --loglevel=WARN: Log level, 
defaults to WARN.
--q, --quiet=false: Be quiet; only 
display error output.
--s, --silent=false: Be silent; dont output anything.
--v, --verbose=false: Enable 
verbose output when executing commands.
+-h, --help=false: help for newt
+-l, --loglevel=WARN: Log level, defaults to WARN.
+-q, --quiet=false: Be quiet; only display error output.
+-s, --silent=false: Be silent; dont output anything.
+-v, --verbose=false: Enable verbose output when executing commands.
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/1415e6b9/newt/command_list/newt_pkg/index.html
--
diff --git a/newt/command_list/newt_pkg/index.html 
b/newt/command_list/newt_pkg/index.html
index 5bbc46b..b704d28 100644
--- a/newt/command_list/newt_pkg/index.html
+++ b/newt/command_list/newt_pkg/index.html
@@ -444,14 +444,14 @@
 
 
 Flags:
--h, --help=false: help for pkg
+-h, --help=false: help for pkg
 
- Global Flags:
+ Global Flags:
 
--l, --loglevel=WARN: Log level, 
defaults to WARN.
--q, --quiet=false: Be quiet; only 
display error output.
--s, --silent=false: Be silent; dont output anything.
--v, --verbose=false: Enable 
verbose output when executing commands.
+-l, --loglevel=WARN: Log level, defaults to WARN.
+-q, --quiet=false: Be quiet; only display error output.
+-s, --silent=false: Be silent; dont output anything.
+-v, --verbose=false: Enable verbose output when executing commands.
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/1415e6b9/newt/command_list/newt_target/index.html
--
diff --git a/newt/command_list/newt_target/index.html 
b/newt/command_list/newt_target/index.html
index 6b0ae4d..f8feec4 100644
--- a/newt/command_list/newt_target/index.html
+++ b/newt/command_list/newt_target/index.html
@@ -434,19 +434,19 @@
 
 
 Available Commands:
-set Set target configuration variable
-unset   Unset target configuration variable
-delete  Delete target
-create  Create a target
-showView target configuration variables
-build   Build target
-testTest target
-sizeSize of the target
-label   Add image header to 
target binary
-downloadDownload project to target
-   

[03/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
new file mode 100644
index 000..3322e99
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
@@ -0,0 +1,1584 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,openbsd
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_BLUETOOTH  = 0x20
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_ENCAP  = 0x1c
+   AF_HYLINK = 0xf
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x18
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_KEY= 0x1e
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x24
+   AF_MPLS   = 0x21
+   AF_NATM   = 0x1b
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x1d
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   ARPHRD_ETHER  = 0x1
+   ARPHRD_FRELAY = 0xf
+   ARPHRD_IEEE1394   = 0x18
+   ARPHRD_IEEE802= 0x6
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDIRFILT  = 0x4004427c
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc008427b
+   BIOCGETIF = 0x4020426b
+   BIOCGFILDROP  = 0x40044278
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044273
+   BIOCGRTIMEOUT = 0x400c426e
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCLOCK  = 0x20004276
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDIRFILT  = 0x8004427d
+   BIOCSDLT  = 0x8004427a
+   BIOCSETF  = 0x80084267
+   BIOCSETIF = 0x8020426c
+   BIOCSETWF = 0x80084277
+   BIOCSFILDROP  = 0x80044279
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044272
+   BIOCSRTIMEOUT 

[incubator-mynewt-blinky] Git Push Summary

2016-03-19 Thread ccollins
Repository: incubator-mynewt-blinky
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [deleted] 772ef9add


[16/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
new file mode 100644
index 000..e48e779
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
@@ -0,0 +1,1748 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build amd64,freebsd
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ARP= 0x23
+   AF_ATM= 0x1e
+   AF_BLUETOOTH  = 0x24
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x25
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1c
+   AF_INET6_SDP  = 0x2a
+   AF_INET_SDP   = 0x28
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x2a
+   AF_NATM   = 0x1d
+   AF_NETBIOS= 0x6
+   AF_NETGRAPH   = 0x20
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SCLUSTER   = 0x22
+   AF_SIP= 0x18
+   AF_SLOW   = 0x21
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   AF_VENDOR00   = 0x27
+   AF_VENDOR01   = 0x29
+   AF_VENDOR02   = 0x2b
+   AF_VENDOR03   = 0x2d
+   AF_VENDOR04   = 0x2f
+   AF_VENDOR05   = 0x31
+   AF_VENDOR06   = 0x33
+   AF_VENDOR07   = 0x35
+   AF_VENDOR08   = 0x37
+   AF_VENDOR09   = 0x39
+   AF_VENDOR10   = 0x3b
+   AF_VENDOR11   = 0x3d
+   AF_VENDOR12   = 0x3f
+   AF_VENDOR13   = 0x41
+   AF_VENDOR14   = 0x43
+   AF_VENDOR15   = 0x45
+   AF_VENDOR16   = 0x47
+   AF_VENDOR17   = 0x49
+   AF_VENDOR18   = 0x4b
+   AF_VENDOR19   = 0x4d
+   AF_VENDOR20   = 0x4f
+   AF_VENDOR21   = 0x51
+   AF_VENDOR22   = 0x53
+   AF_VENDOR23   = 0x55
+   AF_VENDOR24   = 0x57
+   AF_VENDOR25   = 0x59
+   AF_VENDOR26   = 0x5b
+   AF_VENDOR27   = 0x5d
+   AF_VENDOR28   = 0x5f
+   AF_VENDOR29   = 0x61
+   AF_VENDOR30   = 0x63
+   AF_VENDOR31   = 0x65
+   AF_VENDOR32   = 0x67
+   AF_VENDOR33   = 0x69
+   AF_VENDOR34   = 0x6b
+   AF_VENDOR35   = 0x6d
+   AF_VENDOR36   = 0x6f
+   AF_VENDOR37   = 0x71
+   AF_VENDOR38   = 0x73
+   AF_VENDOR39   = 0x75
+   AF_VENDOR40   = 0x77
+   AF_VENDOR41   = 0x79
+   AF_VENDOR42   = 0x7b
+   AF_VENDOR43   = 0x7d
+   AF_VENDOR44   = 0x7f
+   AF_VENDOR45   = 0x81
+   AF_VENDOR46   = 0x83
+   AF_VENDOR47   = 0x85
+   B0= 

[incubator-mynewt-core] Git Push Summary

2016-03-19 Thread ccollins
Repository: incubator-mynewt-core
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [created] e9d727431


[29/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/spf13/pflag/bool.go
--
diff --git a/newt/vendor/github.com/spf13/pflag/bool.go 
b/newt/vendor/github.com/spf13/pflag/bool.go
new file mode 100644
index 000..d272e40
--- /dev/null
+++ b/newt/vendor/github.com/spf13/pflag/bool.go
@@ -0,0 +1,97 @@
+package pflag
+
+import (
+   "fmt"
+   "strconv"
+)
+
+// optional interface to indicate boolean flags that can be
+// supplied without "=value" text
+type boolFlag interface {
+   Value
+   IsBoolFlag() bool
+}
+
+// -- bool Value
+type boolValue bool
+
+func newBoolValue(val bool, p *bool) *boolValue {
+   *p = val
+   return (*boolValue)(p)
+}
+
+func (b *boolValue) Set(s string) error {
+   v, err := strconv.ParseBool(s)
+   *b = boolValue(v)
+   return err
+}
+
+func (b *boolValue) Type() string {
+   return "bool"
+}
+
+func (b *boolValue) String() string { return fmt.Sprintf("%v", *b) }
+
+func (b *boolValue) IsBoolFlag() bool { return true }
+
+func boolConv(sval string) (interface{}, error) {
+   return strconv.ParseBool(sval)
+}
+
+// GetBool return the bool value of a flag with the given name
+func (f *FlagSet) GetBool(name string) (bool, error) {
+   val, err := f.getFlagType(name, "bool", boolConv)
+   if err != nil {
+   return false, err
+   }
+   return val.(bool), nil
+}
+
+// BoolVar defines a bool flag with specified name, default value, and usage 
string.
+// The argument p points to a bool variable in which to store the value of the 
flag.
+func (f *FlagSet) BoolVar(p *bool, name string, value bool, usage string) {
+   f.BoolVarP(p, name, "", value, usage)
+}
+
+// BoolVarP is like BoolVar, but accepts a shorthand letter that can be used 
after a single dash.
+func (f *FlagSet) BoolVarP(p *bool, name, shorthand string, value bool, usage 
string) {
+   flag := f.VarPF(newBoolValue(value, p), name, shorthand, usage)
+   flag.NoOptDefVal = "true"
+}
+
+// BoolVar defines a bool flag with specified name, default value, and usage 
string.
+// The argument p points to a bool variable in which to store the value of the 
flag.
+func BoolVar(p *bool, name string, value bool, usage string) {
+   BoolVarP(p, name, "", value, usage)
+}
+
+// BoolVarP is like BoolVar, but accepts a shorthand letter that can be used 
after a single dash.
+func BoolVarP(p *bool, name, shorthand string, value bool, usage string) {
+   flag := CommandLine.VarPF(newBoolValue(value, p), name, shorthand, 
usage)
+   flag.NoOptDefVal = "true"
+}
+
+// Bool defines a bool flag with specified name, default value, and usage 
string.
+// The return value is the address of a bool variable that stores the value of 
the flag.
+func (f *FlagSet) Bool(name string, value bool, usage string) *bool {
+   return f.BoolP(name, "", value, usage)
+}
+
+// BoolP is like Bool, but accepts a shorthand letter that can be used after a 
single dash.
+func (f *FlagSet) BoolP(name, shorthand string, value bool, usage string) 
*bool {
+   p := new(bool)
+   f.BoolVarP(p, name, shorthand, value, usage)
+   return p
+}
+
+// Bool defines a bool flag with specified name, default value, and usage 
string.
+// The return value is the address of a bool variable that stores the value of 
the flag.
+func Bool(name string, value bool, usage string) *bool {
+   return BoolP(name, "", value, usage)
+}
+
+// BoolP is like Bool, but accepts a shorthand letter that can be used after a 
single dash.
+func BoolP(name, shorthand string, value bool, usage string) *bool {
+   b := CommandLine.BoolP(name, shorthand, value, usage)
+   return b
+}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/spf13/pflag/count.go
--
diff --git a/newt/vendor/github.com/spf13/pflag/count.go 
b/newt/vendor/github.com/spf13/pflag/count.go
new file mode 100644
index 000..7b1f142
--- /dev/null
+++ b/newt/vendor/github.com/spf13/pflag/count.go
@@ -0,0 +1,97 @@
+package pflag
+
+import (
+   "fmt"
+   "strconv"
+)
+
+// -- count Value
+type countValue int
+
+func newCountValue(val int, p *int) *countValue {
+   *p = val
+   return (*countValue)(p)
+}
+
+func (i *countValue) Set(s string) error {
+   v, err := strconv.ParseInt(s, 0, 64)
+   // -1 means that no specific value was passed, so increment
+   if v == -1 {
+   *i = countValue(*i + 1)
+   } else {
+   *i = countValue(v)
+   }
+   return err
+}
+
+func (i *countValue) Type() string {
+   return "count"
+}
+
+func (i *countValue) String() string { return fmt.Sprintf("%v", *i) }
+
+func countConv(sval string) (interface{}, error) {
+   i, err := strconv.Atoi(sval)
+   if err != nil {
+   return 

incubator-mynewt-blinky git commit: Add missing step to blinky README.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-blinky
Updated Branches:
  refs/heads/master 7e3c0312b -> 82f09fa2c


Add missing step to blinky README.


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

Branch: refs/heads/master
Commit: 82f09fa2cc4c67fb30165ef6be0291aa76e6213e
Parents: 7e3c031
Author: Christopher Collins 
Authored: Wed Mar 16 23:33:30 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 23:33:30 2016 -0700

--
 README.md | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/blob/82f09fa2/README.md
--
diff --git a/README.md b/README.md
index 405d33b..a77e004 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,13 @@ Apache Mynewt simulator.
 
 You will need to download the Apache Newt tool, as documented in the [Getting 
Started Guide](http://mynewt.apache.org/os/get_started/introduction/).
 
-2. Build the blinky app for the sim platform using the "my_blinky_sim" target
+2. Download the Apache Mynewt Core package (executed from the blinky 
directory).
+
+```no-highlight
+$ newt install
+```
+
+3. Build the blinky app for the sim platform using the "my_blinky_sim" target
 (executed from the blinky directory).
 
 ```no-highlight



[03/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
new file mode 100644
index 000..3322e99
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
@@ -0,0 +1,1584 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,openbsd
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_BLUETOOTH  = 0x20
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_ENCAP  = 0x1c
+   AF_HYLINK = 0xf
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x18
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_KEY= 0x1e
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x24
+   AF_MPLS   = 0x21
+   AF_NATM   = 0x1b
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x1d
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   ARPHRD_ETHER  = 0x1
+   ARPHRD_FRELAY = 0xf
+   ARPHRD_IEEE1394   = 0x18
+   ARPHRD_IEEE802= 0x6
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDIRFILT  = 0x4004427c
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc008427b
+   BIOCGETIF = 0x4020426b
+   BIOCGFILDROP  = 0x40044278
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044273
+   BIOCGRTIMEOUT = 0x400c426e
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCLOCK  = 0x20004276
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDIRFILT  = 0x8004427d
+   BIOCSDLT  = 0x8004427a
+   BIOCSETF  = 0x80084267
+   BIOCSETIF = 0x8020426c
+   BIOCSETWF = 0x80084277
+   BIOCSFILDROP  = 0x80044279
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044272
+   BIOCSRTIMEOUT 

[17/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
new file mode 100644
index 000..7b95751
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
@@ -0,0 +1,1743 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,freebsd
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ARP= 0x23
+   AF_ATM= 0x1e
+   AF_BLUETOOTH  = 0x24
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x25
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1c
+   AF_INET6_SDP  = 0x2a
+   AF_INET_SDP   = 0x28
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x2a
+   AF_NATM   = 0x1d
+   AF_NETBIOS= 0x6
+   AF_NETGRAPH   = 0x20
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SCLUSTER   = 0x22
+   AF_SIP= 0x18
+   AF_SLOW   = 0x21
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   AF_VENDOR00   = 0x27
+   AF_VENDOR01   = 0x29
+   AF_VENDOR02   = 0x2b
+   AF_VENDOR03   = 0x2d
+   AF_VENDOR04   = 0x2f
+   AF_VENDOR05   = 0x31
+   AF_VENDOR06   = 0x33
+   AF_VENDOR07   = 0x35
+   AF_VENDOR08   = 0x37
+   AF_VENDOR09   = 0x39
+   AF_VENDOR10   = 0x3b
+   AF_VENDOR11   = 0x3d
+   AF_VENDOR12   = 0x3f
+   AF_VENDOR13   = 0x41
+   AF_VENDOR14   = 0x43
+   AF_VENDOR15   = 0x45
+   AF_VENDOR16   = 0x47
+   AF_VENDOR17   = 0x49
+   AF_VENDOR18   = 0x4b
+   AF_VENDOR19   = 0x4d
+   AF_VENDOR20   = 0x4f
+   AF_VENDOR21   = 0x51
+   AF_VENDOR22   = 0x53
+   AF_VENDOR23   = 0x55
+   AF_VENDOR24   = 0x57
+   AF_VENDOR25   = 0x59
+   AF_VENDOR26   = 0x5b
+   AF_VENDOR27   = 0x5d
+   AF_VENDOR28   = 0x5f
+   AF_VENDOR29   = 0x61
+   AF_VENDOR30   = 0x63
+   AF_VENDOR31   = 0x65
+   AF_VENDOR32   = 0x67
+   AF_VENDOR33   = 0x69
+   AF_VENDOR34   = 0x6b
+   AF_VENDOR35   = 0x6d
+   AF_VENDOR36   = 0x6f
+   AF_VENDOR37   = 0x71
+   AF_VENDOR38   = 0x73
+   AF_VENDOR39   = 0x75
+   AF_VENDOR40   = 0x77
+   AF_VENDOR41   = 0x79
+   AF_VENDOR42   = 0x7b
+   AF_VENDOR43   = 0x7d
+   AF_VENDOR44   = 0x7f
+   AF_VENDOR45   = 0x81
+   AF_VENDOR46   = 0x83
+   AF_VENDOR47   = 0x85
+   B0= 0x0
+  

[08/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
new file mode 100644
index 000..5b90d07
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
@@ -0,0 +1,1969 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build ppc64,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x29
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_NFC   = 0x27
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_VSOCK = 0x28
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_6LOWPAN   = 0x339
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CAIF  = 0x336
+   ARPHRD_CAN   = 0x118
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802154_MONITOR= 0x325
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IP6GRE= 0x337
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   

[2/2] incubator-mynewt-core git commit: This closes #19 (neelnatu:fixdebugger)

2016-03-19 Thread ccollins
This closes #19 (neelnatu:fixdebugger)


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

Branch: refs/heads/develop
Commit: 44e560f9895527489e721f89a7df86970fa7da39
Parents: e8dc4ee 70073b5
Author: Christopher Collins 
Authored: Fri Mar 18 12:40:53 2016 -0700
Committer: Christopher Collins 
Committed: Fri Mar 18 12:40:53 2016 -0700

--
 libs/os/src/arch/sim/os_arch_sim.c | 2 --
 1 file changed, 2 deletions(-)
--




[13/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
new file mode 100644
index 000..b83fb40
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
@@ -0,0 +1,1818 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build amd64,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x28
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_NFC   = 0x27
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CAIF  = 0x336
+   ARPHRD_CAN   = 0x118
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   ARPHRD_NETROM= 0x0
+   ARPHRD_NONE  = 0xfffe
+   ARPHRD_PHONET= 0x334
+   ARPHRD_PHONET_PIPE   = 0x335
+   

[51/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
Replace godeps _workspace with new go vendor dir.


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

Branch: refs/heads/master
Commit: b002dd0c0b61f639f4fb3549708b5faffbc00708
Parents: c4df3b5
Author: Christopher Collins 
Authored: Wed Mar 16 17:01:11 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 18:00:01 2016 -0700

--
 newt/Godeps/Godeps.json | 24 +
 newt/Godeps/_workspace/.gitignore   |  2 -
 .../src/github.com/Sirupsen/logrus/.gitignore   |  1 -
 .../src/github.com/Sirupsen/logrus/.travis.yml  |  9 -
 .../src/github.com/Sirupsen/logrus/CHANGELOG.md | 59 -
 .../src/github.com/Sirupsen/logrus/LICENSE  | 21 -
 .../src/github.com/Sirupsen/logrus/README.md|386 -
 .../src/github.com/Sirupsen/logrus/doc.go   | 26 -
 .../src/github.com/Sirupsen/logrus/entry.go |264 -
 .../github.com/Sirupsen/logrus/entry_test.go| 77 -
 .../Sirupsen/logrus/examples/basic/basic.go | 50 -
 .../Sirupsen/logrus/examples/hook/hook.go   | 30 -
 .../src/github.com/Sirupsen/logrus/exported.go  |193 -
 .../src/github.com/Sirupsen/logrus/formatter.go | 48 -
 .../Sirupsen/logrus/formatter_bench_test.go | 98 -
 .../logrus/formatters/logstash/logstash.go  | 61 -
 .../logrus/formatters/logstash/logstash_test.go | 52 -
 .../src/github.com/Sirupsen/logrus/hook_test.go |122 -
 .../src/github.com/Sirupsen/logrus/hooks.go | 34 -
 .../Sirupsen/logrus/hooks/syslog/README.md  | 39 -
 .../Sirupsen/logrus/hooks/syslog/syslog.go  | 54 -
 .../Sirupsen/logrus/hooks/syslog/syslog_test.go | 26 -
 .../Sirupsen/logrus/hooks/test/test.go  | 67 -
 .../Sirupsen/logrus/hooks/test/test_test.go | 39 -
 .../Sirupsen/logrus/json_formatter.go   | 41 -
 .../Sirupsen/logrus/json_formatter_test.go  |120 -
 .../src/github.com/Sirupsen/logrus/logger.go|212 -
 .../src/github.com/Sirupsen/logrus/logrus.go|109 -
 .../github.com/Sirupsen/logrus/logrus_test.go   |344 -
 .../github.com/Sirupsen/logrus/terminal_bsd.go  |  9 -
 .../Sirupsen/logrus/terminal_linux.go   | 12 -
 .../Sirupsen/logrus/terminal_notwindows.go  | 21 -
 .../Sirupsen/logrus/terminal_solaris.go | 15 -
 .../Sirupsen/logrus/terminal_windows.go | 27 -
 .../Sirupsen/logrus/text_formatter.go   |161 -
 .../Sirupsen/logrus/text_formatter_test.go  | 61 -
 .../src/github.com/Sirupsen/logrus/writer.go| 31 -
 .../src/github.com/kr/pretty/.gitignore |  4 -
 .../_workspace/src/github.com/kr/pretty/License | 21 -
 .../_workspace/src/github.com/kr/pretty/Readme  |  9 -
 .../_workspace/src/github.com/kr/pretty/diff.go |158 -
 .../src/github.com/kr/pretty/diff_test.go   | 74 -
 .../src/github.com/kr/pretty/example_test.go| 20 -
 .../src/github.com/kr/pretty/formatter.go   |337 -
 .../src/github.com/kr/pretty/formatter_test.go  |261 -
 .../src/github.com/kr/pretty/pretty.go  | 98 -
 .../_workspace/src/github.com/kr/pretty/zero.go | 41 -
 .../_workspace/src/github.com/kr/text/License   | 19 -
 .../_workspace/src/github.com/kr/text/Readme|  3 -
 .../src/github.com/kr/text/colwriter/Readme |  5 -
 .../src/github.com/kr/text/colwriter/column.go  |147 -
 .../github.com/kr/text/colwriter/column_test.go | 90 -
 .../_workspace/src/github.com/kr/text/doc.go|  3 -
 .../_workspace/src/github.com/kr/text/indent.go | 74 -
 .../src/github.com/kr/text/indent_test.go   |119 -
 .../_workspace/src/github.com/kr/text/mc/Readme |  9 -
 .../_workspace/src/github.com/kr/text/mc/mc.go  | 62 -
 .../_workspace/src/github.com/kr/text/wrap.go   | 86 -
 .../src/github.com/kr/text/wrap_test.go | 62 -
 .../src/github.com/mattn/go-sqlite3/.gitignore  |  3 -
 .../src/github.com/mattn/go-sqlite3/.travis.yml |  8 -
 .../src/github.com/mattn/go-sqlite3/LICENSE | 21 -
 .../src/github.com/mattn/go-sqlite3/README.md   | 75 -
 .../src/github.com/mattn/go-sqlite3/backup.go   | 70 -
 .../src/github.com/mattn/go-sqlite3/callback.go |336 -
 .../mattn/go-sqlite3/callback_test.go   | 97 -
 .../mattn/go-sqlite3/code/sqlite3-binding.c | 186041 
 .../mattn/go-sqlite3/code/sqlite3-binding.h |   8630 -
 .../mattn/go-sqlite3/code/sqlite3ext.h  |542 -
 .../src/github.com/mattn/go-sqlite3/doc.go  |112 -
 .../src/github.com/mattn/go-sqlite3/error.go|128 

incubator-mynewt-site git commit: Added OS user guide intro. Fixed stale links in Quick Start guides e.g. brew install instructions

2016-03-19 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master 1832c8573 -> df9b6fb4d


Added OS user guide intro. Fixed stale links in Quick Start guides e.g. brew 
install instructions


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

Branch: refs/heads/master
Commit: df9b6fb4d427319223685ed96bb117dd0d97776a
Parents: 1832c85
Author: aditihilbert 
Authored: Thu Mar 17 17:25:54 2016 -0700
Committer: aditihilbert 
Committed: Thu Mar 17 17:25:54 2016 -0700

--
 docs/os/get_started/native_tools.md   | 4 ++--
 docs/os/get_started/project_create.md | 4 ++--
 docs/os/os_user_guide.md  | 9 +
 mkdocs.yml| 9 +
 4 files changed, 18 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/df9b6fb4/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 67c0b6e..184049c 100644
--- a/docs/os/get_started/native_tools.md
+++ b/docs/os/get_started/native_tools.md
@@ -10,8 +10,8 @@ This page provides guidance for MAC and Linux. See the 
relevant sections below.
 
 ### Install Brew
 
-if you have not already installed Homebrew from the 
-[`newt` tutorials pages](../../newt/newt_mac.md). 
+If you have not already installed Homebrew from the 
+[`newt` tutorials pages](../../newt/tutorials/newt_mac.md), install it. 
 
 ###Install gcc/libc 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/df9b6fb4/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 510dcb6..bb46161 100644
--- a/docs/os/get_started/project_create.md
+++ b/docs/os/get_started/project_create.md
@@ -6,8 +6,8 @@ This page shows how to create a Mynewt Project using the `newt` 
command-line too
 
 * Ensure you have installed [newt](../../newt/tutorials/newt_mac.md) and that 
the 
 newt command is in your system path. 
-* You must have Internet connectivity to fetch remote Mynewt components
-* You must [install the compiler tools](project1.md) to 
+* You must have Internet connectivity to fetch remote Mynewt components.
+* You must [install the compiler tools](native_tools.md) to 
 support native compiling to build the project this tutorial creates.  
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/df9b6fb4/docs/os/os_user_guide.md
--
diff --git a/docs/os/os_user_guide.md b/docs/os/os_user_guide.md
new file mode 100644
index 000..05b7608
--- /dev/null
+++ b/docs/os/os_user_guide.md
@@ -0,0 +1,9 @@
+# OS User Guide 
+
+This guide provides comprehensive information about Mynewt OS, the real-time 
operating system for embedded systems.
+It is intended both for an embedded real-time software developer as well as 
higher-level applications developer wanting to understand the features and 
benefits of the system. 
+Mynewt OS is highly composable and flexible. Only those features actually used 
by the application are compiled into the run-time image. Hence, the actual size 
of Mynewt is completely determined by the application. The guide covers all the 
features and services available in the OS and contains several examples showing 
how they can be used.
+**Send us an email on the dev@ mailing list if you have comments or 
suggestions!** If you haven't joined the mailing list, you will find the links 
[here](../community.md).
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/df9b6fb4/mkdocs.yml
--
diff --git a/mkdocs.yml b/mkdocs.yml
index f1e0a71..5e7faa3 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -12,11 +12,11 @@ pages:
 - Events: 'events.md'
 - Mynewt OS Manual:
 - Introduction: 'os/get_started/introduction.md'
-- Get Started:
+- Quick Start:
 - toc: 'os/get_started/get_started.md'
-- 'Installing Native Tools': 'os/get_started/native_tools.md'
-- 'Creating Your First Project': 'os/get_started/project_create.md'
-- 'Installing Cross Tools for ARM': 'os/get_started/cross_tools.md'
+- 'Install Native Tools': 'os/get_started/native_tools.md'
+- 'Create Your First Project': 'os/get_started/project_create.md'
+- 'Install Cross Tools for ARM': 

[1/2] incubator-mynewt-site git commit: Updated slinky tutorials for working with newtmanger. closes pull request #54

2016-03-19 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 477d85dcd -> 2af796a3e


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/newtmgr/project-slinky/index.html
--
diff --git a/newtmgr/project-slinky/index.html 
b/newtmgr/project-slinky/index.html
index 6a5d714..8f0a5a2 100644
--- a/newtmgr/project-slinky/index.html
+++ b/newtmgr/project-slinky/index.html
@@ -9,7 +9,7 @@
 http://mynewt.apache.org/newtmgr/project-slinky/;>
 
 
-   Project Slinky - Apache Mynewt
+   Sim Slinky - Apache Mynewt
 
 
 
@@ -40,7 +40,7 @@
 
 
 
-
+
 
 
 
@@ -226,6 +226,16 @@
   
 
   
+
+  Installing
+
+  
+
+  
+  
+  
+
+  
   
 
-  Project Slinky
+  Sim Slinky
+
+  
+
+  
+  
+  
+
+  
+
+  Target Slinky
 
   
 
@@ -340,7 +360,7 @@
 
   
   
- Project Slinky
+ Sim Slinky
   
 
 
@@ -349,251 +369,119 @@
 
 
 
-Project Slinky
+Project Sim Slinky
 Objective
-The goal of the project is to enable and demonstate remote communications 
with a device or target via newt manager (newtmgr). We will first build the 
project image for a simulated device and then build an image for a hardware 
target. Next, the tool newtmgr has to be installed and a connection established 
with the target. Finally, various available commands in newtmgr will be used to 
query the target, upgrade image, and collect data from the endpoint.
+The goal of the project is to enable and demonstrate remote communications 
with the Mynewt OS via newt manager (newtmgr). We will do this through building 
a project with Mynewt called Slinky that runs via the native platform. 
 What you need
-
-STM32-E407 development board from Olimex. You can order it from http://www.mouser.com/ProductDetail/Olimex-Ltd/STM32-E407/?qs=UN6GZl1KCcit6Ye0xmPO4A%3D%3D;>http://www.mouser.com,
 http://www.digikey.com/product-detail/en/STM32-E407/1188-1093-ND/3726951;>http://www.digikey.com,
 and other places.
-ARM-USB-TINY-H connector with JTAG interface for debugging ARM 
microcontrollers (comes with the ribbon cable to hook up to the board)
-USB A-B type cable to connect the debugger to your personal computer
-A USB to TTL Serial Cable with female wiring harness. An example is http://www.amazon.com/JBtek®-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pcie=UTF8qid=1454631303sr=1-9;>http://www.amazon.com/JBtek®-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pcie=UTF8qid=1454631303sr=1-9
-Personal Computer
-
+1.Personal Computer
 The instructions assume the user is using a Bourne-compatible shell (e.g. 
bash or zsh) on your computer. The given instructions have been tested with the 
following releases of operating systems:
 
 Mac: OS X Yosemite Version 10.10.5
 
 Overview of steps
 
-Define targets using the newt tool
+Install dependencies
+Define a target using the newt tool
 Build executables for the targets using the newt tool
-Set up serial connection with the targets - both the physical connection 
with a hardware target and the connection profile using the newtmgr tool
+Set up serial connection with the targets 
+Create a connection profile using the newtmgr tool
 Use the newtmgr tool to communicate with the targets
 
-The following instructions will walk you through the update of the larva 
nest and the installation of newtmgr as well.
-Creating local repository
-Make sure Mynewt's default nest larva is up to date by 
downloading the latest from the Apache mynewt repository (https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva;>https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva).
-$ pwd
-/Users/user/dev/larva
-$ ls -al
-total 72
-drwxr-xr-x  18 user  staff612 Feb  3 15:47 .
-drwxr-xr-x   5 user  staff170 Feb  3 13:32 ..
-drwxr-xr-x  13 user  staff442 Feb  3 13:32 .git
--rw-r--r--   1 user  staff 66 Feb  3 13:32 .gitignore
--rw-r--r--   1 user  staff  0 Feb  3 13:32 .gitmodules
-drwxr-xr-x   4 user  staff136 Feb  3 16:13 .nest
--rw-r--r--   1 user  staff  11358 Feb  3 13:32 LICENSE
-...
-...
-drwxr-xr-x   5 user  staff170 Feb  3 13:32 sys
-$ git pull origin master
-
-
-
-Installing Newtmgr
-You will first download the source code for newt. Currently, you need to 
create a symbolic link for all the directory references in the go scripts to 
work correctly.
-$ cd ~/dev
-$ go get git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/newt
-

[53/56] [abbrv] incubator-mynewt-newt git commit: Don't show unittest package in "newt info"

2016-03-19 Thread ccollins
Don't show unittest package in "newt info"


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

Branch: refs/heads/master
Commit: 9a826fd48f7e6536ae212b604249729228fb5511
Parents: bb53fed
Author: Christopher Collins 
Authored: Wed Mar 16 18:51:55 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 18:51:55 2016 -0700

--
 newt/cli/project_cmds.go | 9 -
 newt/cli/target_cmds.go  | 6 +++---
 2 files changed, 11 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/9a826fd4/newt/cli/project_cmds.go
--
diff --git a/newt/cli/project_cmds.go b/newt/cli/project_cmds.go
index c9a4ce7..7bf03b7 100644
--- a/newt/cli/project_cmds.go
+++ b/newt/cli/project_cmds.go
@@ -131,7 +131,14 @@ func infoRunCmd(cmd *cobra.Command, args []string) {
if reqRepoName == "all" || reqRepoName == repoName {
packNames := []string{}
for _, pack := range *proj.PackageList()[repoName] {
-   packNames = append(packNames, pack.Name())
+   // Don't display the special unittest target; 
this is used
+   // internally by newt, so the user doesn't need 
to know about
+   // it.
+   // XXX: This is a hack; come up with a better 
solution for
+   // unit testing.
+   if !strings.HasSuffix(pack.Name(), "/unittest") 
{
+   packNames = append(packNames, 
pack.Name())
+   }
}
 
sort.Strings(packNames)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/9a826fd4/newt/cli/target_cmds.go
--
diff --git a/newt/cli/target_cmds.go b/newt/cli/target_cmds.go
index 1fcc7a6..975d3e5 100644
--- a/newt/cli/target_cmds.go
+++ b/newt/cli/target_cmds.go
@@ -89,9 +89,9 @@ func targetShowCmd(cmd *cobra.Command, args []string) {
for name, _ := range target.GetTargets() {
// Don't display the special unittest target; this is 
used
// internally by newt, so the user doesn't need to know 
about it.
-   // XXX: This is a hack; come up with a better solution 
for hiding
-   // targets.
-   if name != "targets/unittest" {
+   // XXX: This is a hack; come up with a better solution 
for unit
+   // testing.
+   if !strings.HasSuffix(name, "/unittest") {
targetNames = append(targetNames, name)
}
}



[1/2] incubator-mynewt-site git commit: MYNEWT-252

2016-03-19 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master e753d0263 -> 46aa2856b


MYNEWT-252

documentation for nrf52 with new newt commands

This closes #58


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

Branch: refs/heads/master
Commit: 11afe7753d82571d5ca52dd6b06bd7f4b3a91276
Parents: e753d02
Author: Paul Dietrich 
Authored: Thu Mar 17 13:05:06 2016 -0700
Committer: aditihilbert 
Committed: Thu Mar 17 13:34:00 2016 -0700

--
 docs/os/tutorials/nRF52.md | 284 ++--
 1 file changed, 68 insertions(+), 216 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/11afe775/docs/os/tutorials/nRF52.md
--
diff --git a/docs/os/tutorials/nRF52.md b/docs/os/tutorials/nRF52.md
index d908365..69518d0 100644
--- a/docs/os/tutorials/nRF52.md
+++ b/docs/os/tutorials/nRF52.md
@@ -9,231 +9,83 @@ nRF52 Series chip from Nordic Semiconductors.
 
 * nRF52 Development Kit
 * Laptop running Mac OS
+* It is assumed you have already installed newt tool. 
+* It is assumed you already installed native tools as described 
[here](../get_started/native_tools.md)
+
+ install jlinkEXE
+
+In order to be able to communicate with the SEGGER J-Link debugger on the dev 
board, you have to download and install the J-Link GDB Server software on to 
your laptop. You may download the "Software and documentation pack for Mac OS 
X" from 
[https://www.segger.com/jlink-software.html](https://www.segger.com/jlink-software.html).
 
+
+ Create a project.  
+
+Create a new project to hold your work.  For a deeper understanding, you can 
read about project creation in 
+[Get Started -- Creating Your First Project](../get_started/project_create.md)
+or just follow the commands below.
+
+```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 -v 
+apache-mynewt-core
+Downloading repository description for apache-mynewt-core... success!
+...
+apache-mynewt-core successfully installed version 0.7.9-none
+``` 
+
+ Create the target
+
+Create a single target for the nrf52.  NOTE: The nrf52 mynewt core does not
+yet have bootloader support, so we will create a single image to download
+to the device.
+
+```no-highlight
+$ newt target create blink_nordic
+$ newt target set blink_nordic app=apps/blinky
+$ newt target set blink_nordic bsp=@apache-mynewt-core/hw/bsp/nrf52pdk
+$ newt target set blink_nordic build_profile=debug
+$ newt target show 
+targets/blink_nordic
+app=apps/blinky
+bsp=@apache-mynewt-core/hw/bsp/nrf52pdk
+build_profile=debug
+```
 
+ Build the image 
 
- Step by Step Instructions to build image
-
-* The first step is to download the generic skeleton of the project. The eggs 
installed are not hardware architecture specific.
-```c
-[]user@~/dev]$ newt nest create nordic_blinky
-Downloading nest skeleton from 
https://www.github.com/mynewt/tadpole... ok!
-Nest nordic_blinky successfully created in ~dev/nordic_blinky
-
-user@~/dev$ cd nordic_blinky/
+```no-highlight
+$ newt build blink_nordic
+...
+Compiling main.c
+Archiving blinky.a
+Linking blinky.elf
+App successfully built: ~/dev/myproj/bin/blink_nordic/apps/blinky/blinky.elf
 ```
 
-* Then, the clutch of eggs named larva is added from the nest (also named 
larva) on the github. This step simply downloads the clutch description file 
and does not actually install the eggs that constitute the clutch. The clutch 
description file (`clutch.yml`) will be used to check dependencies during the 
egg install to ensure completeness. It serves as a reference for all the eggs 
in the clutch that one can choose from and install.
-```c
-[]user@~/dev/nordic_blinky]$ newt nest add-clutch larva 
https://github.com/mynewt/larva
-Downloading clutch.yml from https://github.com/mynewt/larva/master... 
ok!
-Verifying clutch.yml format...ok!
-Clutch larva successfully installed to Nest.
-```
-* The next step is to install relevant eggs from the larva nest on github. The 
instructions assume that you know what application or project you are 
interested in (the blinky application, in this case), what hardware you are 
using (STM32F3DISCOVERY board, in this case) and hence, what board support 

[5/5] incubator-mynewt-site git commit: Blinky on Olimex updated. This closes #53

2016-03-19 Thread aditi
Blinky on Olimex updated. This closes #53


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

Branch: refs/heads/master
Commit: 0ff4d891f4143c5449b4c68844c87da55a874ef5
Parents: 44b4df8
Author: aditihilbert 
Authored: Wed Mar 16 18:22:08 2016 -0700
Committer: aditihilbert 
Committed: Wed Mar 16 18:22:08 2016 -0700

--
 docs/os/tutorials/Olimex.md | 87 ++--
 1 file changed, 65 insertions(+), 22 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/0ff4d891/docs/os/tutorials/Olimex.md
--
diff --git a/docs/os/tutorials/Olimex.md b/docs/os/tutorials/Olimex.md
index 35e9539..0a6f50e 100644
--- a/docs/os/tutorials/Olimex.md
+++ b/docs/os/tutorials/Olimex.md
@@ -2,16 +2,19 @@
 
 ### Objective
 
-Learn how to use packages from a default application repository of Mynewt to 
build your first *Hello World* application (Blinky) on a target board. Once 
built using *newt* tool, this application will blink the LED lights on the 
target board. Fun stuff!
+Learn how to use packages from a default application repository of Mynewt to 
build your first *Hello World* application (Blinky) on a target board. Once 
built using the *newt* tool, this application will blink the LED lights on the 
target board. Fun stuff!
 
-This tutorial will guide to achieve the following, assuming you have already 
set up the environment on your computer to use Mynewt OS and newt tool:
+This tutorial will guide you to achieve the following, assuming you have 
already set up the environment on your computer to use Mynewt OS and newt tool:
 
-Download packages and use tools to create a runtime image for a board to make 
its LED blink. You have two choices here:
+* Download packages and use tools to create a runtime image for a board to 
make its LED blink. You have two choices here:
 * [Download an image to SRAM](#use-sram-to-make-led-blink), or 
 * [Download it to flash](#use-flash-to-make-led-blink).
 
+
+
 ** Time Requirement**: Allow yourself a couple of hours for this project if 
you are relatively new to embedded systems and playing with development boards. 
Those jumpers can be pesky!
 
+
 
 ### What you need
 
@@ -20,26 +23,29 @@ Download packages and use tools to create a runtime image 
for a board to make it
 3. USB A-B type cable to connect the debugger to your personal computer
 4. Personal Computer with Mac OS (Mac: OS X Yosemite Version 10.10.5) or Linux 
box (Ubuntu 14.10: Utopic Unicorn)
 5. An account on Github repository and *git* installed on your computer.
-6. It assumed you have already installed newt tool. 
-7. It assumed you already installed native tools described 
[here](../get_started/native_tools.md)
+6. It is assumed you have already installed newt tool. 
+7. It is assumed you already installed native tools as described 
[here](../get_started/native_tools.md)
 
-Also, we assume that you're familiar with UNIX shells.
+Also, we assume that you're familiar with UNIX shells. Let's gets started!
 
-Let's gets started!
+
 
 
 ### Use SRAM to make LED blink
 
 If you wish to build the image to run from the onboard SRAM on Olimex board, 
follow the steps below:
 
- Preparing the Software
+
+
+ Prepare the Software
 
 * Make sure the PATH environment variable includes the $HOME/dev/go/bin 
directory. 
+ 
+
 
- creating a project.  
+ Create a project.  
 
-Create a new project to hold your work.  For a deeper understanding, 
-you can read about project creation in 
+Create a new project to hold your work.  For a deeper understanding, you can 
read about project creation in 
 [Get Started -- Creating Your First Project](../get_started/project_create.md)
 or just follow the commands below.
 
@@ -59,12 +65,13 @@ or just follow the commands below.
 ...
 apache-mynewt-core successfully installed version 0.7.9-none
 ``` 
+
+

- creating a target
+ Create a target
 
-* Change directory to ~/dev/core directory and define the *blinky* target 
inside core, using the *newt* tool. Starting with the target name, assign 
specific aspects of the project, as shown below, to pull the appropriate 
packages and build the right bundle or list for the board. For example, we set 
the architecture (arch), compiler, board support package (bsp), project, and 
compiler mode.
+Change directory to ~/dev/core directory and define the *blinky* target inside 
core, using the *newt* tool. Starting with the target name, assign specific 
aspects of 

[3/6] incubator-mynewt-site git commit: rearranged tutorials. Added intro to tutorials and quick start

2016-03-19 Thread aditi
rearranged tutorials. Added intro to tutorials and 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/b02507e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/b02507e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/b02507e1

Branch: refs/heads/master
Commit: b02507e1f29f9cad4c6e01b2227ce8e9837a0d62
Parents: 46aa285
Author: aditihilbert 
Authored: Thu Mar 17 16:35:38 2016 -0700
Committer: aditihilbert 
Committed: Thu Mar 17 16:35:38 2016 -0700

--
 docs/os/core_os/mutex/mutex.md|   2 +-
 docs/os/get_started/get_started.md|  12 
 docs/os/tutorials/how_to_edit_docs.md | 104 -
 docs/os/tutorials/tutorials.md|  16 +
 docs/os/tutorials/unit_test.md|   2 +-
 mkdocs.yml|   8 ++-
 6 files changed, 48 insertions(+), 96 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/b02507e1/docs/os/core_os/mutex/mutex.md
--
diff --git a/docs/os/core_os/mutex/mutex.md b/docs/os/core_os/mutex/mutex.md
index ce123ca..c397aa4 100644
--- a/docs/os/core_os/mutex/mutex.md
+++ b/docs/os/core_os/mutex/mutex.md
@@ -16,7 +16,7 @@ Note that when multiple tasks are waiting on a mutex owned by 
another task, once
 
 ### Data structures
 
-```c
+```c 
 struct os_mutex
 {
 SLIST_HEAD(, os_task) mu_head;

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/b02507e1/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
new file mode 100644
index 000..0f45918
--- /dev/null
+++ b/docs/os/get_started/get_started.md
@@ -0,0 +1,12 @@
+## Quick Start
+
+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 three sets of instructions for you to 
try out.
+
+* [Installing Native Tools](native_tools.md) - to run Mynewt OS natively (on 
your machine)
+* [Creating Your First Project](project_create.md) - on simulated hardware 
+* [Installing Cross Tools for ARM](cross_tools.md) - to get prepared to play 
with hardware
+
+**Send us an email on the dev@ mailing list if you have comments or 
suggestions!** If you haven't joined the mailing list, you will find the links 
[here](../../community.md).
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/b02507e1/docs/os/tutorials/how_to_edit_docs.md
--
diff --git a/docs/os/tutorials/how_to_edit_docs.md 
b/docs/os/tutorials/how_to_edit_docs.md
index d1cb3e5..b3229c6 100644
--- a/docs/os/tutorials/how_to_edit_docs.md
+++ b/docs/os/tutorials/how_to_edit_docs.md
@@ -8,9 +8,7 @@ Learn the process of editing docs by adding some content to a 
test document.
 
 The Mynewt documentation you see on the Apache incubator website is a bunch of 
HTML files generated using MkDocs which is a simple static site generation tool 
geared towards building project documentation. You can read about it at 
[http://www.mkdocs.org](http://www.mkdocs.org). Documentation source files are 
written in Markdown, and configured with a single YAML configuration file. 
Markdown is a lightweight markup language with plain text formatting syntax 
designed so that it can be converted to HTML and many other formats using a 
tool (which in our case is MkDocs).
 
-You do not need to install MkDocs unless you want to actually render your 
documentation in HTML in order to preview it before pushing your content to the 
remote repository. Typically, using a Markdown editor such as 
[Mou](http://25.io/mou/) is enough to check how it will look after the document 
has gone through MkDocs. Go ahead and download [Mou](http://25.io/mou/). If you 
are on a Windows machine, download the [editor of your 
choice](http://alternativeto.net/software/mou/?platform=windows).
-
-Currently someone in the project is designated to use MkDocs to generate the 
HTML pages periodically after changes have been reviewed and accepted into the 
master branch.
+The HTML pages are generated periodically after changes have been reviewed and 
accepted into the master branch.
 
 
 ### Access to the Apache repo
@@ -19,104 +17,28 @@ Get an account on Apache. You do not need a committer 
account to view the websit
 
 If you are not a committer, you may follow the proposed non-committer workflow 
to share your work. The direct link to the proposed workflow is 
[https://git-wip-us.apache.org/docs/workflow.html](https://git-wip-us.apache.org/docs/workflow.html).
 You 

[04/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
new file mode 100644
index 000..ac85ca6
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
@@ -0,0 +1,1688 @@
+// mkerrors.sh -marm
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build arm,netbsd
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -marm _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ARP= 0x1c
+   AF_BLUETOOTH  = 0x1f
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x20
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x18
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x23
+   AF_MPLS   = 0x21
+   AF_NATM   = 0x1b
+   AF_NS = 0x6
+   AF_OROUTE = 0x11
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x22
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   ARPHRD_ARCNET = 0x7
+   ARPHRD_ETHER  = 0x1
+   ARPHRD_FRELAY = 0xf
+   ARPHRD_IEEE1394   = 0x18
+   ARPHRD_IEEE802= 0x6
+   ARPHRD_STRIP  = 0x17
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B460800   = 0x70800
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B921600   = 0xe1000
+   B9600 = 0x2580
+   BIOCFEEDBACK  = 0x8004427d
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc0084277
+   BIOCGETIF = 0x4090426b
+   BIOCGFEEDBACK = 0x4004427c
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRTIMEOUT = 0x400c427b
+   BIOCGSEESENT  = 0x40044278
+   BIOCGSTATS= 0x4080426f
+   BIOCGSTATSOLD = 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044276
+   BIOCSETF  = 0x80084267
+   BIOCSETIF = 0x8090426c
+   BIOCSFEEDBACK = 0x8004427d
+   BIOCSHDRCMPLT = 0x80044275
+

[44/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mitchellh/mapstructure/mapstructure_benchmark_test.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/mitchellh/mapstructure/mapstructure_benchmark_test.go
 
b/newt/Godeps/_workspace/src/github.com/mitchellh/mapstructure/mapstructure_benchmark_test.go
deleted file mode 100644
index 41d2a41..000
--- 
a/newt/Godeps/_workspace/src/github.com/mitchellh/mapstructure/mapstructure_benchmark_test.go
+++ /dev/null
@@ -1,279 +0,0 @@
-package mapstructure
-
-import (
-   "encoding/json"
-   "testing"
-)
-
-func Benchmark_Decode(b *testing.B) {
-   type Person struct {
-   Name   string
-   Ageint
-   Emails []string
-   Extra  map[string]string
-   }
-
-   input := map[string]interface{}{
-   "name":   "Mitchell",
-   "age":91,
-   "emails": []string{"one", "two", "three"},
-   "extra": map[string]string{
-   "twitter": "mitchellh",
-   },
-   }
-
-   var result Person
-   for i := 0; i < b.N; i++ {
-   Decode(input, )
-   }
-}
-
-// decodeViaJSON takes the map data and passes it through encoding/json to 
convert it into the
-// given Go native structure pointed to by v. v must be a pointer to a struct.
-func decodeViaJSON(data interface{}, v interface{}) error {
-   // Perform the task by simply marshalling the input into JSON,
-   // then unmarshalling it into target native Go struct.
-   b, err := json.Marshal(data)
-   if err != nil {
-   return err
-   }
-   return json.Unmarshal(b, v)
-}
-
-func Benchmark_DecodeViaJSON(b *testing.B) {
-   type Person struct {
-   Name   string
-   Ageint
-   Emails []string
-   Extra  map[string]string
-   }
-
-   input := map[string]interface{}{
-   "name":   "Mitchell",
-   "age":91,
-   "emails": []string{"one", "two", "three"},
-   "extra": map[string]string{
-   "twitter": "mitchellh",
-   },
-   }
-
-   var result Person
-   for i := 0; i < b.N; i++ {
-   decodeViaJSON(input, )
-   }
-}
-
-func Benchmark_DecodeBasic(b *testing.B) {
-   input := map[string]interface{}{
-   "vstring": "foo",
-   "vint":42,
-   "Vuint":   42,
-   "vbool":   true,
-   "Vfloat":  42.42,
-   "vsilent": true,
-   "vdata":   42,
-   }
-
-   var result Basic
-   for i := 0; i < b.N; i++ {
-   Decode(input, )
-   }
-}
-
-func Benchmark_DecodeEmbedded(b *testing.B) {
-   input := map[string]interface{}{
-   "vstring": "foo",
-   "Basic": map[string]interface{}{
-   "vstring": "innerfoo",
-   },
-   "vunique": "bar",
-   }
-
-   var result Embedded
-   for i := 0; i < b.N; i++ {
-   Decode(input, )
-   }
-}
-
-func Benchmark_DecodeTypeConversion(b *testing.B) {
-   input := map[string]interface{}{
-   "IntToFloat":42,
-   "IntToUint": 42,
-   "IntToBool": 1,
-   "IntToString":   42,
-   "UintToInt": 42,
-   "UintToFloat":   42,
-   "UintToBool":42,
-   "UintToString":  42,
-   "BoolToInt": true,
-   "BoolToUint":true,
-   "BoolToFloat":   true,
-   "BoolToString":  true,
-   "FloatToInt":42.42,
-   "FloatToUint":   42.42,
-   "FloatToBool":   42.42,
-   "FloatToString": 42.42,
-   "StringToInt":   "42",
-   "StringToUint":  "42",
-   "StringToBool":  "1",
-   "StringToFloat": "42.42",
-   "SliceToMap":[]interface{}{},
-   "MapToSlice":map[string]interface{}{},
-   }
-
-   var resultStrict TypeConversionResult
-   for i := 0; i < b.N; i++ {
-   Decode(input, )
-   }
-}
-
-func Benchmark_DecodeMap(b *testing.B) {
-   input := map[string]interface{}{
-   "vfoo": "foo",
-   "vother": map[interface{}]interface{}{
-   "foo": "foo",
-   "bar": "bar",
-   },
-   }
-
-   var result Map
-   for i := 0; i < b.N; i++ {
-   Decode(input, )
-   }
-}
-
-func Benchmark_DecodeMapOfStruct(b *testing.B) {
-   input := map[string]interface{}{
-   "value": map[string]interface{}{
-   "foo": map[string]string{"vstring": "one"},
-   "bar": 

[25/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go 
b/newt/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
new file mode 100644
index 000..1f6f4b9
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
@@ -0,0 +1,173 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build arm64,linux
+
+package unix
+
+const _SYS_dup = SYS_DUP3
+
+//sys  Fchown(fd int, uid int, gid int) (err error)
+//sys  Fstat(fd int, stat *Stat_t) (err error)
+//sys  Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
+//sys  Fstatfs(fd int, buf *Statfs_t) (err error)
+//sys  Ftruncate(fd int, length int64) (err error)
+//sysnbGetegid() (egid int)
+//sysnbGeteuid() (euid int)
+//sysnbGetgid() (gid int)
+//sysnbGetrlimit(resource int, rlim *Rlimit) (err error)
+//sysnbGetuid() (uid int)
+//sys  Listen(s int, n int) (err error)
+//sys  Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
+//sys  Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
+//sys  Seek(fd int, offset int64, whence int) (off int64, err error) = 
SYS_LSEEK
+//sys  Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, 
err error) = SYS_PSELECT6
+//sys  sendfile(outfd int, infd int, offset *int64, count int) (written int, 
err error)
+//sys  Setfsgid(gid int) (err error)
+//sys  Setfsuid(uid int) (err error)
+//sysnbSetregid(rgid int, egid int) (err error)
+//sysnbSetresgid(rgid int, egid int, sgid int) (err error)
+//sysnbSetresuid(ruid int, euid int, suid int) (err error)
+//sysnbSetrlimit(resource int, rlim *Rlimit) (err error)
+//sysnbSetreuid(ruid int, euid int) (err error)
+//sys  Shutdown(fd int, how int) (err error)
+//sys  Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) 
(n int64, err error)
+
+func Stat(path string, stat *Stat_t) (err error) {
+   return Fstatat(AT_FDCWD, path, stat, 0)
+}
+
+func Lchown(path string, uid int, gid int) (err error) {
+   return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW)
+}
+
+func Lstat(path string, stat *Stat_t) (err error) {
+   return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW)
+}
+
+//sys  Statfs(path string, buf *Statfs_t) (err error)
+//sys  SyncFileRange(fd int, off int64, n int64, flags int) (err error)
+//sys  Truncate(path string, length int64) (err error)
+//sys  accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err 
error)
+//sys  accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd 
int, err error)
+//sys  bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
+//sys  connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
+//sysnbgetgroups(n int, list *_Gid_t) (nn int, err error)
+//sysnbsetgroups(n int, list *_Gid_t) (err error)
+//sys  getsockopt(s int, level int, name int, val unsafe.Pointer, vallen 
*_Socklen) (err error)
+//sys  setsockopt(s int, level int, name int, val unsafe.Pointer, vallen 
uintptr) (err error)
+//sysnbsocket(domain int, typ int, proto int) (fd int, err error)
+//sysnbsocketpair(domain int, typ int, proto int, fd *[2]int32) (err 
error)
+//sysnbgetpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) 
(err error)
+//sysnbgetsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) 
(err error)
+//sys  recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen 
*_Socklen) (n int, err error)
+//sys  sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen 
_Socklen) (err error)
+//sys  recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
+//sys  sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
+//sys  mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset 
int64) (xaddr uintptr, err error)
+
+func Getpagesize() int { return 65536 }
+
+//sysnbGettimeofday(tv *Timeval) (err error)
+
+func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + 
int64(ts.Nsec) }
+
+func NsecToTimespec(nsec int64) (ts Timespec) {
+   ts.Sec = nsec / 1e9
+   ts.Nsec = nsec % 1e9
+   return
+}
+
+func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + 
int64(tv.Usec)*1e3 }
+
+func NsecToTimeval(nsec int64) (tv Timeval) {
+   nsec += 999 // round up to microsecond
+   tv.Sec = nsec / 1e9
+   tv.Usec = nsec % 1e9 / 1e3
+   return
+}
+
+func Time(t *Time_t) (Time_t, error) {
+   var tv Timeval
+   err := Gettimeofday()
+   if err != nil {
+   return 0, err
+   }
+   if t != nil {
+   *t = Time_t(tv.Sec)
+  

[22/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
new file mode 100644
index 000..9594f93
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
@@ -0,0 +1,1576 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build amd64,darwin
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1c
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x25
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1e
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1c
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x28
+   AF_NATM   = 0x1f
+   AF_NDRV   = 0x1b
+   AF_NETBIOS= 0x21
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PPP= 0x22
+   AF_PUP= 0x4
+   AF_RESERVED_36= 0x24
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x18
+   AF_SNA= 0xb
+   AF_SYSTEM = 0x20
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   AF_UTUN   = 0x26
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc00c4279
+   BIOCGETIF = 0x4020426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044272
+   BIOCGRTIMEOUT = 0x4010426e
+   BIOCGSEESENT  = 0x40044276
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044278
+   BIOCSETF  = 0x80104267
+   BIOCSETFNR= 0x8010427e
+   BIOCSETIF = 0x8020426c
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044273
+   BIOCSRTIMEOUT = 0x8010426d
+   BIOCSSEESENT  = 0x80044277
+   BIOCVERSION   = 0x40044271
+   BPF_A = 0x10
+   BPF_ABS   = 0x20
+   BPF_ADD 

[2/2] incubator-mynewt-site git commit: Updated Blinky on Olimex tutorial. Closes pull request #53

2016-03-19 Thread aditi
Updated Blinky on Olimex tutorial. Closes pull request #53


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

Branch: refs/heads/asf-site
Commit: 477d85dcd7af74a00a83cb0f980ae9444882e45c
Parents: 2393faf
Author: aditihilbert 
Authored: Wed Mar 16 18:25:42 2016 -0700
Committer: aditihilbert 
Committed: Wed Mar 16 18:25:42 2016 -0700

--
 mkdocs/search_index.json |  35 ++-
 os/tutorials/olimex/index.html   | 424 --
 os/tutorials/pics/bottomview.png | Bin 1995826 -> 701983 bytes
 os/tutorials/pics/topview.png| Bin 1945584 -> 72 bytes
 sitemap.xml  |  20 +-
 5 files changed, 232 insertions(+), 247 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/477d85dc/mkdocs/search_index.json
--
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
index 034f2e2..4843986 100644
--- a/mkdocs/search_index.json
+++ b/mkdocs/search_index.json
@@ -247,7 +247,7 @@
 }, 
 {
 "location": "/os/tutorials/olimex/", 
-"text": "Blinky, Your Hello World!\n\n\nObjective\n\n\nLearn how 
to use packages from a default application repository of Mynewt to build your 
first \nHello World\n application (Blinky) on a target board. Once built using 
\nnewt\n tool, this application will blink the LED lights on the target board. 
Fun stuff!\n\n\nThis tutorial will guide to achieve the following, assuming you 
have already set up the environment on your computer to use Mynewt OS and newt 
tool:\n\n\nDownload packages and use tools to create a runtime image for a 
board to make its LED blink. You have two choices here:\n* \nDownload an 
image to SRAM\n, or \n* \nDownload it to flash\n.\n\n\n Time Requirement\n: 
Allow yourself a couple of hours for this project if you are relatively new to 
embedded systems and playing with development boards. Those jumpers can be 
pesky!\n\n\nWhat you need\n\n\n\n\nSTM32-E407 development board from Olimex. 
You can order it from \nhttp://www.mouser.com\n, \nhttp://www.
 digikey.com\n, and other places.\n\n\nARM-USB-TINY-H connector with JTAG 
interface for debugging ARM microcontrollers (comes with the ribbon cable to 
hook up to the board)\n\n\nUSB A-B type cable to connect the debugger to your 
personal computer\n\n\nPersonal Computer with Mac OS (Mac: OS X Yosemite 
Version 10.10.5) or Linux box (Ubuntu 14.10: Utopic Unicorn)\n\n\nAn account on 
Github repository and \ngit\n installed on your computer.\n\n\nIt assumed you 
already installed native tools described \nhere\n\n\n\n\nAlso, we assume that 
you're familiar with UNIX shells.\n\n\nLet's gets started!\n\n\nUse SRAM to 
make LED blink\n\n\nIf you wish to build the image to run from the onboard SRAM 
on Olimex board, follow the steps below:\n\n\nPreparing the 
Software\n\n\n\n\n\n\nMake sure the PATH environment variable includes the 
$HOME/dev/go/bin directory. \n\n\n\n\n\n\nIf you have cloned the larva 
repository for the simulator test in the previous section, you can skip this 
step. Otherwise, you 
 have to create a repository for the project. Go to ~/dev and clone the larva 
repository from the apache git repository into a local directory named 
\nlarva\n.\n\n\n\n\n\n\n$ cd ~/dev \n$ git clone 
https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva.git larva\n  
  $ ls\n\ngo  larva\n$ ls larva\nDISCLAIMER  NOTICE 
 app.yml compilerhw  net project sys\nLICENSE 
README.md   autotargets fs  libspkg-list.yml
scripts\n\n\n\n\n\n\n\n\n\nChange directory to ~dev/larva directory and build 
the \nblinky\n project inside larva, using the \nnewt\n tool. Starting with the 
target name, assign specific aspects of the project, as shown below, to pull 
the appropriate packages and build the right bundle or list for the board. For 
example, we set the architecture (arch), compiler, board support package (bsp), 
project, and compiler mode.\n\n\n(Remember to prefix each command with 
\"newtvm\" if you are executi
 ng the newt command in a Linux virtual machine on your Windows 
box!)\n\n\n\n\n\n\n$ newt target create blinky\nCreating target 
blinky\nTarget blinky sucessfully created!\n$ newt target set 
blinky arch=cortex_m4\nTarget blinky successfully set arch to arm\n 
   $ newt target set blinky compiler=arm-none-eabi-m4\nTarget blinky 
successfully set 

[5/5] incubator-mynewt-core git commit: This closes #17 (paulfdietrich:MYNEWT-210)

2016-03-19 Thread ccollins
This closes #17 (paulfdietrich:MYNEWT-210)


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

Branch: refs/heads/develop
Commit: 18477e345eadc752ab11586ebcbe615836cce9d3
Parents: 44e560f 04dbf5c
Author: Christopher Collins 
Authored: Fri Mar 18 12:43:18 2016 -0700
Committer: Christopher Collins 
Committed: Fri Mar 18 12:43:18 2016 -0700

--
 libs/json/include/json/json.h |   6 +
 libs/json/pkg.yml |   2 +
 libs/json/src/test/test_json.c|  41 +
 libs/json/src/test/test_json.h|  27 
 libs/json/src/test/test_json_simple.c | 205 +
 libs/testutil/include/testutil/testutil.h |   4 +
 6 files changed, 285 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/18477e34/libs/json/pkg.yml
--
diff --cc libs/json/pkg.yml
index 4944622,b0bf349..3dc0be6
--- a/libs/json/pkg.yml
+++ b/libs/json/pkg.yml
@@@ -18,9 -18,13 +18,11 @@@
  #
  
  pkg.name: libs/json 
 -pkg.vers: 0.8.0
  pkg.description: JSON encoding / decoding library.
 -pkg.author: Sterling Hughes 
 -pkg.homepage: http://mynewt.apache.org/os/modules/json/json/
 -pkg.repository: https://git-wip-us.apache.org/repos/asf/incubator-mynewt-core
 +pkg.author: "Apache Mynewt "
 +pkg.homepage: "http://mynewt.apache.org/;
  pkg.keywords:
+ pkg.deps.TEST:
+- libs/testutil
  
  pkg.cflags.float_user: -DFLOAT_SUPPORT



[32/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3ext.h
--
diff --git a/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3ext.h 
b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3ext.h
new file mode 100644
index 000..afb689a
--- /dev/null
+++ b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3ext.h
@@ -0,0 +1,542 @@
+/*
+** 2006 June 7
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+*
+** This header file defines the SQLite interface for use by
+** shared libraries that want to be imported as extensions into
+** an SQLite instance.  Shared libraries that intend to be loaded
+** as extensions by SQLite should #include this file instead of 
+** sqlite3.h.
+*/
+#ifndef _SQLITE3EXT_H_
+#define _SQLITE3EXT_H_
+#include "sqlite3-binding.h"
+
+typedef struct sqlite3_api_routines sqlite3_api_routines;
+
+/*
+** The following structure holds pointers to all of the SQLite API
+** routines.
+**
+** WARNING:  In order to maintain backwards compatibility, add new
+** interfaces to the end of this structure only.  If you insert new
+** interfaces in the middle of this structure, then older different
+** versions of SQLite will not be able to load each other's shared
+** libraries!
+*/
+struct sqlite3_api_routines {
+  void * (*aggregate_context)(sqlite3_context*,int nBytes);
+  int  (*aggregate_count)(sqlite3_context*);
+  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
+  int  (*bind_double)(sqlite3_stmt*,int,double);
+  int  (*bind_int)(sqlite3_stmt*,int,int);
+  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);
+  int  (*bind_null)(sqlite3_stmt*,int);
+  int  (*bind_parameter_count)(sqlite3_stmt*);
+  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
+  const char * (*bind_parameter_name)(sqlite3_stmt*,int);
+  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
+  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
+  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);
+  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
+  int  (*busy_timeout)(sqlite3*,int ms);
+  int  (*changes)(sqlite3*);
+  int  (*close)(sqlite3*);
+  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
+   int eTextRep,const char*));
+  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
+ int eTextRep,const void*));
+  const void * (*column_blob)(sqlite3_stmt*,int iCol);
+  int  (*column_bytes)(sqlite3_stmt*,int iCol);
+  int  (*column_bytes16)(sqlite3_stmt*,int iCol);
+  int  (*column_count)(sqlite3_stmt*pStmt);
+  const char * (*column_database_name)(sqlite3_stmt*,int);
+  const void * (*column_database_name16)(sqlite3_stmt*,int);
+  const char * (*column_decltype)(sqlite3_stmt*,int i);
+  const void * (*column_decltype16)(sqlite3_stmt*,int);
+  double  (*column_double)(sqlite3_stmt*,int iCol);
+  int  (*column_int)(sqlite3_stmt*,int iCol);
+  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);
+  const char * (*column_name)(sqlite3_stmt*,int);
+  const void * (*column_name16)(sqlite3_stmt*,int);
+  const char * (*column_origin_name)(sqlite3_stmt*,int);
+  const void * (*column_origin_name16)(sqlite3_stmt*,int);
+  const char * (*column_table_name)(sqlite3_stmt*,int);
+  const void * (*column_table_name16)(sqlite3_stmt*,int);
+  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
+  const void * (*column_text16)(sqlite3_stmt*,int iCol);
+  int  (*column_type)(sqlite3_stmt*,int iCol);
+  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
+  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
+  int  (*complete)(const char*sql);
+  int  (*complete16)(const void*sql);
+  int  (*create_collation)(sqlite3*,const char*,int,void*,
+   int(*)(void*,int,const void*,int,const void*));
+  int  (*create_collation16)(sqlite3*,const void*,int,void*,
+ int(*)(void*,int,const void*,int,const void*));
+  int  (*create_function)(sqlite3*,const char*,int,int,void*,
+  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
+  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
+  void (*xFinal)(sqlite3_context*));
+  int  (*create_function16)(sqlite3*,const void*,int,int,void*,
+void 
(*xFunc)(sqlite3_context*,int,sqlite3_value**),
+void 
(*xStep)(sqlite3_context*,int,sqlite3_value**),
+void 

[14/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
new file mode 100644
index 000..d370be0
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
@@ -0,0 +1,1817 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x28
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_NFC   = 0x27
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CAIF  = 0x336
+   ARPHRD_CAN   = 0x118
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   ARPHRD_NETROM= 0x0
+   ARPHRD_NONE  = 0xfffe
+   ARPHRD_PHONET= 0x334
+   ARPHRD_PHONET_PIPE   = 0x335
+   ARPHRD_PIMREG  

[4/6] incubator-mynewt-site git commit: closes pull requests #56 and #57. Also rearranged tutorial order and added intros to tutorials and Quick Start

2016-03-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/network/ble/ble_intro/index.html
--
diff --git a/network/ble/ble_intro/index.html b/network/ble/ble_intro/index.html
index 6dc9aa9..6c14084 100644
--- a/network/ble/ble_intro/index.html
+++ b/network/ble/ble_intro/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/callout/callout/index.html
--
diff --git a/os/core_os/callout/callout/index.html 
b/os/core_os/callout/callout/index.html
index 7de538e..e0e591b 100644
--- a/os/core_os/callout/callout/index.html
+++ b/os/core_os/callout/callout/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/callout/os_callout_func_init/index.html
--
diff --git a/os/core_os/callout/os_callout_func_init/index.html 
b/os/core_os/callout/os_callout_func_init/index.html
index 67f32eb..33a05c9 100644
--- a/os/core_os/callout/os_callout_func_init/index.html
+++ b/os/core_os/callout/os_callout_func_init/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/callout/os_callout_init/index.html
--
diff --git a/os/core_os/callout/os_callout_init/index.html 
b/os/core_os/callout/os_callout_init/index.html
index 26751d0..84ce657 100644
--- a/os/core_os/callout/os_callout_init/index.html
+++ b/os/core_os/callout/os_callout_init/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/callout/os_callout_queued/index.html
--
diff --git a/os/core_os/callout/os_callout_queued/index.html 
b/os/core_os/callout/os_callout_queued/index.html
index e8d5c17..b30c79b 100644
--- a/os/core_os/callout/os_callout_queued/index.html
+++ b/os/core_os/callout/os_callout_queued/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/callout/os_callout_reset/index.html
--
diff --git a/os/core_os/callout/os_callout_reset/index.html 
b/os/core_os/callout/os_callout_reset/index.html
index e188411..1c4849d 100644
--- a/os/core_os/callout/os_callout_reset/index.html
+++ b/os/core_os/callout/os_callout_reset/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/callout/os_callout_stop/index.html
--
diff --git a/os/core_os/callout/os_callout_stop/index.html 
b/os/core_os/callout/os_callout_stop/index.html
index 75fffe4..ff20849 100644
--- a/os/core_os/callout/os_callout_stop/index.html
+++ b/os/core_os/callout/os_callout_stop/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/dfb65f62/os/core_os/context_switch/context_switch/index.html
--
diff --git a/os/core_os/context_switch/context_switch/index.html 
b/os/core_os/context_switch/context_switch/index.html
index 29238ef..212d2d8 100644
--- a/os/core_os/context_switch/context_switch/index.html
+++ b/os/core_os/context_switch/context_switch/index.html
@@ -201,9 +201,7 @@
 
   
   
-Get Started
+Get Started
   
 
   
@@ -225,9 +223,7 @@
 
   
   
-Tutorials
+Tutorials
   
 
   


[incubator-mynewt-blinky] Git Push Summary

2016-03-19 Thread ccollins
Repository: incubator-mynewt-blinky
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [created] b164a28e4


[5/6] incubator-mynewt-site git commit: Merge branch 'MYNEWT-251' of https://github.com/paulfdietrich/incubator-mynewt-site

2016-03-19 Thread aditi
Merge branch 'MYNEWT-251' of 
https://github.com/paulfdietrich/incubator-mynewt-site

This closes #56


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

Branch: refs/heads/master
Commit: 1fb01dc5ed178e2152e64add810293af3c507e87
Parents: 4f64fe7 7da8ae5
Author: aditihilbert 
Authored: Thu Mar 17 16:40:24 2016 -0700
Committer: aditihilbert 
Committed: Thu Mar 17 16:40:24 2016 -0700

--
 docs/os/tutorials/STM32F303.md | 332 
 1 file changed, 151 insertions(+), 181 deletions(-)
--




[30/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/spf13/cobra/bash_completions.go
--
diff --git a/newt/vendor/github.com/spf13/cobra/bash_completions.go 
b/newt/vendor/github.com/spf13/cobra/bash_completions.go
new file mode 100644
index 000..eea11ee
--- /dev/null
+++ b/newt/vendor/github.com/spf13/cobra/bash_completions.go
@@ -0,0 +1,532 @@
+package cobra
+
+import (
+   "fmt"
+   "io"
+   "os"
+   "sort"
+   "strings"
+
+   "github.com/spf13/pflag"
+)
+
+const (
+   BashCompFilenameExt = 
"cobra_annotation_bash_completion_filename_extentions"
+   BashCompOneRequiredFlag = 
"cobra_annotation_bash_completion_one_required_flag"
+   BashCompSubdirsInDir= 
"cobra_annotation_bash_completion_subdirs_in_dir"
+)
+
+func preamble(out io.Writer, name string) error {
+   _, err := fmt.Fprintf(out, "# bash completion for %-36s -*- 
shell-script -*-\n", name)
+   if err != nil {
+   return err
+   }
+   _, err = fmt.Fprintf(out, `
+__debug()
+{
+if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
+echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
+fi
+}
+
+# Homebrew on Macs have version 1.3 of bash-completion which doesn't include
+# _init_completion. This is a very minimal version of that function.
+__my_init_completion()
+{
+COMPREPLY=()
+_get_comp_words_by_ref cur prev words cword
+}
+
+__index_of_word()
+{
+local w word=$1
+shift
+index=0
+for w in "$@"; do
+[[ $w = "$word" ]] && return
+index=$((index+1))
+done
+index=-1
+}
+
+__contains_word()
+{
+local w word=$1; shift
+for w in "$@"; do
+[[ $w = "$word" ]] && return
+done
+return 1
+}
+
+__handle_reply()
+{
+__debug "${FUNCNAME}"
+case $cur in
+-*)
+if [[ $(type -t compopt) = "builtin" ]]; then
+compopt -o nospace
+fi
+local allflags
+if [ ${#must_have_one_flag[@]} -ne 0 ]; then
+allflags=("${must_have_one_flag[@]}")
+else
+allflags=("${flags[*]} ${two_word_flags[*]}")
+fi
+COMPREPLY=( $(compgen -W "${allflags[*]}" -- "$cur") )
+if [[ $(type -t compopt) = "builtin" ]]; then
+[[ $COMPREPLY == *= ]] || compopt +o nospace
+fi
+return 0;
+;;
+esac
+
+# check if we are handling a flag with special work handling
+local index
+__index_of_word "${prev}" "${flags_with_completion[@]}"
+if [[ ${index} -ge 0 ]]; then
+${flags_completion[${index}]}
+return
+fi
+
+# we are parsing a flag and don't have a special handler, no completion
+if [[ ${cur} != "${words[cword]}" ]]; then
+return
+fi
+
+local completions
+if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then
+completions=("${must_have_one_flag[@]}")
+elif [[ ${#must_have_one_noun[@]} -ne 0 ]]; then
+completions=("${must_have_one_noun[@]}")
+else
+completions=("${commands[@]}")
+fi
+COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") )
+
+if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
+declare -F __custom_func >/dev/null && __custom_func
+fi
+
+__ltrim_colon_completions "$cur"
+}
+
+# The arguments should be in the form "ext1|ext2|extn"
+__handle_filename_extension_flag()
+{
+local ext="$1"
+_filedir "@(${ext})"
+}
+
+__handle_subdirs_in_dir_flag()
+{
+local dir="$1"
+pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1
+}
+
+__handle_flag()
+{
+__debug "${FUNCNAME}: c is $c words[c] is ${words[c]}"
+
+# if a command required a flag, and we found it, unset must_have_one_flag()
+local flagname=${words[c]}
+local flagvalue
+# if the word contained an =
+if [[ ${words[c]} == *"="* ]]; then
+flagvalue=${flagname#*=} # take in as flagvalue after the =
+flagname=${flagname%%=*} # strip everything after the =
+flagname="${flagname}=" # but put the = back
+fi
+__debug "${FUNCNAME}: looking for ${flagname}"
+if __contains_word "${flagname}" "${must_have_one_flag[@]}"; then
+must_have_one_flag=()
+fi
+
+# keep flag value with flagname as flaghash
+if [ ${flagvalue} ] ; then
+flaghash[${flagname}]=${flagvalue}
+elif [ ${words[ $((c+1)) ]} ] ; then
+flaghash[${flagname}]=${words[ $((c+1)) ]}
+else
+flaghash[${flagname}]="true" # pad "true" for bool flag
+fi
+
+# skip the argument to a two word flag
+if __contains_word "${words[c]}" "${two_word_flags[@]}"; then
+c=$((c+1))
+# if we are looking for a flags value, don't show commands
+if [[ $c -eq $cword ]]; then
+commands=()
+fi
+fi
+
+c=$((c+1))
+
+}
+
+__handle_noun()
+{
+__debug "${FUNCNAME}: 

[12/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
new file mode 100644
index 000..1cc76a7
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
@@ -0,0 +1,1742 @@
+// mkerrors.sh
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build arm,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x27
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802154_PHY= 0x325
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   ARPHRD_NETROM= 0x0
+   ARPHRD_NONE  = 0xfffe
+   ARPHRD_PIMREG= 0x30b
+   ARPHRD_PPP   = 0x200
+   ARPHRD_PRONET= 0x4
+   ARPHRD_RAWHDLC   = 0x206
+   ARPHRD_ROSE  

[incubator-mynewt-core] Git Push Summary

2016-03-19 Thread ccollins
Repository: incubator-mynewt-core
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [deleted] b77eaf893


[46/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3ext.h
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3ext.h 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3ext.h
deleted file mode 100644
index afb689a..000
--- a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3ext.h
+++ /dev/null
@@ -1,542 +0,0 @@
-/*
-** 2006 June 7
-**
-** The author disclaims copyright to this source code.  In place of
-** a legal notice, here is a blessing:
-**
-**May you do good and not evil.
-**May you find forgiveness for yourself and forgive others.
-**May you share freely, never taking more than you give.
-**
-*
-** This header file defines the SQLite interface for use by
-** shared libraries that want to be imported as extensions into
-** an SQLite instance.  Shared libraries that intend to be loaded
-** as extensions by SQLite should #include this file instead of 
-** sqlite3.h.
-*/
-#ifndef _SQLITE3EXT_H_
-#define _SQLITE3EXT_H_
-#include "sqlite3-binding.h"
-
-typedef struct sqlite3_api_routines sqlite3_api_routines;
-
-/*
-** The following structure holds pointers to all of the SQLite API
-** routines.
-**
-** WARNING:  In order to maintain backwards compatibility, add new
-** interfaces to the end of this structure only.  If you insert new
-** interfaces in the middle of this structure, then older different
-** versions of SQLite will not be able to load each other's shared
-** libraries!
-*/
-struct sqlite3_api_routines {
-  void * (*aggregate_context)(sqlite3_context*,int nBytes);
-  int  (*aggregate_count)(sqlite3_context*);
-  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
-  int  (*bind_double)(sqlite3_stmt*,int,double);
-  int  (*bind_int)(sqlite3_stmt*,int,int);
-  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);
-  int  (*bind_null)(sqlite3_stmt*,int);
-  int  (*bind_parameter_count)(sqlite3_stmt*);
-  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
-  const char * (*bind_parameter_name)(sqlite3_stmt*,int);
-  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
-  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
-  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);
-  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
-  int  (*busy_timeout)(sqlite3*,int ms);
-  int  (*changes)(sqlite3*);
-  int  (*close)(sqlite3*);
-  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
-   int eTextRep,const char*));
-  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
- int eTextRep,const void*));
-  const void * (*column_blob)(sqlite3_stmt*,int iCol);
-  int  (*column_bytes)(sqlite3_stmt*,int iCol);
-  int  (*column_bytes16)(sqlite3_stmt*,int iCol);
-  int  (*column_count)(sqlite3_stmt*pStmt);
-  const char * (*column_database_name)(sqlite3_stmt*,int);
-  const void * (*column_database_name16)(sqlite3_stmt*,int);
-  const char * (*column_decltype)(sqlite3_stmt*,int i);
-  const void * (*column_decltype16)(sqlite3_stmt*,int);
-  double  (*column_double)(sqlite3_stmt*,int iCol);
-  int  (*column_int)(sqlite3_stmt*,int iCol);
-  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);
-  const char * (*column_name)(sqlite3_stmt*,int);
-  const void * (*column_name16)(sqlite3_stmt*,int);
-  const char * (*column_origin_name)(sqlite3_stmt*,int);
-  const void * (*column_origin_name16)(sqlite3_stmt*,int);
-  const char * (*column_table_name)(sqlite3_stmt*,int);
-  const void * (*column_table_name16)(sqlite3_stmt*,int);
-  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
-  const void * (*column_text16)(sqlite3_stmt*,int iCol);
-  int  (*column_type)(sqlite3_stmt*,int iCol);
-  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
-  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
-  int  (*complete)(const char*sql);
-  int  (*complete16)(const void*sql);
-  int  (*create_collation)(sqlite3*,const char*,int,void*,
-   int(*)(void*,int,const void*,int,const void*));
-  int  (*create_collation16)(sqlite3*,const void*,int,void*,
- int(*)(void*,int,const void*,int,const void*));
-  int  (*create_function)(sqlite3*,const char*,int,int,void*,
-  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
-  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
-  void (*xFinal)(sqlite3_context*));
-  int  (*create_function16)(sqlite3*,const void*,int,int,void*,
-void 
(*xFunc)(sqlite3_context*,int,sqlite3_value**),
-void 

[42/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go 
b/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go
deleted file mode 100644
index 5ad9c96..000
--- a/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go
+++ /dev/null
@@ -1,1133 +0,0 @@
-// Copyright © 2015 Steve Francia .
-//
-// Licensed 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.
-
-// Parts inspired by https://github.com/ryanuber/go-license
-
-package cmd
-
-import "strings"
-
-//Licenses contains all possible licenses a user can chose from
-var Licenses map[string]License
-
-//License represents a software license agreement, containing the Name of
-// the license, its possible matches (on the command line as given to cobra)
-// the header to be used with each file on the file's creating, and the text
-// of the license
-type License struct {
-   Namestring   // The type of license in use
-   PossibleMatches []string // Similar names to guess
-   Textstring   // License text data
-   Header  string   // License header for source files
-}
-
-// given a license name (in), try to match the license indicated
-func matchLicense(in string) string {
-   for key, lic := range Licenses {
-   for _, match := range lic.PossibleMatches {
-   if strings.EqualFold(in, match) {
-   return key
-   }
-   }
-   }
-   return ""
-}
-
-func init() {
-   Licenses = make(map[string]License)
-
-   Licenses["apache"] = License{
-   Name:"Apache 2.0",
-   PossibleMatches: []string{"apache", "apache20", "apache 2.0", 
"apache2.0", "apache-2.0"},
-   Header: `
-// Licensed 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.`,
-   Text: `
- Apache License
-   Version 2.0, January 2004
-http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-  "License" shall mean the terms and conditions for use, reproduction,
-  and distribution as defined by Sections 1 through 9 of this document.
-
-  "Licensor" shall mean the copyright owner or entity authorized by
-  the copyright owner that is granting the License.
-
-  "Legal Entity" shall mean the union of the acting entity and all
-  other entities that control, are controlled by, or are under common
-  control with that entity. For the purposes of this definition,
-  "control" means (i) the power, direct or indirect, to cause the
-  direction or management of such entity, whether by contract or
-  otherwise, or (ii) ownership of fifty percent (50%) or more of the
-  outstanding shares, or (iii) beneficial ownership of such entity.
-
-  "You" (or "Your") shall mean an individual or Legal Entity
-  exercising permissions granted by this License.
-
-  "Source" form shall mean the preferred form for making modifications,
-  including but not limited to software source code, documentation
-  source, and configuration files.
-
-  "Object" form shall mean any form resulting from mechanical
-  transformation or translation of a Source form, including but
-  not limited to compiled object code, generated documentation,
-  and conversions to other media types.
-
-  "Work" shall mean the work of authorship, whether in Source or
-  Object form, made available under the License, as indicated by a
-  copyright notice that is included in or attached to the work
-  (an example is provided in the Appendix 

[1/2] incubator-mynewt-newt git commit: Don't show unittest package in "newt info"

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop bb53feda0 -> cd6087c6c


Don't show unittest package in "newt info"


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

Branch: refs/heads/develop
Commit: 9a826fd48f7e6536ae212b604249729228fb5511
Parents: bb53fed
Author: Christopher Collins 
Authored: Wed Mar 16 18:51:55 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 18:51:55 2016 -0700

--
 newt/cli/project_cmds.go | 9 -
 newt/cli/target_cmds.go  | 6 +++---
 2 files changed, 11 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/9a826fd4/newt/cli/project_cmds.go
--
diff --git a/newt/cli/project_cmds.go b/newt/cli/project_cmds.go
index c9a4ce7..7bf03b7 100644
--- a/newt/cli/project_cmds.go
+++ b/newt/cli/project_cmds.go
@@ -131,7 +131,14 @@ func infoRunCmd(cmd *cobra.Command, args []string) {
if reqRepoName == "all" || reqRepoName == repoName {
packNames := []string{}
for _, pack := range *proj.PackageList()[repoName] {
-   packNames = append(packNames, pack.Name())
+   // Don't display the special unittest target; 
this is used
+   // internally by newt, so the user doesn't need 
to know about
+   // it.
+   // XXX: This is a hack; come up with a better 
solution for
+   // unit testing.
+   if !strings.HasSuffix(pack.Name(), "/unittest") 
{
+   packNames = append(packNames, 
pack.Name())
+   }
}
 
sort.Strings(packNames)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/9a826fd4/newt/cli/target_cmds.go
--
diff --git a/newt/cli/target_cmds.go b/newt/cli/target_cmds.go
index 1fcc7a6..975d3e5 100644
--- a/newt/cli/target_cmds.go
+++ b/newt/cli/target_cmds.go
@@ -89,9 +89,9 @@ func targetShowCmd(cmd *cobra.Command, args []string) {
for name, _ := range target.GetTargets() {
// Don't display the special unittest target; this is 
used
// internally by newt, so the user doesn't need to know 
about it.
-   // XXX: This is a hack; come up with a better solution 
for hiding
-   // targets.
-   if name != "targets/unittest" {
+   // XXX: This is a hack; come up with a better solution 
for unit
+   // testing.
+   if !strings.HasSuffix(name, "/unittest") {
targetNames = append(targetNames, name)
}
}



[20/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
new file mode 100644
index 000..3189c6b
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
@@ -0,0 +1,1576 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build arm64,darwin
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1c
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x25
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1e
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1c
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x28
+   AF_NATM   = 0x1f
+   AF_NDRV   = 0x1b
+   AF_NETBIOS= 0x21
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PPP= 0x22
+   AF_PUP= 0x4
+   AF_RESERVED_36= 0x24
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x18
+   AF_SNA= 0xb
+   AF_SYSTEM = 0x20
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   AF_UTUN   = 0x26
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc00c4279
+   BIOCGETIF = 0x4020426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044272
+   BIOCGRTIMEOUT = 0x4010426e
+   BIOCGSEESENT  = 0x40044276
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044278
+   BIOCSETF  = 0x80104267
+   BIOCSETFNR= 0x8010427e
+   BIOCSETIF = 0x8020426c
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044273
+   BIOCSRTIMEOUT = 0x8010426d
+   BIOCSSEESENT  = 0x80044277
+   BIOCVERSION   = 0x40044271
+   BPF_A = 0x10
+   BPF_ABS   = 0x20
+   BPF_ADD 

[19/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go
new file mode 100644
index 000..2a329f0
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_386.go
@@ -0,0 +1,1530 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,dragonfly
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ATM= 0x1e
+   AF_BLUETOOTH  = 0x21
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x23
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1c
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x24
+   AF_MPLS   = 0x22
+   AF_NATM   = 0x1d
+   AF_NETGRAPH   = 0x20
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x18
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc0084279
+   BIOCGETIF = 0x4020426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044272
+   BIOCGRTIMEOUT = 0x4008426e
+   BIOCGSEESENT  = 0x40044276
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCLOCK  = 0x2000427a
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044278
+   BIOCSETF  = 0x80084267
+   BIOCSETIF = 0x8020426c
+   BIOCSETWF = 0x8008427b
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044273
+   BIOCSRTIMEOUT = 0x8008426d
+   BIOCSSEESENT  = 0x80044277
+   BIOCVERSION   = 0x40044271
+   BPF_A = 0x10
+   BPF_ABS   = 0x20
+   BPF_ADD   = 0x0
+   BPF_ALIGNMENT 

[GitHub] incubator-mynewt-site pull request: Event queue tutorial.

2016-03-19 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-mynewt-site/pull/60


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[06/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
new file mode 100644
index 000..b4338d5
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
@@ -0,0 +1,1712 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,netbsd
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ARP= 0x1c
+   AF_BLUETOOTH  = 0x1f
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x20
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x18
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x23
+   AF_MPLS   = 0x21
+   AF_NATM   = 0x1b
+   AF_NS = 0x6
+   AF_OROUTE = 0x11
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x22
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   ARPHRD_ARCNET = 0x7
+   ARPHRD_ETHER  = 0x1
+   ARPHRD_FRELAY = 0xf
+   ARPHRD_IEEE1394   = 0x18
+   ARPHRD_IEEE802= 0x6
+   ARPHRD_STRIP  = 0x17
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B460800   = 0x70800
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B921600   = 0xe1000
+   B9600 = 0x2580
+   BIOCFEEDBACK  = 0x8004427d
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc0084277
+   BIOCGETIF = 0x4090426b
+   BIOCGFEEDBACK = 0x4004427c
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRTIMEOUT = 0x400c427b
+   BIOCGSEESENT  = 0x40044278
+   BIOCGSTATS= 0x4080426f
+   BIOCGSTATSOLD = 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044276
+   BIOCSETF  = 0x80084267
+   BIOCSETIF = 0x8090426c
+   BIOCSFEEDBACK = 0x8004427d
+   BIOCSHDRCMPLT = 0x80044275
+  

[47/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.h
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.h 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.h
deleted file mode 100644
index c6d1e0f..000
--- 
a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.h
+++ /dev/null
@@ -1,8630 +0,0 @@
-/*
-** 2001 September 15
-**
-** The author disclaims copyright to this source code.  In place of
-** a legal notice, here is a blessing:
-**
-**May you do good and not evil.
-**May you find forgiveness for yourself and forgive others.
-**May you share freely, never taking more than you give.
-**
-*
-** This header file defines the interface that the SQLite library
-** presents to client programs.  If a C-function, structure, datatype,
-** or constant definition does not appear in this file, then it is
-** not a published API of SQLite, is subject to change without
-** notice, and should not be referenced by programs that use SQLite.
-**
-** Some of the definitions that are in this file are marked as
-** "experimental".  Experimental interfaces are normally new
-** features recently added to SQLite.  We do not anticipate changes
-** to experimental interfaces but reserve the right to make minor changes
-** if experience from use "in the wild" suggest such changes are prudent.
-**
-** The official C-language API documentation for SQLite is derived
-** from comments in this file.  This file is the authoritative source
-** on how SQLite interfaces are supposed to operate.
-**
-** The name of this file under configuration management is "sqlite.h.in".
-** The makefile makes some minor changes to this file (such as inserting
-** the version number) and changes its name to "sqlite3.h" as
-** part of the build process.
-*/
-#ifndef _SQLITE3_H_
-#define _SQLITE3_H_
-#include  /* Needed for the definition of va_list */
-
-/*
-** Make sure we can call this stuff from C++.
-*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
-** Provide the ability to override linkage features of the interface.
-*/
-#ifndef SQLITE_EXTERN
-# define SQLITE_EXTERN extern
-#endif
-#ifndef SQLITE_API
-# define SQLITE_API
-#endif
-#ifndef SQLITE_CDECL
-# define SQLITE_CDECL
-#endif
-#ifndef SQLITE_STDCALL
-# define SQLITE_STDCALL
-#endif
-
-/*
-** These no-op macros are used in front of interfaces to mark those
-** interfaces as either deprecated or experimental.  New applications
-** should not use deprecated interfaces - they are supported for backwards
-** compatibility only.  Application writers should be aware that
-** experimental interfaces are subject to change in point releases.
-**
-** These macros used to resolve to various kinds of compiler magic that
-** would generate warning messages when they were used.  But that
-** compiler magic ended up generating such a flurry of bug reports
-** that we have taken it all out and gone back to using simple
-** noop macros.
-*/
-#define SQLITE_DEPRECATED
-#define SQLITE_EXPERIMENTAL
-
-/*
-** Ensure these symbols were not defined by some previous header file.
-*/
-#ifdef SQLITE_VERSION
-# undef SQLITE_VERSION
-#endif
-#ifdef SQLITE_VERSION_NUMBER
-# undef SQLITE_VERSION_NUMBER
-#endif
-
-/*
-** CAPI3REF: Compile-Time Library Version Numbers
-**
-** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header
-** evaluates to a string literal that is the SQLite version in the
-** format "X.Y.Z" where X is the major version number (always 3 for
-** SQLite3) and Y is the minor version number and Z is the release number.)^
-** ^(The [SQLITE_VERSION_NUMBER] C preprocessor macro resolves to an integer
-** with the value (X*100 + Y*1000 + Z) where X, Y, and Z are the same
-** numbers used in [SQLITE_VERSION].)^
-** The SQLITE_VERSION_NUMBER for any given release of SQLite will also
-** be larger than the release from which it is derived.  Either Y will
-** be held constant and Z will be incremented or else Y will be incremented
-** and Z will be reset to zero.
-**
-** Since version 3.6.18, SQLite source code has been stored in the
-** http://www.fossil-scm.org/;>Fossil configuration management
-** system.  ^The SQLITE_SOURCE_ID macro evaluates to
-** a string which identifies a particular check-in of SQLite
-** within its configuration management system.  ^The SQLITE_SOURCE_ID
-** string contains the date and time of the check-in (UTC) and an SHA1
-** hash of the entire source tree.
-**
-** See also: [sqlite3_libversion()],
-** [sqlite3_libversion_number()], [sqlite3_sourceid()],
-** [sqlite_version()] and [sqlite_source_id()].
-*/
-#define SQLITE_VERSION"3.10.2"
-#define SQLITE_VERSION_NUMBER 3010002
-#define SQLITE_SOURCE_ID  

[40/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/spf13/cobra/doc/md_docs.go
--
diff --git a/newt/Godeps/_workspace/src/github.com/spf13/cobra/doc/md_docs.go 
b/newt/Godeps/_workspace/src/github.com/spf13/cobra/doc/md_docs.go
deleted file mode 100644
index fa13631..000
--- a/newt/Godeps/_workspace/src/github.com/spf13/cobra/doc/md_docs.go
+++ /dev/null
@@ -1,175 +0,0 @@
-//Copyright 2015 Red Hat Inc. All rights reserved.
-//
-// Licensed 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.
-
-package doc
-
-import (
-   "fmt"
-   "io"
-   "os"
-   "path/filepath"
-   "sort"
-   "strings"
-   "time"
-
-   "github.com/spf13/cobra"
-)
-
-func printOptions(w io.Writer, cmd *cobra.Command, name string) error {
-   flags := cmd.NonInheritedFlags()
-   flags.SetOutput(w)
-   if flags.HasFlags() {
-   if _, err := fmt.Fprintf(w, "### Options\n\n```\n"); err != nil 
{
-   return err
-   }
-   flags.PrintDefaults()
-   if _, err := fmt.Fprintf(w, "```\n\n"); err != nil {
-   return err
-   }
-   }
-
-   parentFlags := cmd.InheritedFlags()
-   parentFlags.SetOutput(w)
-   if parentFlags.HasFlags() {
-   if _, err := fmt.Fprintf(w, "### Options inherited from parent 
commands\n\n```\n"); err != nil {
-   return err
-   }
-   parentFlags.PrintDefaults()
-   if _, err := fmt.Fprintf(w, "```\n\n"); err != nil {
-   return err
-   }
-   }
-   return nil
-}
-
-func GenMarkdown(cmd *cobra.Command, w io.Writer) error {
-   return GenMarkdownCustom(cmd, w, func(s string) string { return s })
-}
-
-func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler 
func(string) string) error {
-   name := cmd.CommandPath()
-
-   short := cmd.Short
-   long := cmd.Long
-   if len(long) == 0 {
-   long = short
-   }
-
-   if _, err := fmt.Fprintf(w, "## %s\n\n", name); err != nil {
-   return err
-   }
-   if _, err := fmt.Fprintf(w, "%s\n\n", short); err != nil {
-   return err
-   }
-   if _, err := fmt.Fprintf(w, "### Synopsis\n\n"); err != nil {
-   return err
-   }
-   if _, err := fmt.Fprintf(w, "\n%s\n\n", long); err != nil {
-   return err
-   }
-
-   if cmd.Runnable() {
-   if _, err := fmt.Fprintf(w, "```\n%s\n```\n\n", cmd.UseLine()); 
err != nil {
-   return err
-   }
-   }
-
-   if len(cmd.Example) > 0 {
-   if _, err := fmt.Fprintf(w, "### Examples\n\n"); err != nil {
-   return err
-   }
-   if _, err := fmt.Fprintf(w, "```\n%s\n```\n\n", cmd.Example); 
err != nil {
-   return err
-   }
-   }
-
-   if err := printOptions(w, cmd, name); err != nil {
-   return err
-   }
-   if hasSeeAlso(cmd) {
-   if _, err := fmt.Fprintf(w, "### SEE ALSO\n"); err != nil {
-   return err
-   }
-   if cmd.HasParent() {
-   parent := cmd.Parent()
-   pname := parent.CommandPath()
-   link := pname + ".md"
-   link = strings.Replace(link, " ", "_", -1)
-   if _, err := fmt.Fprintf(w, "* [%s](%s)\t - %s\n", 
pname, linkHandler(link), parent.Short); err != nil {
-   return err
-   }
-   cmd.VisitParents(func(c *cobra.Command) {
-   if c.DisableAutoGenTag {
-   cmd.DisableAutoGenTag = 
c.DisableAutoGenTag
-   }
-   })
-   }
-
-   children := cmd.Commands()
-   sort.Sort(byName(children))
-
-   for _, child := range children {
-   if !child.IsAvailableCommand() || child.IsHelpCommand() 
{
-   continue
-   }
-   cname := name + " " + child.Name()
-   link := cname + ".md"
-  

[01/10] incubator-mynewt-newt git commit: Viper: Remove hashicorp and toml dependencies.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 23a6f5ffa -> 4ae9684f2


Viper: Remove hashicorp and toml dependencies.


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

Branch: refs/heads/develop
Commit: 1ef31a09a670694c02ddf61d209522651c52ec33
Parents: 23a6f5f
Author: Christopher Collins 
Authored: Wed Mar 16 13:39:27 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 13:39:27 2016 -0700

--
 viper/util.go | 30 +-
 1 file changed, 1 insertion(+), 29 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/1ef31a09/viper/util.go
--
diff --git a/viper/util.go b/viper/util.go
index 6598b17..0f52fc1 100644
--- a/viper/util.go
+++ b/viper/util.go
@@ -25,12 +25,9 @@ import (
"strings"
"unicode"
 
-   "mynewt.apache.org/newt/yaml"
-   "github.com/BurntSushi/toml"
-   "github.com/hashicorp/hcl"
-   "github.com/magiconair/properties"
"github.com/spf13/cast"
jww "github.com/spf13/jwalterweatherman"
+   "mynewt.apache.org/newt/yaml"
 )
 
 // Denotes failing to parse configuration file.
@@ -148,31 +145,6 @@ func unmarshallConfigReader(in io.Reader, c 
map[string]interface{}, configType s
if err := json.Unmarshal(buf.Bytes(), ); err != nil {
return ConfigParseError{err}
}
-
-   case "hcl":
-   obj, err := hcl.Parse(string(buf.Bytes()))
-   if err != nil {
-   return ConfigParseError{err}
-   }
-   if err = hcl.DecodeObject(, obj); err != nil {
-   return ConfigParseError{err}
-   }
-
-   case "toml":
-   if _, err := toml.Decode(buf.String(), ); err != nil {
-   return ConfigParseError{err}
-   }
-
-   case "properties", "props", "prop":
-   var p *properties.Properties
-   var err error
-   if p, err = properties.Load(buf.Bytes(), properties.UTF8); err 
!= nil {
-   return ConfigParseError{err}
-   }
-   for _, key := range p.Keys() {
-   value, _ := p.Get(key)
-   c[key] = value
-   }
}
 
insensitiviseMap(c)



[01/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 7e4724c07 -> bb53feda0


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
new file mode 100644
index 000..a08922b
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
@@ -0,0 +1,1436 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build amd64,solaris
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_802= 0x12
+   AF_APPLETALK  = 0x10
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_ECMA   = 0x8
+   AF_FILE   = 0x1
+   AF_GOSIP  = 0x16
+   AF_HYLINK = 0xf
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1a
+   AF_INET_OFFLOAD   = 0x1e
+   AF_IPX= 0x17
+   AF_KEY= 0x1b
+   AF_LAT= 0xe
+   AF_LINK   = 0x19
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x20
+   AF_NBS= 0x7
+   AF_NCA= 0x1c
+   AF_NIT= 0x11
+   AF_NS = 0x6
+   AF_OSI= 0x13
+   AF_OSINET = 0x15
+   AF_PACKET = 0x20
+   AF_POLICY = 0x1d
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x18
+   AF_SNA= 0xb
+   AF_TRILL  = 0x1f
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   AF_X25= 0x14
+   ARPHRD_ARCNET = 0x7
+   ARPHRD_ATM= 0x10
+   ARPHRD_AX25   = 0x3
+   ARPHRD_CHAOS  = 0x5
+   ARPHRD_EETHER = 0x2
+   ARPHRD_ETHER  = 0x1
+   ARPHRD_FC = 0x12
+   ARPHRD_FRAME  = 0xf
+   ARPHRD_HDLC   = 0x11
+   ARPHRD_IB = 0x20
+   ARPHRD_IEEE802= 0x6
+   ARPHRD_IPATM  = 0x13
+   ARPHRD_METRICOM   = 0x17
+   ARPHRD_TUNNEL = 0x1f
+   B0= 0x0
+   B110  = 0x3
+   B115200   = 0x12
+   B1200 = 0x9
+   B134  = 0x4
+   B150  = 0x5
+   B153600   = 0x13
+   B1800 = 0xa
+   B19200= 0xe
+   B200  = 0x6
+   B230400   = 0x14
+   B2400 = 0xb
+   B300  = 0x7
+   B307200   = 0x15
+   B38400= 0xf
+   B460800   = 0x16
+   B4800 = 0xc
+   B50   = 0x1
+   B57600= 0x10
+   B600  = 0x8
+   B75   = 0x2
+   B76800= 0x11
+   B921600   = 0x17
+   B9600 = 0xd
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = -0x3fefbd89
+   BIOCGDLTLIST32= -0x3ff7bd89
+   BIOCGETIF = 0x4020426b
+   BIOCGETLIF= 0x4078426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRTIMEOUT = 0x4010427b
+   BIOCGRTIMEOUT32   = 0x4008427b
+   BIOCGSEESENT  = 0x40044278
+   BIOCGSTATS= 0x4080426f
+   BIOCGSTATSOLD = 0x4008426f
+   BIOCIMMEDIATE = -0x7ffbbd90
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = -0x3ffbbd9a
+   BIOCSDLT  = -0x7ffbbd8a
+   BIOCSETF   

[52/52] [abbrv] incubator-mynewt-newt git commit: build.sh script for building newt from source.

2016-03-19 Thread ccollins
build.sh script for building newt from source.


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

Branch: refs/heads/develop
Commit: bb53feda03db22dc16b81f5934faf784175fb44e
Parents: b002dd0
Author: Christopher Collins 
Authored: Wed Mar 16 17:59:31 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 18:08:22 2016 -0700

--
 build.sh | 37 +
 1 file changed, 37 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/bb53feda/build.sh
--
diff --git a/build.sh b/build.sh
new file mode 100755
index 000..e31efb7
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+set -e
+
+### Ensure >= go1.5 is installed.
+go_ver_str="$(go version | cut -d ' ' -f 3)"
+go_ver="${go_ver_str#go}"
+go_maj="${go_ver%.*}"
+go_min="${go_ver#*.}"
+
+if [ ! "$go_maj" -gt 1 ] && [ ! "$go_min" -ge 5 ]
+then
+printf "* Error: go 1.5 or later is required (detected version: %s)\n" \
+"$go_maj"."$go_min"
+exit 1
+fi
+
+### Create a temporary go tree in /tmp and build newt.
+installdir="$(realpath "$(dirname "$0")")"
+godir="$(mktemp -d /tmp/mynewt.XX)"
+mynewtdir="$godir"/src/mynewt.apache.org
+repodir="$mynewtdir"/newt
+newtdir="$repodir"/newt
+dstfile="$installdir"/newt/newt
+
+mkdir -p "$mynewtdir"
+ln -s "$installdir" "$repodir"
+
+(
+cd "$newtdir"
+GOPATH="$godir" GO15VENDOREXPERIMENT=1 go install
+mv "$godir"/bin/newt "$dstfile"
+printf "Successfully built executable: %s\n" "$dstfile"
+)
+
+### Delete the temporary directory.
+rm -r "$godir"



[37/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/gopkg.in/fsnotify.v1/inotify.go
--
diff --git a/newt/Godeps/_workspace/src/gopkg.in/fsnotify.v1/inotify.go 
b/newt/Godeps/_workspace/src/gopkg.in/fsnotify.v1/inotify.go
deleted file mode 100644
index 06f4bba..000
--- a/newt/Godeps/_workspace/src/gopkg.in/fsnotify.v1/inotify.go
+++ /dev/null
@@ -1,324 +0,0 @@
-// Copyright 2010 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build linux
-
-package fsnotify
-
-import (
-   "errors"
-   "fmt"
-   "io"
-   "os"
-   "path/filepath"
-   "strings"
-   "sync"
-   "syscall"
-   "unsafe"
-)
-
-// Watcher watches a set of files, delivering events to a channel.
-type Watcher struct {
-   Events   chan Event
-   Errors   chan error
-   mu   sync.Mutex // Map access
-   cv   *sync.Cond // sync removing on rm_watch with IN_IGNORE
-   fd   int
-   poller   *fdPoller
-   watches  map[string]*watch // Map of inotify watches (key: path)
-   pathsmap[int]string// Map of watched paths (key: watch 
descriptor)
-   done chan struct{} // Channel for sending a "quit message" to 
the reader goroutine
-   doneResp chan struct{} // Channel to respond to Close
-}
-
-// NewWatcher establishes a new watcher with the underlying OS and begins 
waiting for events.
-func NewWatcher() (*Watcher, error) {
-   // Create inotify fd
-   fd, errno := syscall.InotifyInit()
-   if fd == -1 {
-   return nil, errno
-   }
-   // Create epoll
-   poller, err := newFdPoller(fd)
-   if err != nil {
-   syscall.Close(fd)
-   return nil, err
-   }
-   w := {
-   fd:   fd,
-   poller:   poller,
-   watches:  make(map[string]*watch),
-   paths:make(map[int]string),
-   Events:   make(chan Event),
-   Errors:   make(chan error),
-   done: make(chan struct{}),
-   doneResp: make(chan struct{}),
-   }
-   w.cv = sync.NewCond()
-
-   go w.readEvents()
-   return w, nil
-}
-
-func (w *Watcher) isClosed() bool {
-   select {
-   case <-w.done:
-   return true
-   default:
-   return false
-   }
-}
-
-// Close removes all watches and closes the events channel.
-func (w *Watcher) Close() error {
-   if w.isClosed() {
-   return nil
-   }
-
-   // Send 'close' signal to goroutine, and set the Watcher to closed.
-   close(w.done)
-
-   // Wake up goroutine
-   w.poller.wake()
-
-   // Wait for goroutine to close
-   <-w.doneResp
-
-   return nil
-}
-
-// Add starts watching the named file or directory (non-recursively).
-func (w *Watcher) Add(name string) error {
-   name = filepath.Clean(name)
-   if w.isClosed() {
-   return errors.New("inotify instance already closed")
-   }
-
-   const agnosticEvents = syscall.IN_MOVED_TO | syscall.IN_MOVED_FROM |
-   syscall.IN_CREATE | syscall.IN_ATTRIB | syscall.IN_MODIFY |
-   syscall.IN_MOVE_SELF | syscall.IN_DELETE | 
syscall.IN_DELETE_SELF
-
-   var flags uint32 = agnosticEvents
-
-   w.mu.Lock()
-   watchEntry, found := w.watches[name]
-   w.mu.Unlock()
-   if found {
-   watchEntry.flags |= flags
-   flags |= syscall.IN_MASK_ADD
-   }
-   wd, errno := syscall.InotifyAddWatch(w.fd, name, flags)
-   if wd == -1 {
-   return errno
-   }
-
-   w.mu.Lock()
-   w.watches[name] = {wd: uint32(wd), flags: flags}
-   w.paths[wd] = name
-   w.mu.Unlock()
-
-   return nil
-}
-
-// Remove stops watching the named file or directory (non-recursively).
-func (w *Watcher) Remove(name string) error {
-   name = filepath.Clean(name)
-
-   // Fetch the watch.
-   w.mu.Lock()
-   defer w.mu.Unlock()
-   watch, ok := w.watches[name]
-
-   // Remove it from inotify.
-   if !ok {
-   return fmt.Errorf("can't remove non-existent inotify watch for: 
%s", name)
-   }
-   // inotify_rm_watch will return EINVAL if the file has been deleted;
-   // the inotify will already have been removed.
-   // watches and pathes are deleted in ignoreLinux() implicitly and 
asynchronously
-   // by calling inotify_rm_watch() below. e.g. readEvents() goroutine 
receives IN_IGNORE
-   // so that EINVAL means that the wd is being rm_watch()ed or its file 
removed
-   // by another thread and we have not received IN_IGNORE event.
-   success, errno := syscall.InotifyRmWatch(w.fd, watch.wd)
-   if success == -1 {
-   // TODO: Perhaps 

[11/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
new file mode 100644
index 000..47027b7
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
@@ -0,0 +1,1896 @@
+// mkerrors.sh
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build arm64,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x29
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_NFC   = 0x27
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_VSOCK = 0x28
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CAIF  = 0x336
+   ARPHRD_CAN   = 0x118
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802154_MONITOR= 0x325
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IP6GRE= 0x337
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   ARPHRD_NETLINK   = 0x338
+   ARPHRD_NETROM  

[48/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.c 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
deleted file mode 100644
index c0ab233..000
--- 
a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
+++ /dev/null
@@ -1,186041 +0,0 @@
-/**
-** This file is an amalgamation of many separate C source files from SQLite
-** version 3.10.2.  By combining all the individual C code files into this 
-** single large file, the entire code can be compiled as a single translation
-** unit.  This allows many compilers to do optimizations that would not be
-** possible if the files were compiled separately.  Performance improvements
-** of 5% or more are commonly seen when SQLite is compiled as a single
-** translation unit.
-**
-** This file is all you need to compile SQLite.  To use SQLite in other
-** programs, you need this file and the "sqlite3.h" header file that defines
-** the programming interface to the SQLite library.  (If you do not have 
-** the "sqlite3.h" header file at hand, you will find a copy embedded within
-** the text of this file.  Search for "Begin file sqlite3.h" to find the start
-** of the embedded sqlite3.h header file.) Additional code files may be needed
-** if you want a wrapper to interface SQLite with your choice of programming
-** language. The code for the "sqlite3" command-line shell is also in a
-** separate file. This file contains only code for the core SQLite library.
-*/
-#define SQLITE_CORE 1
-#define SQLITE_AMALGAMATION 1
-#ifndef SQLITE_PRIVATE
-# define SQLITE_PRIVATE static
-#endif
-/** Begin file sqliteInt.h ***/
-/*
-** 2001 September 15
-**
-** The author disclaims copyright to this source code.  In place of
-** a legal notice, here is a blessing:
-**
-**May you do good and not evil.
-**May you find forgiveness for yourself and forgive others.
-**May you share freely, never taking more than you give.
-**
-*
-** Internal interface definitions for SQLite.
-**
-*/
-#ifndef _SQLITEINT_H_
-#define _SQLITEINT_H_
-
-/*
-** Include the header file used to customize the compiler options for MSVC.
-** This should be done first so that it can successfully prevent spurious
-** compiler warnings due to subsequent content in this file and other files
-** that are included by this file.
-*/
-/** Include msvc.h in the middle of sqliteInt.h **/
-/** Begin file msvc.h /
-/*
-** 2015 January 12
-**
-** The author disclaims copyright to this source code.  In place of
-** a legal notice, here is a blessing:
-**
-**May you do good and not evil.
-**May you find forgiveness for yourself and forgive others.
-**May you share freely, never taking more than you give.
-**
-**
-**
-** This file contains code that is specific to MSVC.
-*/
-#ifndef _MSVC_H_
-#define _MSVC_H_
-
-#if defined(_MSC_VER)
-#pragma warning(disable : 4054)
-#pragma warning(disable : 4055)
-#pragma warning(disable : 4100)
-#pragma warning(disable : 4127)
-#pragma warning(disable : 4130)
-#pragma warning(disable : 4152)
-#pragma warning(disable : 4189)
-#pragma warning(disable : 4206)
-#pragma warning(disable : 4210)
-#pragma warning(disable : 4232)
-#pragma warning(disable : 4244)
-#pragma warning(disable : 4305)
-#pragma warning(disable : 4306)
-#pragma warning(disable : 4702)
-#pragma warning(disable : 4706)
-#endif /* defined(_MSC_VER) */
-
-#endif /* _MSVC_H_ */
-
-/** End of msvc.h /
-/** Continuing where we left off in sqliteInt.h **/
-
-/*
-** Special setup for VxWorks
-*/
-/** Include vxworks.h in the middle of sqliteInt.h ***/
-/** Begin file vxworks.h */
-/*
-** 2015-03-02
-**
-** The author disclaims copyright to this source code.  In place of
-** a legal notice, here is a blessing:
-**
-**May you do good and not evil.
-**May you find forgiveness for yourself and forgive others.
-**May you share freely, never taking more than you give.
-**
-**
-**
-** This file contains code that is specific to Wind River's VxWorks
-*/
-#if defined(__RTP__) || defined(_WRS_KERNEL)
-/* This is VxWorks.  Set up things specially for that OS
-*/
-#include 
-#include   /* amalgamator: dontcache 

[35/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/kr/pretty/formatter.go
--
diff --git a/newt/vendor/github.com/kr/pretty/formatter.go 
b/newt/vendor/github.com/kr/pretty/formatter.go
new file mode 100644
index 000..8dacda2
--- /dev/null
+++ b/newt/vendor/github.com/kr/pretty/formatter.go
@@ -0,0 +1,337 @@
+package pretty
+
+import (
+   "fmt"
+   "io"
+   "reflect"
+   "strconv"
+   "text/tabwriter"
+
+   "github.com/kr/text"
+)
+
+const (
+   limit = 50
+)
+
+type formatter struct {
+   x interface{}
+   force bool
+   quote bool
+}
+
+// Formatter makes a wrapper, f, that will format x as go source with line
+// breaks and tabs. Object f responds to the "%v" formatting verb when both the
+// "#" and " " (space) flags are set, for example:
+//
+// fmt.Sprintf("%# v", Formatter(x))
+//
+// If one of these two flags is not set, or any other verb is used, f will
+// format x according to the usual rules of package fmt.
+// In particular, if x satisfies fmt.Formatter, then x.Format will be called.
+func Formatter(x interface{}) (f fmt.Formatter) {
+   return formatter{x: x, quote: true}
+}
+
+func (fo formatter) String() string {
+   return fmt.Sprint(fo.x) // unwrap it
+}
+
+func (fo formatter) passThrough(f fmt.State, c rune) {
+   s := "%"
+   for i := 0; i < 128; i++ {
+   if f.Flag(i) {
+   s += string(i)
+   }
+   }
+   if w, ok := f.Width(); ok {
+   s += fmt.Sprintf("%d", w)
+   }
+   if p, ok := f.Precision(); ok {
+   s += fmt.Sprintf(".%d", p)
+   }
+   s += string(c)
+   fmt.Fprintf(f, s, fo.x)
+}
+
+func (fo formatter) Format(f fmt.State, c rune) {
+   if fo.force || c == 'v' && f.Flag('#') && f.Flag(' ') {
+   w := tabwriter.NewWriter(f, 4, 4, 1, ' ', 0)
+   p := {tw: w, Writer: w, visited: make(map[visit]int)}
+   p.printValue(reflect.ValueOf(fo.x), true, fo.quote)
+   w.Flush()
+   return
+   }
+   fo.passThrough(f, c)
+}
+
+type printer struct {
+   io.Writer
+   tw  *tabwriter.Writer
+   visited map[visit]int
+   depth   int
+}
+
+func (p *printer) indent() *printer {
+   q := *p
+   q.tw = tabwriter.NewWriter(p.Writer, 4, 4, 1, ' ', 0)
+   q.Writer = text.NewIndentWriter(q.tw, []byte{'\t'})
+   return 
+}
+
+func (p *printer) printInline(v reflect.Value, x interface{}, showType bool) {
+   if showType {
+   io.WriteString(p, v.Type().String())
+   fmt.Fprintf(p, "(%#v)", x)
+   } else {
+   fmt.Fprintf(p, "%#v", x)
+   }
+}
+
+// printValue must keep track of already-printed pointer values to avoid
+// infinite recursion.
+type visit struct {
+   v   uintptr
+   typ reflect.Type
+}
+
+func (p *printer) printValue(v reflect.Value, showType, quote bool) {
+   if p.depth > 10 {
+   io.WriteString(p, "!%v(DEPTH EXCEEDED)")
+   return
+   }
+
+   switch v.Kind() {
+   case reflect.Bool:
+   p.printInline(v, v.Bool(), showType)
+   case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, 
reflect.Int64:
+   p.printInline(v, v.Int(), showType)
+   case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, 
reflect.Uint64, reflect.Uintptr:
+   p.printInline(v, v.Uint(), showType)
+   case reflect.Float32, reflect.Float64:
+   p.printInline(v, v.Float(), showType)
+   case reflect.Complex64, reflect.Complex128:
+   fmt.Fprintf(p, "%#v", v.Complex())
+   case reflect.String:
+   p.fmtString(v.String(), quote)
+   case reflect.Map:
+   t := v.Type()
+   if showType {
+   io.WriteString(p, t.String())
+   }
+   writeByte(p, '{')
+   if nonzero(v) {
+   expand := !canInline(v.Type())
+   pp := p
+   if expand {
+   writeByte(p, '\n')
+   pp = p.indent()
+   }
+   keys := v.MapKeys()
+   for i := 0; i < v.Len(); i++ {
+   showTypeInStruct := true
+   k := keys[i]
+   mv := v.MapIndex(k)
+   pp.printValue(k, false, true)
+   writeByte(pp, ':')
+   if expand {
+   writeByte(pp, '\t')
+   }
+   showTypeInStruct = t.Elem().Kind() == 
reflect.Interface
+   pp.printValue(mv, showTypeInStruct, 

[GitHub] incubator-mynewt-site pull request: MYNEWT-251

2016-03-19 Thread paulfdietrich
GitHub user paulfdietrich opened a pull request:

https://github.com/apache/incubator-mynewt-site/pull/56

MYNEWT-251

rewrite the STMF3Discovery tutorial for new newt commands

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/paulfdietrich/incubator-mynewt-site MYNEWT-251

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-mynewt-site/pull/56.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #56


commit 7da8ae5bf124e3edea03eda195c6b1c6b7482eac
Author: Paul Dietrich 
Date:   2016-03-17T19:15:34Z

MYNEWT-251

rewrite the STMF3Discovery tutorial for new newt commands




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[incubator-mynewt-newt] Git Push Summary

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [deleted] 6aadc302d


[3/5] incubator-mynewt-core git commit: add unit test for json. This is just a simple test to ensure that we encode and decode a very simple json structure properly. NOTE: This can also serve as examp

2016-03-19 Thread ccollins
add unit test for json.  This is just a simple test to ensure that we encode
and decode a very simple json structure properly.  NOTE: This can also serve
as example code on how to do json encoding and decoding


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

Branch: refs/heads/develop
Commit: 32dd023ff0401531fca2050577d6bb4d1b7a6872
Parents: 473f5a8
Author: Paul Dietrich 
Authored: Fri Mar 11 09:28:25 2016 -0800
Committer: Paul Dietrich 
Committed: Fri Mar 11 13:07:20 2016 -0800

--
 libs/json/include/json/json.h |   6 +
 libs/json/pkg.yml |   2 +
 libs/json/src/test/test_json.c|  41 +++
 libs/json/src/test/test_json.h|  28 +
 libs/json/src/test/test_json_simple.c | 191 +
 5 files changed, 268 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/32dd023f/libs/json/include/json/json.h
--
diff --git a/libs/json/include/json/json.h b/libs/json/include/json/json.h
index 9f8e29c..436c7e2 100644
--- a/libs/json/include/json/json.h
+++ b/libs/json/include/json/json.h
@@ -189,8 +189,14 @@ struct json_attr_t {
 };
 
 struct json_buffer;
+
+/* when you implement a json buffer, you must implement these functions */
+
+/* returns the next character in the buffer or '\0' */
 typedef char (*json_buffer_read_next_byte_t)(struct json_buffer *);
+/* returns the next character in the buffer or '\0' */
 typedef char (*json_buffer_read_prev_byte_t)(struct json_buffer *);
+/* returns the number of characters read or zero */
 typedef int (*json_buffer_readn_t)(struct json_buffer *, char *buf, int n);
 
 struct json_buffer {

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/32dd023f/libs/json/pkg.yml
--
diff --git a/libs/json/pkg.yml b/libs/json/pkg.yml
index a9e45a9..b0bf349 100644
--- a/libs/json/pkg.yml
+++ b/libs/json/pkg.yml
@@ -24,5 +24,7 @@ pkg.author: Sterling Hughes 
 pkg.homepage: http://mynewt.apache.org/os/modules/json/json/
 pkg.repository: https://git-wip-us.apache.org/repos/asf/incubator-mynewt-core
 pkg.keywords:
+pkg.deps.TEST:
+   - libs/testutil
 
 pkg.cflags.float_user: -DFLOAT_SUPPORT

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/32dd023f/libs/json/src/test/test_json.c
--
diff --git a/libs/json/src/test/test_json.c b/libs/json/src/test/test_json.c
new file mode 100644
index 000..78495dd
--- /dev/null
+++ b/libs/json/src/test/test_json.c
@@ -0,0 +1,41 @@
+/**
+ * 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 
+#include 
+
+
+TEST_SUITE(test_suite_json) {
+test_encode_simple();
+test_decode_simple();
+}
+
+#ifdef MYNEWT_SELFTEST
+
+int
+main(int argc, char **argv)
+{
+tu_config.tc_print_results = 1;
+tu_init();
+
+test_suite_json();
+
+return tu_any_failed;
+}
+
+#endif

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/32dd023f/libs/json/src/test/test_json.h
--
diff --git a/libs/json/src/test/test_json.h b/libs/json/src/test/test_json.h
new file mode 100644
index 000..b63109e
--- /dev/null
+++ b/libs/json/src/test/test_json.h
@@ -0,0 +1,28 @@
+/**
+ * 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

incubator-mynewt-newt git commit: Update LICENSE file to point to vendor.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop da9d64c39 -> 580535792


Update LICENSE file to point to vendor.

This used to point to Godeps/_workspace.

Also, add a pointer to the golang unix package.


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

Branch: refs/heads/develop
Commit: 58053579210a3541916d3e799b22cc81bc473e47
Parents: da9d64c
Author: Christopher Collins 
Authored: Wed Mar 16 22:46:10 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:46:10 2016 -0700

--
 LICENSE | 24 
 1 file changed, 12 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/58053579/LICENSE
--
diff --git a/LICENSE b/LICENSE
index bc3cb38..a218bbd 100644
--- a/LICENSE
+++ b/LICENSE
@@ -201,35 +201,35 @@
limitations under the License.
 
 This product bundles pretty, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/kr/pretty/License
+details, see newt/vendor/github.com/kr/pretty/License
 
 This product bundles kr/text, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/kr/text/License
+details, see newt/vendor/github.com/kr/text/License
 
 This product bundles go-sqlite3, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/LICENSE
+details, see newt/vendor/github.com/mattn/go-sqlite3/LICENSE
 
 This product bundles mapstructure, which is available under the MIT license.
-For details, see
-newt/Godeps/_workspace/src/github.com/mitchellh/mapstructure/LICENSE
+For details, see newt/vendor/github.com/mitchellh/mapstructure/LICENSE
 
 This product bundles logrus, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/LICENSE
+details, see newt/vendor/github.com/Sirupsen/logrus/LICENSE
 
 This product bundles Cast, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/spf13/cast/LICENSE
+details, see newt/vendor/github.com/spf13/cast/LICENSE
 
 This product bundles jWalterWeatherman, which is available under the MIT
 license.  For details, see
-newt/Godeps/_workspace/src/github.com/spf13/jwalterweatherman/LICENSE
+newt/vendor/github.com/spf13/jwalterweatherman/LICENSE
 
 This product bundles pflag, which is available under the "3-clause BSD"
-license.  For details, see
-newt/Godeps/_workspace/src/github.com/spf13/pflag/LICENSE
+license.  For details, see newt/vendor/github.com/spf13/pflag/LICENSE
+
+This product bundles the unix Go package, which is available under the
+"3-clause BSD" license.  For details, see newt/vendor/golang.org/x/sys/LICENSE
 
 This product bundles fsnotify.v1, which is available under the "3-clause BSD"
-license.  For details, see
-newt/Godeps/_workspace/src/gopkg.in/fsnotify.v1/LICENSE
+license.  For details, see newt/vendor/gopkg.in/fsnotify.v1/LICENSE
 
 This product bundles yaml.v2's Go port of libyaml, which is available under the
 MIT license.  For details, see:



[2/2] incubator-mynewt-core git commit: Delete stray '.' in LICENSE file.

2016-03-19 Thread ccollins
Delete stray '.' in LICENSE file.


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

Branch: refs/heads/develop
Commit: 96d2c7fb04ea2c16f2db27cd37f480af9e4dca58
Parents: 32040ac
Author: Christopher Collins 
Authored: Wed Mar 16 15:32:01 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 19:36:40 2016 -0700

--
 LICENSE | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/96d2c7fb/LICENSE
--
diff --git a/LICENSE b/LICENSE
index 1ec8ffb..d65f97f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -255,7 +255,7 @@ for details see ./libs/elua/elua_base/LICENSE.luarpc
 
 This product bundles parts of CMSIS-CORE, which is available under the
 "3-clause BSD" license.  Bundled files are:
-* libs/cmsis-core/.
+* libs/cmsis-core/
 * libs/os/src/arch/cortex_m0/m0/HAL_CM0.s
 * libs/os/src/arch/cortex_m0/m0/SVC_Table.s
 * libs/os/src/arch/cortex_m4/m4/HAL_CM4.s



[24/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go 
b/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go
new file mode 100644
index 000..f3c971d
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/types_dragonfly.go
@@ -0,0 +1,242 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build ignore
+
+/*
+Input to cgo -godefs.  See also mkerrors.sh and mkall.sh
+*/
+
+// +godefs map struct_in_addr [4]byte /* in_addr */
+// +godefs map struct_in6_addr [16]byte /* in6_addr */
+
+package unix
+
+/*
+#define KERNEL
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+enum {
+   sizeofPtr = sizeof(void*),
+};
+
+union sockaddr_all {
+   struct sockaddr s1; // this one gets used for fields
+   struct sockaddr_in s2;  // these pad it out
+   struct sockaddr_in6 s3;
+   struct sockaddr_un s4;
+   struct sockaddr_dl s5;
+};
+
+struct sockaddr_any {
+   struct sockaddr addr;
+   char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
+};
+
+*/
+import "C"
+
+// Machine characteristics; for internal use.
+
+const (
+   sizeofPtr  = C.sizeofPtr
+   sizeofShort= C.sizeof_short
+   sizeofInt  = C.sizeof_int
+   sizeofLong = C.sizeof_long
+   sizeofLongLong = C.sizeof_longlong
+)
+
+// Basic types
+
+type (
+   _C_short C.short
+   _C_int   C.int
+   _C_long  C.long
+   _C_long_long C.longlong
+)
+
+// Time
+
+type Timespec C.struct_timespec
+
+type Timeval C.struct_timeval
+
+// Processes
+
+type Rusage C.struct_rusage
+
+type Rlimit C.struct_rlimit
+
+type _Gid_t C.gid_t
+
+// Files
+
+const ( // Directory mode bits
+   S_IFMT   = C.S_IFMT
+   S_IFIFO  = C.S_IFIFO
+   S_IFCHR  = C.S_IFCHR
+   S_IFDIR  = C.S_IFDIR
+   S_IFBLK  = C.S_IFBLK
+   S_IFREG  = C.S_IFREG
+   S_IFLNK  = C.S_IFLNK
+   S_IFSOCK = C.S_IFSOCK
+   S_ISUID  = C.S_ISUID
+   S_ISGID  = C.S_ISGID
+   S_ISVTX  = C.S_ISVTX
+   S_IRUSR  = C.S_IRUSR
+   S_IWUSR  = C.S_IWUSR
+   S_IXUSR  = C.S_IXUSR
+)
+
+type Stat_t C.struct_stat
+
+type Statfs_t C.struct_statfs
+
+type Flock_t C.struct_flock
+
+type Dirent C.struct_dirent
+
+type Fsid C.struct_fsid
+
+// Sockets
+
+type RawSockaddrInet4 C.struct_sockaddr_in
+
+type RawSockaddrInet6 C.struct_sockaddr_in6
+
+type RawSockaddrUnix C.struct_sockaddr_un
+
+type RawSockaddrDatalink C.struct_sockaddr_dl
+
+type RawSockaddr C.struct_sockaddr
+
+type RawSockaddrAny C.struct_sockaddr_any
+
+type _Socklen C.socklen_t
+
+type Linger C.struct_linger
+
+type Iovec C.struct_iovec
+
+type IPMreq C.struct_ip_mreq
+
+type IPv6Mreq C.struct_ipv6_mreq
+
+type Msghdr C.struct_msghdr
+
+type Cmsghdr C.struct_cmsghdr
+
+type Inet6Pktinfo C.struct_in6_pktinfo
+
+type IPv6MTUInfo C.struct_ip6_mtuinfo
+
+type ICMPv6Filter C.struct_icmp6_filter
+
+const (
+   SizeofSockaddrInet4= C.sizeof_struct_sockaddr_in
+   SizeofSockaddrInet6= C.sizeof_struct_sockaddr_in6
+   SizeofSockaddrAny  = C.sizeof_struct_sockaddr_any
+   SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
+   SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
+   SizeofLinger   = C.sizeof_struct_linger
+   SizeofIPMreq   = C.sizeof_struct_ip_mreq
+   SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
+   SizeofMsghdr   = C.sizeof_struct_msghdr
+   SizeofCmsghdr  = C.sizeof_struct_cmsghdr
+   SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
+   SizeofIPv6MTUInfo  = C.sizeof_struct_ip6_mtuinfo
+   SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
+)
+
+// Ptrace requests
+
+const (
+   PTRACE_TRACEME = C.PT_TRACE_ME
+   PTRACE_CONT= C.PT_CONTINUE
+   PTRACE_KILL= C.PT_KILL
+)
+
+// Events (kqueue, kevent)
+
+type Kevent_t C.struct_kevent
+
+// Select
+
+type FdSet C.fd_set
+
+// Routing and interface messages
+
+const (
+   SizeofIfMsghdr = C.sizeof_struct_if_msghdr
+   SizeofIfData   = C.sizeof_struct_if_data
+   SizeofIfaMsghdr= C.sizeof_struct_ifa_msghdr
+   SizeofIfmaMsghdr   = C.sizeof_struct_ifma_msghdr
+   SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
+   SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
+   SizeofRtMetrics= C.sizeof_struct_rt_metrics
+)
+
+type IfMsghdr C.struct_if_msghdr
+
+type IfData C.struct_if_data
+

[26/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_386.go 
b/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_386.go
new file mode 100644
index 000..41c2e69
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_386.go
@@ -0,0 +1,63 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build 386,dragonfly
+
+package unix
+
+import (
+   "syscall"
+   "unsafe"
+)
+
+func Getpagesize() int { return 4096 }
+
+func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + 
int64(ts.Nsec) }
+
+func NsecToTimespec(nsec int64) (ts Timespec) {
+   ts.Sec = int32(nsec / 1e9)
+   ts.Nsec = int32(nsec % 1e9)
+   return
+}
+
+func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + 
int64(tv.Usec)*1e3 }
+
+func NsecToTimeval(nsec int64) (tv Timeval) {
+   nsec += 999 // round up to microsecond
+   tv.Usec = int32(nsec % 1e9 / 1e3)
+   tv.Sec = int32(nsec / 1e9)
+   return
+}
+
+func SetKevent(k *Kevent_t, fd, mode, flags int) {
+   k.Ident = uint32(fd)
+   k.Filter = int16(mode)
+   k.Flags = uint16(flags)
+}
+
+func (iov *Iovec) SetLen(length int) {
+   iov.Len = uint32(length)
+}
+
+func (msghdr *Msghdr) SetControllen(length int) {
+   msghdr.Controllen = uint32(length)
+}
+
+func (cmsg *Cmsghdr) SetLen(length int) {
+   cmsg.Len = uint32(length)
+}
+
+func sendfile(outfd int, infd int, offset *int64, count int) (written int, err 
error) {
+   var writtenOut uint64 = 0
+   _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), 
uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, 
uintptr(unsafe.Pointer()), 0, 0)
+
+   written = int(writtenOut)
+
+   if e1 != 0 {
+   err = e1
+   }
+   return
+}
+
+func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 
uintptr, err syscall.Errno)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
new file mode 100644
index 000..2ed9259
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
@@ -0,0 +1,63 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build amd64,dragonfly
+
+package unix
+
+import (
+   "syscall"
+   "unsafe"
+)
+
+func Getpagesize() int { return 4096 }
+
+func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + 
int64(ts.Nsec) }
+
+func NsecToTimespec(nsec int64) (ts Timespec) {
+   ts.Sec = nsec / 1e9
+   ts.Nsec = nsec % 1e9
+   return
+}
+
+func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + 
int64(tv.Usec)*1e3 }
+
+func NsecToTimeval(nsec int64) (tv Timeval) {
+   nsec += 999 // round up to microsecond
+   tv.Usec = nsec % 1e9 / 1e3
+   tv.Sec = int64(nsec / 1e9)
+   return
+}
+
+func SetKevent(k *Kevent_t, fd, mode, flags int) {
+   k.Ident = uint64(fd)
+   k.Filter = int16(mode)
+   k.Flags = uint16(flags)
+}
+
+func (iov *Iovec) SetLen(length int) {
+   iov.Len = uint64(length)
+}
+
+func (msghdr *Msghdr) SetControllen(length int) {
+   msghdr.Controllen = uint32(length)
+}
+
+func (cmsg *Cmsghdr) SetLen(length int) {
+   cmsg.Len = uint32(length)
+}
+
+func sendfile(outfd int, infd int, offset *int64, count int) (written int, err 
error) {
+   var writtenOut uint64 = 0
+   _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), 
uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer()), 0, 
0, 0)
+
+   written = int(writtenOut)
+
+   if e1 != 0 {
+   err = e1
+   }
+   return
+}
+
+func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 
uintptr, err syscall.Errno)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/syscall_freebsd.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/syscall_freebsd.go 
b/newt/vendor/golang.org/x/sys/unix/syscall_freebsd.go
new file mode 100644
index 000..ec56ed6
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/syscall_freebsd.go
@@ -0,0 +1,682 @@
+// Copyright 2009,2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE 

[GitHub] incubator-mynewt-site pull request: update arduino tutorial to use...

2016-03-19 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-mynewt-site/pull/55


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[1/2] incubator-mynewt-core git commit: Correct some bad paths in core's LICENSE.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/master 2acc09b23 -> 62df74fab


Correct some bad paths in core's LICENSE.


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

Branch: refs/heads/master
Commit: 7e1731af89f3f80679b7846f1e1660cf5f73af20
Parents: f23b563
Author: Christopher Collins 
Authored: Wed Mar 16 22:53:13 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:53:13 2016 -0700

--
 LICENSE | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7e1731af/LICENSE
--
diff --git a/LICENSE b/LICENSE
index d65f97f..3d2ce33 100644
--- a/LICENSE
+++ b/LICENSE
@@ -201,10 +201,10 @@
limitations under the License.
 
 This product bundles crc16, which is available under the "3-clause BSD"
-license.  For details, see fs/nffs/src/crc16.[ch].
+license.  For details, see fs/nffs/src/crc16.[ch]
 
 This product bundles queue.h 8.5, which is available under the "3-clause BSD"
-license.  For details, see libs/os/include/os/queue.h.
+license.  For details, see libs/os/include/os/queue.h
 
 This product partly derives from FreeBSD, which is available under the
 "3-clause BSD" license.  For details, see:
@@ -215,16 +215,16 @@ This product partly derives from FreeBSD, which is 
available under the
 
 This product bundles baselibc, which is available under the "3-clause BSD"
 license. Baselibc bundles tinyprintf and is based on klibc for details see:
-./libs/baselibc/LICENSE
+libs/baselibc/LICENSE
 
 This product bundles tinyprintf, which is available under the "3-clause BSD"
-license.  For details, see libs/baselibc/tinyprintf.c.
+license.  For details, see libs/baselibc/src/tinyprintf.c
 
 This product conatins code based on klibc, which is available under the MIT
-license.  For details, see ./libs/baselibc/LICENSE.
+license.  For details, see libs/baselibc/LICENSE
 
 This product bundles microjson, which is available under the "3-clause BSD"
-license.  For details, see libs/json/.
+license.  For details, see libs/json/
 
 This product bundles and partly derives from parts of the Nordic nRF51 SDK,
 which are available under a BSD style license.  Relevant files are:
@@ -244,14 +244,14 @@ This product bundles Gary S. Brown's CRC32 
implementation, which is available un
 code or tables extracted from it, as desired without restriction.
 
 This product bundles eLua, which is available under the MIT license.
-For details, see libs/elua/elua_base/.
+For details, see libs/elua/elua_base/
 
 eLua bundles further items which are available under permissive Apache
 compatable licenses (BSD/MIT). For full details see:
-./libs/elua/elua_base/LICENSE
+libs/elua/elua_base/LICENSE
 
 This product bundles Lua-RPC library, which is available under a zlib license.
-for details see ./libs/elua/elua_base/LICENSE.luarpc
+for details see libs/elua/elua_base/LICENSE.luarpc
 
 This product bundles parts of CMSIS-CORE, which is available under the
 "3-clause BSD" license.  Bundled files are:



[1/2] incubator-mynewt-core git commit: added a simulated LED blink for blinky native

2016-03-19 Thread ccollins
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop c186d3543 -> e8dc4eecf


added a simulated LED blink for blinky native


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

Branch: refs/heads/develop
Commit: 895e92f7c002024f980a64684c693ab58e1ba3bd
Parents: 9eb699d
Author: Paul Dietrich 
Authored: Fri Mar 11 15:41:07 2016 -0800
Committer: Paul Dietrich 
Committed: Fri Mar 11 15:41:21 2016 -0800

--
 hw/mcu/native/src/hal_gpio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/895e92f7/hw/mcu/native/src/hal_gpio.c
--
diff --git a/hw/mcu/native/src/hal_gpio.c b/hw/mcu/native/src/hal_gpio.c
index 7ab2d0f..677b738 100644
--- a/hw/mcu/native/src/hal_gpio.c
+++ b/hw/mcu/native/src/hal_gpio.c
@@ -56,7 +56,7 @@ hal_gpio_init_out(int pin, int val)
 return -1;
 }
 hal_gpio[pin].dir = OUTPUT;
-hal_gpio[pin].val = (val != 0);
+hal_gpio_write(pin,val);
 return 0;
 }
 
@@ -81,6 +81,8 @@ void hal_gpio_write(int pin, int val)
 return;
 }
 hal_gpio[pin].val = (val != 0);
+printf("hal_gpio set pin %2d to %1d\r", pin, hal_gpio[pin].val); 
+fflush(stdout);
 }
 
 int



[3/3] incubator-mynewt-site git commit: tutorial added for task using event queue to manage events. This closes #60. also fixes newt install instruction links mentioned in multiple pages.

2016-03-19 Thread aditi
tutorial added for task using event queue to manage events. This closes #60. 
also fixes newt install instruction links mentioned in multiple pages.


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

Branch: refs/heads/master
Commit: 90421ab6558858652ae2ac1d07b3459690a3f99b
Parents: 245f869
Author: aditihilbert 
Authored: Fri Mar 18 16:33:23 2016 -0700
Committer: aditihilbert 
Committed: Fri Mar 18 16:33:23 2016 -0700

--
 docs/newt/install/newt_linux.md | 135 +
 docs/newt/install/newt_mac.md   | 141 +++
 docs/newt/tutorials/newt_mac.md | 124 ---
 docs/os/get_started/get_started.md  |   6 +-
 docs/os/get_started/introduction.md |  17 +++-
 docs/os/tutorials/event_queue.md|  78 +++--
 mkdocs.yml  |   7 +-
 7 files changed, 347 insertions(+), 161 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/90421ab6/docs/newt/install/newt_linux.md
--
diff --git a/docs/newt/install/newt_linux.md b/docs/newt/install/newt_linux.md
new file mode 100644
index 000..351763c
--- /dev/null
+++ b/docs/newt/install/newt_linux.md
@@ -0,0 +1,135 @@
+## Install newt tool on Linux
+
+
+
+### Getting your Mac 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 
+```
+
+
+
+ 2. Install Go, the programming language
+
+* Go language enviroment dictates a directory structure. Known in Go parlanace 
as 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`
+```
+  (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
+```
+
+
+
+* Next, install Go. When installed, Go offers you as a developer a language 
enviroment (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.
+ 
+```no-highlight
+$ sudo apt-get install golang 
+```
+
+
+
+ 3. Create local repository
+
+* Use Go commands to copy the directory (currently the ASF incubator 
directory). Be patient as it may take a minute or two. Check the directories 
installed.
+
+```no-highlight
+$ go get mynewt.apache.org/newt/...
+```
+
+
+
+* Check that newt.go is in place.
+```no-highlight
+$ ls $GOPATH/src/mynewt.apache.org/newt
+DISCLAIMER NOTICE  newtnewtvm  viper
+LICENSEREADME.md   newtmgr utilyaml
+```
+
+
+
+ 4. Build the Newt tool
+
+* Use Go to run the newt.go program to build the *newt* tool. The command `go 
install` compiles and writes the resulting executable to an output file named 
`newt`, which is then installed, along with its dependencies, in $GOPATH/bin. 
If you get errors it is likely because of path resolution issues. Try `go 
build`  followed by `go install` in that case.
+
+```no-highlight
+$ cd $GOPATH/src/mynewt.apache.org/newt/newt
+$ go install
+$ ls "$GOPATH"/bin/
+newt newtmgr newtvm
+```
+
+
+
+* At this point, you can try using *newt*. For example, check for the version 
number by typing 'newt version'. See all the possible commands available to a 
user of newt by typing 'newt -h'.
+
+   (Note: If you are going to be modifying the *newt* often and going to be 
compile the program every time you call it, you will want to store the command 
in a variable in your .bash_profile. So type in `export newt="go run 

[42/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go 
b/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go
deleted file mode 100644
index 5ad9c96..000
--- a/newt/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd/licenses.go
+++ /dev/null
@@ -1,1133 +0,0 @@
-// Copyright © 2015 Steve Francia .
-//
-// Licensed 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.
-
-// Parts inspired by https://github.com/ryanuber/go-license
-
-package cmd
-
-import "strings"
-
-//Licenses contains all possible licenses a user can chose from
-var Licenses map[string]License
-
-//License represents a software license agreement, containing the Name of
-// the license, its possible matches (on the command line as given to cobra)
-// the header to be used with each file on the file's creating, and the text
-// of the license
-type License struct {
-   Namestring   // The type of license in use
-   PossibleMatches []string // Similar names to guess
-   Textstring   // License text data
-   Header  string   // License header for source files
-}
-
-// given a license name (in), try to match the license indicated
-func matchLicense(in string) string {
-   for key, lic := range Licenses {
-   for _, match := range lic.PossibleMatches {
-   if strings.EqualFold(in, match) {
-   return key
-   }
-   }
-   }
-   return ""
-}
-
-func init() {
-   Licenses = make(map[string]License)
-
-   Licenses["apache"] = License{
-   Name:"Apache 2.0",
-   PossibleMatches: []string{"apache", "apache20", "apache 2.0", 
"apache2.0", "apache-2.0"},
-   Header: `
-// Licensed 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.`,
-   Text: `
- Apache License
-   Version 2.0, January 2004
-http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-  "License" shall mean the terms and conditions for use, reproduction,
-  and distribution as defined by Sections 1 through 9 of this document.
-
-  "Licensor" shall mean the copyright owner or entity authorized by
-  the copyright owner that is granting the License.
-
-  "Legal Entity" shall mean the union of the acting entity and all
-  other entities that control, are controlled by, or are under common
-  control with that entity. For the purposes of this definition,
-  "control" means (i) the power, direct or indirect, to cause the
-  direction or management of such entity, whether by contract or
-  otherwise, or (ii) ownership of fifty percent (50%) or more of the
-  outstanding shares, or (iii) beneficial ownership of such entity.
-
-  "You" (or "Your") shall mean an individual or Legal Entity
-  exercising permissions granted by this License.
-
-  "Source" form shall mean the preferred form for making modifications,
-  including but not limited to software source code, documentation
-  source, and configuration files.
-
-  "Object" form shall mean any form resulting from mechanical
-  transformation or translation of a Source form, including but
-  not limited to compiled object code, generated documentation,
-  and conversions to other media types.
-
-  "Work" shall mean the work of authorship, whether in Source or
-  Object form, made available under the License, as indicated by a
-  copyright notice that is included in or attached to the work
-  (an example is provided in the Appendix 

[3/3] incubator-mynewt-blinky git commit: Some minor changes to blinky's README.

2016-03-19 Thread ccollins
Some minor changes to blinky's README.


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

Branch: refs/heads/master
Commit: 7e3c0312b58adb426e2e4f79d8eab4228c761cee
Parents: bc7adab
Author: Christopher Collins 
Authored: Wed Mar 16 22:06:26 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:06:26 2016 -0700

--
 README.md | 21 ++---
 1 file changed, 14 insertions(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/blob/7e3c0312/README.md
--
diff --git a/README.md b/README.md
index e94c1ac..405d33b 100644
--- a/README.md
+++ b/README.md
@@ -23,16 +23,19 @@
 
 ## Overview
 
-Apache Blinky is a skeleton for new Apache Mynewt projects.  This directory
-struture is downloaded when the user issues a "newt new" command.  Apache
-blinky also contains an example Apache Mynewt app and target to help you get
-started.
+Apache Blinky is a skeleton for new Apache Mynewt projects.  The user downloads
+this skeleton by issuing the "newt new" command (using Apache Newt).  Apache
+blinky also contains an example app and target for use with Apache Mynewt to
+help you get started.
 
 ## Building
 
-Apache Blinky contains an example Apache Mynewt application called blinky.  
This application blinks an LED on the host board.  The below procedure 
describes how to build this application for the Apache Mynewt simulator.
+Apache Blinky contains an example Apache Mynewt application called blinky.
+When executed on suitably equipped hardware, this application repeatedly blinks
+an LED.  The below procedure describes how to build this application for the
+Apache Mynewt simulator.
 
-1. Download Apache Newt.
+1. Download and install Apache Newt.
 
 You will need to download the Apache Newt tool, as documented in the [Getting 
Started Guide](http://mynewt.apache.org/os/get_started/introduction/).
 
@@ -43,4 +46,8 @@ You will need to download the Apache Newt tool, as documented 
in the [Getting St
 $ newt build my_blinky_sim
 ```
 
-The Apache Newt tool should indicate the location of the generated blinky 
executable.  Since the simulator does not have an LED to blink, this version of 
blinky is not terribly exciting (no observable behavior!).  To learn how to 
build blinky for actual harder, please see the [Getting Started 
Guide](http://mynewt.apache.org/os/get_started/introduction/).
+The Apache Newt tool should indicate the location of the generated blinky
+executable.  Since the simulator does not have an LED to blink, this version of
+blinky is not terribly exciting (no observable behavior!).  To learn how to
+build blinky for actual hardware, please see the [Getting Started
+Guide](http://mynewt.apache.org/os/get_started/introduction/).



[2/5] incubator-mynewt-core git commit: Delete stray '.' in LICENSE file.

2016-03-19 Thread ccollins
Delete stray '.' in LICENSE file.


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

Branch: refs/heads/master
Commit: 96d2c7fb04ea2c16f2db27cd37f480af9e4dca58
Parents: 32040ac
Author: Christopher Collins 
Authored: Wed Mar 16 15:32:01 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 19:36:40 2016 -0700

--
 LICENSE | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/96d2c7fb/LICENSE
--
diff --git a/LICENSE b/LICENSE
index 1ec8ffb..d65f97f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -255,7 +255,7 @@ for details see ./libs/elua/elua_base/LICENSE.luarpc
 
 This product bundles parts of CMSIS-CORE, which is available under the
 "3-clause BSD" license.  Bundled files are:
-* libs/cmsis-core/.
+* libs/cmsis-core/
 * libs/os/src/arch/cortex_m0/m0/HAL_CM0.s
 * libs/os/src/arch/cortex_m0/m0/SVC_Table.s
 * libs/os/src/arch/cortex_m4/m4/HAL_CM4.s



[2/2] incubator-mynewt-core git commit: This closes #18 (blinky_sim_led)

2016-03-19 Thread ccollins
This closes #18 (blinky_sim_led)


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

Branch: refs/heads/develop
Commit: e8dc4eecfcde6f39a13a11c393fb5e52a4526d66
Parents: c186d35 895e92f
Author: Christopher Collins 
Authored: Fri Mar 18 12:12:03 2016 -0700
Committer: Christopher Collins 
Committed: Fri Mar 18 12:12:03 2016 -0700

--
 hw/mcu/native/src/hal_gpio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
--




[05/10] incubator-mynewt-newt git commit: Replace hashicorp logutils with logrus.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/4ae9684f/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/hcl/scanner/scanner_test.go
--
diff --git 
a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/hcl/scanner/scanner_test.go
 
b/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/hcl/scanner/scanner_test.go
deleted file mode 100644
index 8abcbf3..000
--- 
a/newt/Godeps/_workspace/src/github.com/hashicorp/hcl/hcl/scanner/scanner_test.go
+++ /dev/null
@@ -1,536 +0,0 @@
-package scanner
-
-import (
-   "bytes"
-   "fmt"
-   "testing"
-
-   "github.com/hashicorp/hcl/hcl/token"
-   "strings"
-)
-
-var f100 = 
""
-
-type tokenPair struct {
-   tok  token.Type
-   text string
-}
-
-var tokenLists = map[string][]tokenPair{
-   "comment": []tokenPair{
-   {token.COMMENT, "//"},
-   {token.COMMENT, ""},
-   {token.COMMENT, "// comment"},
-   {token.COMMENT, "// /* comment */"},
-   {token.COMMENT, "// // comment //"},
-   {token.COMMENT, "//" + f100},
-   {token.COMMENT, "#"},
-   {token.COMMENT, "##"},
-   {token.COMMENT, "# comment"},
-   {token.COMMENT, "# /* comment */"},
-   {token.COMMENT, "# # comment #"},
-   {token.COMMENT, "#" + f100},
-   {token.COMMENT, "/**/"},
-   {token.COMMENT, "/***/"},
-   {token.COMMENT, "/* comment */"},
-   {token.COMMENT, "/* // comment */"},
-   {token.COMMENT, "/* /* comment */"},
-   {token.COMMENT, "/*\n comment\n*/"},
-   {token.COMMENT, "/*" + f100 + "*/"},
-   },
-   "operator": []tokenPair{
-   {token.LBRACK, "["},
-   {token.LBRACE, "{"},
-   {token.COMMA, ","},
-   {token.PERIOD, "."},
-   {token.RBRACK, "]"},
-   {token.RBRACE, "}"},
-   {token.ASSIGN, "="},
-   {token.ADD, "+"},
-   {token.SUB, "-"},
-   },
-   "bool": []tokenPair{
-   {token.BOOL, "true"},
-   {token.BOOL, "false"},
-   },
-   "ident": []tokenPair{
-   {token.IDENT, "a"},
-   {token.IDENT, "a0"},
-   {token.IDENT, "foobar"},
-   {token.IDENT, "foo-bar"},
-   {token.IDENT, "abc123"},
-   {token.IDENT, "LGTM"},
-   {token.IDENT, "_"},
-   {token.IDENT, "_abc123"},
-   {token.IDENT, "abc123_"},
-   {token.IDENT, "_abc_123_"},
-   {token.IDENT, "_äöü"},
-   {token.IDENT, "_本"},
-   {token.IDENT, "äöü"},
-   {token.IDENT, "本"},
-   {token.IDENT, "aÛ°Û±Û¸"},
-   {token.IDENT, "foo६४"},
-   {token.IDENT, "bar9876"},
-   },
-   "heredoc": []tokenPair{
-   {token.HEREDOC, "<

[14/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
new file mode 100644
index 000..d370be0
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
@@ -0,0 +1,1817 @@
+// mkerrors.sh -m32
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build 386,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m32 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x28
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_NFC   = 0x27
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CAIF  = 0x336
+   ARPHRD_CAN   = 0x118
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   ARPHRD_NETROM= 0x0
+   ARPHRD_NONE  = 0xfffe
+   ARPHRD_PHONET= 0x334
+   ARPHRD_PHONET_PIPE   = 0x335
+   ARPHRD_PIMREG  

incubator-mynewt-core git commit: Minor changes to core README.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 7cc41db7f -> f23b5630d


Minor changes to core README.


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

Branch: refs/heads/develop
Commit: f23b5630d1c13828b9ae1b5b62c00be72bcefbb1
Parents: 7cc41db
Author: Christopher Collins 
Authored: Wed Mar 16 22:21:27 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:21:27 2016 -0700

--
 README.md | 17 -
 1 file changed, 8 insertions(+), 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f23b5630/README.md
--
diff --git a/README.md b/README.md
index af6b431..02b6b3b 100644
--- a/README.md
+++ b/README.md
@@ -26,14 +26,13 @@
 This repository represents the core of the Apache Mynewt repository.
 It contains the major packages that make up the Apache Mynewt Operating 
 System.  For instructions on getting Apache Mynewt up & running, please 
-see our [Getting Started 
Guide](http://mynewt.apache.org/os/get_started/introduction/).
+see our [Getting Started 
Guide](https://mynewt.apache.org/os/get_started/introduction/).
 
-As Apache Mynewt Core is a collection of libraries, rather than a standalone
-application, it is not intended to be built by itself.  To run the unit tests
-for all the packages contained in Apache Mynewt Core, install the Apache Newt
-tool as documented in the
-[Getting Started Guide](http://mynewt.apache.org/os/get_started/introduction/)
-and run the following command from the core directory:
+Apache Mynewt Core is not a standalone application, and it is not intended to
+be built by itself.  To run the unit tests for all the packages contained in
+Apache Mynewt Core, install the Apache Newt tool as documented in the [Getting
+Started Guide](https://mynewt.apache.org/os/get_started/introduction/#newt) and
+run the following command from the core directory:
 
 ```no-highlight
 $ newt test all
@@ -123,7 +122,7 @@ If you are suggesting a new feature, please email the 
developer list directly,
 with a description of the feature you are planning to work on.  
 
 We do not merge pull requests directly on Github, all PRs will be pulled and 
-pushed through http://git.apache.org/.
+pushed through https://git.apache.org/.
 
 ## Filing Bugs
 
@@ -150,7 +149,7 @@ to get involved with the Apache Mynewt project.
 
 Pull requests to the apache-mynewt-site repository on Github are the best 
 way to submit documentation.  For more information on contributing to the 
-documentation, the [FAQ](http://mynewt.apache.org/faq/answers/) has some 
+documentation, the [FAQ](https://mynewt.apache.org/faq/answers/) has some 
 more information.
 
 # License 



[2/2] incubator-mynewt-core git commit: Merge branch 'develop' - prep for 0.8.0-b2 tagging.

2016-03-19 Thread ccollins
Merge branch 'develop' - prep for 0.8.0-b2 tagging.


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

Branch: refs/heads/master
Commit: 62df74fab22302d70a12caff0082d1adb6b5b3b3
Parents: 2acc09b 7e1731a
Author: Christopher Collins 
Authored: Wed Mar 16 22:56:34 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:56:34 2016 -0700

--
 LICENSE | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)
--




[1/4] incubator-mynewt-site git commit: MYNEWT-255 - doc on logs and stats added. minor formatting edits to them as well. This closes pull request #63

2016-03-19 Thread aditi
Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 00265afef -> 43d950539


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/43d95053/os/modules/stats/stats/index.html
--
diff --git a/os/modules/stats/stats/index.html 
b/os/modules/stats/stats/index.html
new file mode 100644
index 000..9e7ec80
--- /dev/null
+++ b/os/modules/stats/stats/index.html
@@ -0,0 +1,867 @@
+
+
+
+
+
+
+
+
+http://mynewt.apache.org/os/modules/stats/stats/;>
+
+
+   toc - Apache Mynewt
+
+
+
+
+
+
+
+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', 'mynewt.incubator.apache.org');
+ga('send', 'pageview');
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Toggle navigation
+
+
+
+
+
+
+
+
+
+
+
+
+Home
+
+
+About
+
+
+Docs 
+
+
+
+
+
+
+
+
+
+Overview
+
+
+
+
+
+
+
+
+
+
+
+
+
+Mynewt OS Manual
+
+
+
+
+
+
+
+Newt Tool Manual
+
+
+
+
+
+
+
+Newt Manager Manual
+
+
+
+
+
+
+
+Appendix
+
+
+
+
+
+
+
+Download
+
+
+Community
+
+
+Events
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+
+  
+  
+  
+Mynewt OS Manual
+  
+
+  
+  
+  
+
+  
+
+  Introduction
+
+  
+
+  
+  
+  
+
+  
+  
+Quick Start
+  
+
+  
+
+  
+  
+  
+
+  
+  
+Concepts
+  
+
+  
+
+  
+  
+  
+
+  
+  
+Tutorials
+  
+
+  
+
+  
+  
+  
+
+  
+  
+OS User Guide
+  
+
+  
+  
+  
+  
+  
+
+  
+  
+OS Core
+  
+
+  
+
+  
+  
+  
+
+  
+  
+Porting to your 
Platform
+  
+
+  
+
+  
+  
+  
+
+  
+  
+Console
+  
+
+  
+
+  
+  
+  
+
+  
+  
+Shell
+  
+
+  
+
+   

[34/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
--
diff --git a/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c 
b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
new file mode 100644
index 000..c0ab233
--- /dev/null
+++ b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.c
@@ -0,0 +1,186041 @@
+/**
+** This file is an amalgamation of many separate C source files from SQLite
+** version 3.10.2.  By combining all the individual C code files into this 
+** single large file, the entire code can be compiled as a single translation
+** unit.  This allows many compilers to do optimizations that would not be
+** possible if the files were compiled separately.  Performance improvements
+** of 5% or more are commonly seen when SQLite is compiled as a single
+** translation unit.
+**
+** This file is all you need to compile SQLite.  To use SQLite in other
+** programs, you need this file and the "sqlite3.h" header file that defines
+** the programming interface to the SQLite library.  (If you do not have 
+** the "sqlite3.h" header file at hand, you will find a copy embedded within
+** the text of this file.  Search for "Begin file sqlite3.h" to find the start
+** of the embedded sqlite3.h header file.) Additional code files may be needed
+** if you want a wrapper to interface SQLite with your choice of programming
+** language. The code for the "sqlite3" command-line shell is also in a
+** separate file. This file contains only code for the core SQLite library.
+*/
+#define SQLITE_CORE 1
+#define SQLITE_AMALGAMATION 1
+#ifndef SQLITE_PRIVATE
+# define SQLITE_PRIVATE static
+#endif
+/** Begin file sqliteInt.h ***/
+/*
+** 2001 September 15
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+*
+** Internal interface definitions for SQLite.
+**
+*/
+#ifndef _SQLITEINT_H_
+#define _SQLITEINT_H_
+
+/*
+** Include the header file used to customize the compiler options for MSVC.
+** This should be done first so that it can successfully prevent spurious
+** compiler warnings due to subsequent content in this file and other files
+** that are included by this file.
+*/
+/** Include msvc.h in the middle of sqliteInt.h **/
+/** Begin file msvc.h /
+/*
+** 2015 January 12
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+**
+**
+** This file contains code that is specific to MSVC.
+*/
+#ifndef _MSVC_H_
+#define _MSVC_H_
+
+#if defined(_MSC_VER)
+#pragma warning(disable : 4054)
+#pragma warning(disable : 4055)
+#pragma warning(disable : 4100)
+#pragma warning(disable : 4127)
+#pragma warning(disable : 4130)
+#pragma warning(disable : 4152)
+#pragma warning(disable : 4189)
+#pragma warning(disable : 4206)
+#pragma warning(disable : 4210)
+#pragma warning(disable : 4232)
+#pragma warning(disable : 4244)
+#pragma warning(disable : 4305)
+#pragma warning(disable : 4306)
+#pragma warning(disable : 4702)
+#pragma warning(disable : 4706)
+#endif /* defined(_MSC_VER) */
+
+#endif /* _MSVC_H_ */
+
+/** End of msvc.h /
+/** Continuing where we left off in sqliteInt.h **/
+
+/*
+** Special setup for VxWorks
+*/
+/** Include vxworks.h in the middle of sqliteInt.h ***/
+/** Begin file vxworks.h */
+/*
+** 2015-03-02
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+**
+**
+** This file contains code that is specific to Wind River's VxWorks
+*/
+#if defined(__RTP__) || defined(_WRS_KERNEL)
+/* This is VxWorks.  Set up things specially for that OS
+*/
+#include 
+#include   /* amalgamator: dontcache */
+#define OS_VXWORKS 1
+#define SQLITE_OS_OTHER 0
+#define 

[3/4] incubator-mynewt-site git commit: fixed links to newt install links in newtmgr tutorials. Added previous and next buttons at the bottom of every page. This closes #62

2016-03-19 Thread aditi
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/mbuf/os_mbuf_memcmp/index.html
--
diff --git a/os/core_os/mbuf/os_mbuf_memcmp/index.html 
b/os/core_os/mbuf/os_mbuf_memcmp/index.html
index bb87ea8..ded4654 100644
--- a/os/core_os/mbuf/os_mbuf_memcmp/index.html
+++ b/os/core_os/mbuf/os_mbuf_memcmp/index.html
@@ -1000,6 +1000,21 @@
 
 
 
+
+
+
+
+  
Previous: os_mbuf_get_pkthdr
+
+
+
+
+Next: os_mbuf_off  
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/mbuf/os_mbuf_off/index.html
--
diff --git a/os/core_os/mbuf/os_mbuf_off/index.html 
b/os/core_os/mbuf/os_mbuf_off/index.html
index 09c7a3f..8cb0fc2 100644
--- a/os/core_os/mbuf/os_mbuf_off/index.html
+++ b/os/core_os/mbuf/os_mbuf_off/index.html
@@ -1007,6 +1007,21 @@
 
 
 
+
+
+
+
+  
Previous: os_mbuf_memcmp
+
+
+
+
+Next: os_mbuf_pool_init  
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/mbuf/os_mbuf_pool_init/index.html
--
diff --git a/os/core_os/mbuf/os_mbuf_pool_init/index.html 
b/os/core_os/mbuf/os_mbuf_pool_init/index.html
index e266588..6f5073b 100644
--- a/os/core_os/mbuf/os_mbuf_pool_init/index.html
+++ b/os/core_os/mbuf/os_mbuf_pool_init/index.html
@@ -1018,6 +1018,21 @@
 
 
 
+
+
+
+
+  Previous: 
os_mbuf_off
+
+
+
+
+Next: os_mbuf_prepend  
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/mbuf/os_mbuf_prepend/index.html
--
diff --git a/os/core_os/mbuf/os_mbuf_prepend/index.html 
b/os/core_os/mbuf/os_mbuf_prepend/index.html
index 32b260b..064fc5c 100644
--- a/os/core_os/mbuf/os_mbuf_prepend/index.html
+++ b/os/core_os/mbuf/os_mbuf_prepend/index.html
@@ -998,6 +998,21 @@
 
 
 
+
+
+
+
+  
Previous: os_mbuf_pool_init
+
+
+
+
+Next: os_mbuf_pullup  
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/mbuf/os_mbuf_pullup/index.html
--
diff --git a/os/core_os/mbuf/os_mbuf_pullup/index.html 
b/os/core_os/mbuf/os_mbuf_pullup/index.html
index 787d9cb..ff84887 100644
--- a/os/core_os/mbuf/os_mbuf_pullup/index.html
+++ b/os/core_os/mbuf/os_mbuf_pullup/index.html
@@ -997,6 +997,21 @@
 
 
 
+
+
+
+
+  
Previous: os_mbuf_prepend
+
+
+
+
+Next: toc  
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
--
diff --git a/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html 
b/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
index d8f5540..48086c2 100644
--- a/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
+++ b/os/core_os/memory_pool/OS_MEMPOOL_BYTES/index.html
@@ -772,6 +772,21 @@
 
 
 
+
+
+
+
+  
Previous: os_memblock_put
+
+
+
+
+Next: OS_MEMPOOL_SIZE  
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5a1122a5/os/core_os/memory_pool/OS_MEMPOOL_SIZE/index.html
--
diff --git a/os/core_os/memory_pool/OS_MEMPOOL_SIZE/index.html 
b/os/core_os/memory_pool/OS_MEMPOOL_SIZE/index.html
index ceb210d..a401c3a 100644
--- a/os/core_os/memory_pool/OS_MEMPOOL_SIZE/index.html
+++ b/os/core_os/memory_pool/OS_MEMPOOL_SIZE/index.html
@@ -772,6 +772,21 @@
 
 
 
+

[49/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.gitignore
--
diff --git a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.gitignore 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.gitignore
deleted file mode 100644
index bf90dfd..000
--- a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-*.db
-*.exe
-*.dll

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.travis.yml
--
diff --git a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.travis.yml 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.travis.yml
deleted file mode 100644
index 03d626f..000
--- a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: go
-go:
-  - tip
-before_install:
-  - go get github.com/mattn/goveralls
-  - go get golang.org/x/tools/cmd/cover
-script:
-- $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/LICENSE
--
diff --git a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/LICENSE 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/LICENSE
deleted file mode 100644
index ca458bb..000
--- a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Yasuhiro Matsumoto
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/README.md
--
diff --git a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/README.md 
b/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/README.md
deleted file mode 100644
index d69e305..000
--- a/newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/README.md
+++ /dev/null
@@ -1,75 +0,0 @@
-go-sqlite3
-==
-
-[![Build 
Status](https://travis-ci.org/mattn/go-sqlite3.svg?branch=master)](https://travis-ci.org/mattn/go-sqlite3)
-[![Coverage 
Status](https://coveralls.io/repos/mattn/go-sqlite3/badge.svg?branch=master)](https://coveralls.io/r/mattn/go-sqlite3?branch=master)
-[![GoDoc](https://godoc.org/github.com/mattn/go-sqlite3?status.svg)](http://godoc.org/github.com/mattn/go-sqlite3)
-
-Description

-
-sqlite3 driver conforming to the built-in database/sql interface
-
-Installation
-
-
-This package can be installed with the go get command:
-
-go get github.com/mattn/go-sqlite3
-
-_go-sqlite3_ is *cgo* package.
-If you want to build your app using go-sqlite3, you need gcc.
-However, if you install _go-sqlite3_ with `go install 
github.com/mattn/go-sqlite3`, you don't need gcc to build your app anymore.
-
-Documentation
--
-
-API documentation can be found here: 
http://godoc.org/github.com/mattn/go-sqlite3
-
-Examples can be found under the `./_example` directory
-
-FAQ

-
-* Want to build go-sqlite3 with libsqlite3 on my linux.
-
-Use `go build --tags "libsqlite3 linux"`
-
-* Want to build go-sqlite3 with icu extension.
-
-   Use `go build --tags "icu"`
-
-* Can't build go-sqlite3 on windows 64bit.
-
-> Probably, you are using go 1.0, go1.0 has a problem when it comes to 
compiling/linking on windows 64bit. 
-> See: https://github.com/mattn/go-sqlite3/issues/27
-
-* Getting insert error while query is opened.
-
-> You can pass some arguments into the connection string, for example, a 
URI.
-> See: 

incubator-mynewt-newt git commit: Update LICENSE file to point to vendor.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master da9d64c39 -> 580535792
Updated Tags:  refs/tags/mynewt_0_8_0_b2_tag [created] 787a69bc0


Update LICENSE file to point to vendor.

This used to point to Godeps/_workspace.

Also, add a pointer to the golang unix package.


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

Branch: refs/heads/master
Commit: 58053579210a3541916d3e799b22cc81bc473e47
Parents: da9d64c
Author: Christopher Collins 
Authored: Wed Mar 16 22:46:10 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:46:10 2016 -0700

--
 LICENSE | 24 
 1 file changed, 12 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/58053579/LICENSE
--
diff --git a/LICENSE b/LICENSE
index bc3cb38..a218bbd 100644
--- a/LICENSE
+++ b/LICENSE
@@ -201,35 +201,35 @@
limitations under the License.
 
 This product bundles pretty, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/kr/pretty/License
+details, see newt/vendor/github.com/kr/pretty/License
 
 This product bundles kr/text, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/kr/text/License
+details, see newt/vendor/github.com/kr/text/License
 
 This product bundles go-sqlite3, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/mattn/go-sqlite3/LICENSE
+details, see newt/vendor/github.com/mattn/go-sqlite3/LICENSE
 
 This product bundles mapstructure, which is available under the MIT license.
-For details, see
-newt/Godeps/_workspace/src/github.com/mitchellh/mapstructure/LICENSE
+For details, see newt/vendor/github.com/mitchellh/mapstructure/LICENSE
 
 This product bundles logrus, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/Sirupsen/logrus/LICENSE
+details, see newt/vendor/github.com/Sirupsen/logrus/LICENSE
 
 This product bundles Cast, which is available under the MIT license.  For
-details, see newt/Godeps/_workspace/src/github.com/spf13/cast/LICENSE
+details, see newt/vendor/github.com/spf13/cast/LICENSE
 
 This product bundles jWalterWeatherman, which is available under the MIT
 license.  For details, see
-newt/Godeps/_workspace/src/github.com/spf13/jwalterweatherman/LICENSE
+newt/vendor/github.com/spf13/jwalterweatherman/LICENSE
 
 This product bundles pflag, which is available under the "3-clause BSD"
-license.  For details, see
-newt/Godeps/_workspace/src/github.com/spf13/pflag/LICENSE
+license.  For details, see newt/vendor/github.com/spf13/pflag/LICENSE
+
+This product bundles the unix Go package, which is available under the
+"3-clause BSD" license.  For details, see newt/vendor/golang.org/x/sys/LICENSE
 
 This product bundles fsnotify.v1, which is available under the "3-clause BSD"
-license.  For details, see
-newt/Godeps/_workspace/src/gopkg.in/fsnotify.v1/LICENSE
+license.  For details, see newt/vendor/gopkg.in/fsnotify.v1/LICENSE
 
 This product bundles yaml.v2's Go port of libyaml, which is available under the
 MIT license.  For details, see:



[18/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
new file mode 100644
index 000..0feceee
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
@@ -0,0 +1,1530 @@
+// mkerrors.sh -m64
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build amd64,dragonfly
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- -m64 _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_APPLETALK  = 0x10
+   AF_ATM= 0x1e
+   AF_BLUETOOTH  = 0x21
+   AF_CCITT  = 0xa
+   AF_CHAOS  = 0x5
+   AF_CNT= 0x15
+   AF_COIP   = 0x14
+   AF_DATAKIT= 0x9
+   AF_DECnet = 0xc
+   AF_DLI= 0xd
+   AF_E164   = 0x1a
+   AF_ECMA   = 0x8
+   AF_HYLINK = 0xf
+   AF_IEEE80211  = 0x23
+   AF_IMPLINK= 0x3
+   AF_INET   = 0x2
+   AF_INET6  = 0x1c
+   AF_IPX= 0x17
+   AF_ISDN   = 0x1a
+   AF_ISO= 0x7
+   AF_LAT= 0xe
+   AF_LINK   = 0x12
+   AF_LOCAL  = 0x1
+   AF_MAX= 0x24
+   AF_MPLS   = 0x22
+   AF_NATM   = 0x1d
+   AF_NETGRAPH   = 0x20
+   AF_NS = 0x6
+   AF_OSI= 0x7
+   AF_PUP= 0x4
+   AF_ROUTE  = 0x11
+   AF_SIP= 0x18
+   AF_SNA= 0xb
+   AF_UNIX   = 0x1
+   AF_UNSPEC = 0x0
+   B0= 0x0
+   B110  = 0x6e
+   B115200   = 0x1c200
+   B1200 = 0x4b0
+   B134  = 0x86
+   B14400= 0x3840
+   B150  = 0x96
+   B1800 = 0x708
+   B19200= 0x4b00
+   B200  = 0xc8
+   B230400   = 0x38400
+   B2400 = 0x960
+   B28800= 0x7080
+   B300  = 0x12c
+   B38400= 0x9600
+   B4800 = 0x12c0
+   B50   = 0x32
+   B57600= 0xe100
+   B600  = 0x258
+   B7200 = 0x1c20
+   B75   = 0x4b
+   B76800= 0x12c00
+   B9600 = 0x2580
+   BIOCFLUSH = 0x20004268
+   BIOCGBLEN = 0x40044266
+   BIOCGDLT  = 0x4004426a
+   BIOCGDLTLIST  = 0xc0104279
+   BIOCGETIF = 0x4020426b
+   BIOCGHDRCMPLT = 0x40044274
+   BIOCGRSIG = 0x40044272
+   BIOCGRTIMEOUT = 0x4010426e
+   BIOCGSEESENT  = 0x40044276
+   BIOCGSTATS= 0x4008426f
+   BIOCIMMEDIATE = 0x80044270
+   BIOCLOCK  = 0x2000427a
+   BIOCPROMISC   = 0x20004269
+   BIOCSBLEN = 0xc0044266
+   BIOCSDLT  = 0x80044278
+   BIOCSETF  = 0x80104267
+   BIOCSETIF = 0x8020426c
+   BIOCSETWF = 0x8010427b
+   BIOCSHDRCMPLT = 0x80044275
+   BIOCSRSIG = 0x80044273
+   BIOCSRTIMEOUT = 0x8010426d
+   BIOCSSEESENT  = 0x80044277
+   BIOCVERSION   = 0x40044271
+   BPF_A = 0x10
+   BPF_ABS   = 0x20
+   BPF_ADD   = 0x0
+   

[11/56] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
--
diff --git a/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go 
b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
new file mode 100644
index 000..47027b7
--- /dev/null
+++ b/newt/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
@@ -0,0 +1,1896 @@
+// mkerrors.sh
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+// +build arm64,linux
+
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs -- _const.go
+
+package unix
+
+import "syscall"
+
+const (
+   AF_ALG   = 0x26
+   AF_APPLETALK = 0x5
+   AF_ASH   = 0x12
+   AF_ATMPVC= 0x8
+   AF_ATMSVC= 0x14
+   AF_AX25  = 0x3
+   AF_BLUETOOTH = 0x1f
+   AF_BRIDGE= 0x7
+   AF_CAIF  = 0x25
+   AF_CAN   = 0x1d
+   AF_DECnet= 0xc
+   AF_ECONET= 0x13
+   AF_FILE  = 0x1
+   AF_IEEE802154= 0x24
+   AF_INET  = 0x2
+   AF_INET6 = 0xa
+   AF_IPX   = 0x4
+   AF_IRDA  = 0x17
+   AF_ISDN  = 0x22
+   AF_IUCV  = 0x20
+   AF_KEY   = 0xf
+   AF_LLC   = 0x1a
+   AF_LOCAL = 0x1
+   AF_MAX   = 0x29
+   AF_NETBEUI   = 0xd
+   AF_NETLINK   = 0x10
+   AF_NETROM= 0x6
+   AF_NFC   = 0x27
+   AF_PACKET= 0x11
+   AF_PHONET= 0x23
+   AF_PPPOX = 0x18
+   AF_RDS   = 0x15
+   AF_ROSE  = 0xb
+   AF_ROUTE = 0x10
+   AF_RXRPC = 0x21
+   AF_SECURITY  = 0xe
+   AF_SNA   = 0x16
+   AF_TIPC  = 0x1e
+   AF_UNIX  = 0x1
+   AF_UNSPEC= 0x0
+   AF_VSOCK = 0x28
+   AF_WANPIPE   = 0x19
+   AF_X25   = 0x9
+   ARPHRD_ADAPT = 0x108
+   ARPHRD_APPLETLK  = 0x8
+   ARPHRD_ARCNET= 0x7
+   ARPHRD_ASH   = 0x30d
+   ARPHRD_ATM   = 0x13
+   ARPHRD_AX25  = 0x3
+   ARPHRD_BIF   = 0x307
+   ARPHRD_CAIF  = 0x336
+   ARPHRD_CAN   = 0x118
+   ARPHRD_CHAOS = 0x5
+   ARPHRD_CISCO = 0x201
+   ARPHRD_CSLIP = 0x101
+   ARPHRD_CSLIP6= 0x103
+   ARPHRD_DDCMP = 0x205
+   ARPHRD_DLCI  = 0xf
+   ARPHRD_ECONET= 0x30e
+   ARPHRD_EETHER= 0x2
+   ARPHRD_ETHER = 0x1
+   ARPHRD_EUI64 = 0x1b
+   ARPHRD_FCAL  = 0x311
+   ARPHRD_FCFABRIC  = 0x313
+   ARPHRD_FCPL  = 0x312
+   ARPHRD_FCPP  = 0x310
+   ARPHRD_FDDI  = 0x306
+   ARPHRD_FRAD  = 0x302
+   ARPHRD_HDLC  = 0x201
+   ARPHRD_HIPPI = 0x30c
+   ARPHRD_HWX25 = 0x110
+   ARPHRD_IEEE1394  = 0x18
+   ARPHRD_IEEE802   = 0x6
+   ARPHRD_IEEE80211 = 0x321
+   ARPHRD_IEEE80211_PRISM   = 0x322
+   ARPHRD_IEEE80211_RADIOTAP= 0x323
+   ARPHRD_IEEE802154= 0x324
+   ARPHRD_IEEE802154_MONITOR= 0x325
+   ARPHRD_IEEE802_TR= 0x320
+   ARPHRD_INFINIBAND= 0x20
+   ARPHRD_IP6GRE= 0x337
+   ARPHRD_IPDDP = 0x309
+   ARPHRD_IPGRE = 0x30a
+   ARPHRD_IRDA  = 0x30f
+   ARPHRD_LAPB  = 0x204
+   ARPHRD_LOCALTLK  = 0x305
+   ARPHRD_LOOPBACK  = 0x304
+   ARPHRD_METRICOM  = 0x17
+   ARPHRD_NETLINK   = 0x338
+   ARPHRD_NETROM  

[56/56] [abbrv] incubator-mynewt-newt git commit: Minor changes to newt's README.

2016-03-19 Thread ccollins
Minor changes to newt's README.


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

Branch: refs/heads/master
Commit: da9d64c39b40fb43cf5df14e745d4f9985ba44f0
Parents: 15b13e5
Author: Christopher Collins 
Authored: Wed Mar 16 22:26:23 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 22:26:23 2016 -0700

--
 README.md | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/da9d64c3/README.md
--
diff --git a/README.md b/README.md
index a2ec735..b27d67e 100644
--- a/README.md
+++ b/README.md
@@ -21,16 +21,16 @@
 
 # Newt
 
-Newt is a build and package management tool, designed for C and C++ 
+Apache Newt is a build and package management tool, designed for C and C++ 
 applications in embedded contexts.  Newt was developed as a part of the 
 Apache Mynewt Operating System, more information on Apache Mynewt can be found 
 at https://mynewt.apache.org/.
 
 # Getting Started
 
-The included build.sh script can be used to build newt.  For more information
-on how to install Newt, please read [INSTALLING](/INSTALLING.md) or the
-documentation on https://mynewt.apache.org/
+To build Apache Newt, simply run the included build.sh script.  For more
+information on building and installng Apache Newt, please read
+[INSTALLING](/INSTALLING.md) or the documentation on https://mynewt.apache.org/
 
 Once you've installed newt, you can get started by creating a new project: 
 
@@ -39,7 +39,7 @@ Once you've installed newt, you can get started by creating a 
new project:
 ```
 
 For more information, and a tutorial for getting started, please take a look 
at 
-the [Apache Mynewt 
documentation](http://mynewt.apache.org/os/get_started/introduction/).
+the [Apache Mynewt 
documentation](https://mynewt.apache.org/os/get_started/introduction/).
 
 # Contributing 
 
@@ -60,7 +60,7 @@ If you are suggesting a new feature, please email the 
developer list directly,
 with a description of the feature you are planning to work on.  
 
 We do not merge pull requests directly on Github, all PRs will be pulled and 
-pushed through http://git.apache.org/.
+pushed through https://git.apache.org/.
 
 ## Filing Bugs
 
@@ -87,7 +87,7 @@ to get involved with the Apache Mynewt project.
 
 Pull requests to the apache-mynewt-site repository on Github are the best 
 way to submit documentation.  For more information on contributing to the 
-documentation, the [FAQ](http://mynewt.apache.org/faq/answers/) has some 
+documentation, the [FAQ](https://mynewt.apache.org/faq/answers/) has some 
 more information.
 
 ## Getting Help



[2/2] incubator-mynewt-site git commit: This closes #58. nRF52 tutorial updated with new newt commands. Link in Arduino Zero to first project fixed. Link to Sim blinky fixed

2016-03-19 Thread aditi
This closes #58. nRF52 tutorial updated with new newt commands. Link in Arduino 
Zero to first project fixed. Link to Sim blinky fixed


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

Branch: refs/heads/master
Commit: 46aa2856b41c28e5ccec2b55e917ef717fcded59
Parents: 11afe77
Author: aditihilbert 
Authored: Thu Mar 17 13:55:38 2016 -0700
Committer: aditihilbert 
Committed: Thu Mar 17 13:55:38 2016 -0700

--
 docs/os/get_started/project1.md   | 172 -
 docs/os/get_started/project_create.md |  53 ++---
 docs/os/tutorials/arduino_zero.md |  14 +--
 docs/os/tutorials/nRF52.md|  14 +--
 4 files changed, 49 insertions(+), 204 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/46aa2856/docs/os/get_started/project1.md
--
diff --git a/docs/os/get_started/project1.md b/docs/os/get_started/project1.md
deleted file mode 100644
index ee77f81..000
--- a/docs/os/get_started/project1.md
+++ /dev/null
@@ -1,172 +0,0 @@
-## Blinky, Your Hello World!
-
-### Objective
-
-Learn how to use packages from a default application repository of Mynewt to 
build your first *Hello World* application (Blinky) in the safe haven of a 
simulation. 
-
-This tutorial will guide to achieve the following: 
-
-1. Set up the environment on your computer to use Mynewt OS and newt tool. 
-2. Download packages for building and testing the project [on a simulated 
target](#build-test-code-on-simulator).
-
-** Time Requirement**: Allow yourself an hour for this project if you are 
relatively new to embedded systems and want to understand each step.
-
-
-### What you need
-
-1. Personal Computer with Mac OS (Mac: OS X Yosemite Version 10.10.5) or Linux 
box (Ubuntu 14.10: Utopic Unicorn)
-2. An account on Github repository and *git* installed on your computer.
-3. It assumed you already installed native tools described 
[here](native_tools.md)
-
-Also, we assume that you're familiar with UNIX shells.
-
-Let's gets started!
-
-### Install Native and Cross Tools
-
-
-See [Installing Native Tools](../get_started/native_tools.md)
- and [Installing Cross Tools](../get_started/cross_tools.md) for ARM to install
-the tools needed by newt.
-
-
-### Install newt tool
-
-There are two ways to install the *newt* tool on your computer. The easy way 
(and the recommeded way for this project) is to download the respective *newt* 
binaries from the links below:
-* Mac OS 
-* Linux
-
-Include the *newt* in your $PATH.
-
-Or if you're an adventurer then you can set up the environment on your 
computer, install the Go language, and build the *newt* tool from source as 
explained in the tutorials in the Newt Tool Manual. See [Install newt from 
source on Mac](../../newt/newt_mac.md) and [Install newt from source on 
Linux](../../newt/newt_linux.md).
-
-### Build test code on simulator 
-
-
-1\. Create a new project with newt 
-
-```no-highlight
-$ newt new my_project
-Downloading project skeleton from apache/incubator-mynewt-blinky...
-Installing skeleton in my_project...
-Project my_project successfully created.
-$ tree -L 3
-.
-├── DISCLAIMER
-├── LICENSE
-├── NOTICE
-├── README.md
-├── apps
-│   └── blinky
-│   ├── pkg.yml
-│   └── src
-├── project.yml
-└── targets
-├── my_blinky_sim
-│   ├── pkg.yml
-│   └── target.yml
-└── unittest
-├── pkg.yml
-└── target.yml
-
-6 directories, 10 files
-$ 
-``` 
-  
-2\. Install remote dependencies for the new project 
-
-```no-highlight
-$ newt install -v 
-apache-mynewt-core
-Downloading repository description for apache-mynewt-core... success!
-Downloading repository incubator-mynewt-core (branch: master; commit: 
mynewt_0_8_0_b2_tag) at https://github.com/apache/incubator-mynewt-core.git
-Cloning into 
'/var/folders/7l/7b3w9m4n2mg3sqmgw2q1b9p8gn/T/newt-repo969988348'...
-remote: Counting objects: 17935, done.
-remote: Compressing objects: 100% (234/234), done.
-remote: Total 17935 (delta 101), reused 0 (delta 0), pack-reused 17686
-Receiving objects: 100% (17935/17935), 6.18 MiB | 315.00 KiB/s, done.
-Resolving deltas: 100% (10541/10541), done.
-Checking connectivity... done.
-apache-mynewt-core successfully installed version 0.7.9-none
-```
-
-3\. Next, build the packages for the sim project using the *newt* tool. You 
should see lots of console output while *newt* is 

incubator-mynewt-blinky git commit: Add missing step to blinky README.

2016-03-19 Thread ccollins
Repository: incubator-mynewt-blinky
Updated Branches:
  refs/heads/develop 7e3c0312b -> 82f09fa2c


Add missing step to blinky README.


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

Branch: refs/heads/develop
Commit: 82f09fa2cc4c67fb30165ef6be0291aa76e6213e
Parents: 7e3c031
Author: Christopher Collins 
Authored: Wed Mar 16 23:33:30 2016 -0700
Committer: Christopher Collins 
Committed: Wed Mar 16 23:33:30 2016 -0700

--
 README.md | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-blinky/blob/82f09fa2/README.md
--
diff --git a/README.md b/README.md
index 405d33b..a77e004 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,13 @@ Apache Mynewt simulator.
 
 You will need to download the Apache Newt tool, as documented in the [Getting 
Started Guide](http://mynewt.apache.org/os/get_started/introduction/).
 
-2. Build the blinky app for the sim platform using the "my_blinky_sim" target
+2. Download the Apache Mynewt Core package (executed from the blinky 
directory).
+
+```no-highlight
+$ newt install
+```
+
+3. Build the blinky app for the sim platform using the "my_blinky_sim" target
 (executed from the blinky directory).
 
 ```no-highlight



[33/52] [abbrv] [partial] incubator-mynewt-newt git commit: Replace godeps _workspace with new go vendor dir.

2016-03-19 Thread ccollins
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/b002dd0c/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.h
--
diff --git a/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.h 
b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.h
new file mode 100644
index 000..c6d1e0f
--- /dev/null
+++ b/newt/vendor/github.com/mattn/go-sqlite3/code/sqlite3-binding.h
@@ -0,0 +1,8630 @@
+/*
+** 2001 September 15
+**
+** The author disclaims copyright to this source code.  In place of
+** a legal notice, here is a blessing:
+**
+**May you do good and not evil.
+**May you find forgiveness for yourself and forgive others.
+**May you share freely, never taking more than you give.
+**
+*
+** This header file defines the interface that the SQLite library
+** presents to client programs.  If a C-function, structure, datatype,
+** or constant definition does not appear in this file, then it is
+** not a published API of SQLite, is subject to change without
+** notice, and should not be referenced by programs that use SQLite.
+**
+** Some of the definitions that are in this file are marked as
+** "experimental".  Experimental interfaces are normally new
+** features recently added to SQLite.  We do not anticipate changes
+** to experimental interfaces but reserve the right to make minor changes
+** if experience from use "in the wild" suggest such changes are prudent.
+**
+** The official C-language API documentation for SQLite is derived
+** from comments in this file.  This file is the authoritative source
+** on how SQLite interfaces are supposed to operate.
+**
+** The name of this file under configuration management is "sqlite.h.in".
+** The makefile makes some minor changes to this file (such as inserting
+** the version number) and changes its name to "sqlite3.h" as
+** part of the build process.
+*/
+#ifndef _SQLITE3_H_
+#define _SQLITE3_H_
+#include  /* Needed for the definition of va_list */
+
+/*
+** Make sure we can call this stuff from C++.
+*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+** Provide the ability to override linkage features of the interface.
+*/
+#ifndef SQLITE_EXTERN
+# define SQLITE_EXTERN extern
+#endif
+#ifndef SQLITE_API
+# define SQLITE_API
+#endif
+#ifndef SQLITE_CDECL
+# define SQLITE_CDECL
+#endif
+#ifndef SQLITE_STDCALL
+# define SQLITE_STDCALL
+#endif
+
+/*
+** These no-op macros are used in front of interfaces to mark those
+** interfaces as either deprecated or experimental.  New applications
+** should not use deprecated interfaces - they are supported for backwards
+** compatibility only.  Application writers should be aware that
+** experimental interfaces are subject to change in point releases.
+**
+** These macros used to resolve to various kinds of compiler magic that
+** would generate warning messages when they were used.  But that
+** compiler magic ended up generating such a flurry of bug reports
+** that we have taken it all out and gone back to using simple
+** noop macros.
+*/
+#define SQLITE_DEPRECATED
+#define SQLITE_EXPERIMENTAL
+
+/*
+** Ensure these symbols were not defined by some previous header file.
+*/
+#ifdef SQLITE_VERSION
+# undef SQLITE_VERSION
+#endif
+#ifdef SQLITE_VERSION_NUMBER
+# undef SQLITE_VERSION_NUMBER
+#endif
+
+/*
+** CAPI3REF: Compile-Time Library Version Numbers
+**
+** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header
+** evaluates to a string literal that is the SQLite version in the
+** format "X.Y.Z" where X is the major version number (always 3 for
+** SQLite3) and Y is the minor version number and Z is the release number.)^
+** ^(The [SQLITE_VERSION_NUMBER] C preprocessor macro resolves to an integer
+** with the value (X*100 + Y*1000 + Z) where X, Y, and Z are the same
+** numbers used in [SQLITE_VERSION].)^
+** The SQLITE_VERSION_NUMBER for any given release of SQLite will also
+** be larger than the release from which it is derived.  Either Y will
+** be held constant and Z will be incremented or else Y will be incremented
+** and Z will be reset to zero.
+**
+** Since version 3.6.18, SQLite source code has been stored in the
+** http://www.fossil-scm.org/;>Fossil configuration management
+** system.  ^The SQLITE_SOURCE_ID macro evaluates to
+** a string which identifies a particular check-in of SQLite
+** within its configuration management system.  ^The SQLITE_SOURCE_ID
+** string contains the date and time of the check-in (UTC) and an SHA1
+** hash of the entire source tree.
+**
+** See also: [sqlite3_libversion()],
+** [sqlite3_libversion_number()], [sqlite3_sourceid()],
+** [sqlite_version()] and [sqlite_source_id()].
+*/
+#define SQLITE_VERSION"3.10.2"
+#define SQLITE_VERSION_NUMBER 3010002
+#define SQLITE_SOURCE_ID  "2016-01-20 15:27:19 
17efb4209f97fb4971656086b138599a91a75ff9"
+
+/*

[GitHub] incubator-mynewt-site pull request: MYNEWT-252

2016-03-19 Thread paulfdietrich
GitHub user paulfdietrich opened a pull request:

https://github.com/apache/incubator-mynewt-site/pull/58

MYNEWT-252

documentation for nrf52 with new newt commands

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/paulfdietrich/incubator-mynewt-site MYNEWT-252

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-mynewt-site/pull/58.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #58


commit b8ded39977c83baecc32911f4c89cbf791924a8a
Author: Paul Dietrich 
Date:   2016-03-17T20:05:06Z

MYNEWT-252

documentation for nrf52 with new newt commands




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


  1   2   >