[mynewt-documentation] branch master updated (198e782 -> 934b132)

2018-01-18 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git.


from 198e782  Merge pull request #11 from gj262/patch-1
 add ebaaf74  remove unused css
 add ca39b57  remove unused fonts
 add bb39ee9  match footer with site
 add 0533375  fix edit on github for multiple repos
 new 934b132  Merge pull request #12 from gj262/master

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Makefile   |3 +
 docs/_ext/edit_on_github.py|   30 +-
 docs/_static/css/sphinx_theme.css  |  122 +-
 docs/_static/img/add_to_slack.png  |  Bin 0 -> 5165 bytes
 docs/conf.py   |   12 +-
 docs/themes/mynewt/README.md   |2 -
 docs/themes/mynewt/footer.html |7 +-
 docs/themes/mynewt/static/css/badge_only.css   |  226 -
 docs/themes/mynewt/static/css/doc.css  | 6538 
 docs/themes/mynewt/static/css/theme.css| 4772 --
 .../mynewt/static/fonts/Inconsolata-Bold.ttf   |  Bin 66352 -> 0 bytes
 .../mynewt/static/fonts/Inconsolata-Regular.ttf|  Bin 84548 -> 0 bytes
 12 files changed, 2793 insertions(+), 8919 deletions(-)
 create mode 100644 docs/_static/img/add_to_slack.png
 delete mode 100644 docs/themes/mynewt/README.md
 delete mode 100644 docs/themes/mynewt/static/css/badge_only.css
 delete mode 100644 docs/themes/mynewt/static/css/doc.css
 delete mode 100644 docs/themes/mynewt/static/fonts/Inconsolata-Bold.ttf
 delete mode 100644 docs/themes/mynewt/static/fonts/Inconsolata-Regular.ttf

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[mynewt-documentation] branch master updated (2321318 -> 198e782)

2018-01-18 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git.


from 2321318  Merge pull request #10 from gj262/newtmgr
 add c75b627  Fix link
 new 198e782  Merge pull request #11 from gj262/patch-1

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/misc/go_env.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[mynewt-documentation] 01/01: Merge pull request #11 from gj262/patch-1

2018-01-18 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git

commit 198e782cda7f157f72e35bda3c92aec5d1aebd40
Merge: 2321318 c75b627
Author: aditihilbert 
AuthorDate: Thu Jan 18 23:18:58 2018 -0800

Merge pull request #11 from gj262/patch-1

Fix link

 docs/misc/go_env.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[mynewt-documentation] 01/01: Merge pull request #12 from gj262/master

2018-01-18 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git

commit 934b132aefaeecc4bac87ee1f184d2b4e68fd37a
Merge: 198e782 0533375
Author: aditihilbert 
AuthorDate: Thu Jan 18 23:19:08 2018 -0800

Merge pull request #12 from gj262/master

fix edit on github

 Makefile   |3 +
 docs/_ext/edit_on_github.py|   30 +-
 docs/_static/css/sphinx_theme.css  |  122 +-
 docs/_static/img/add_to_slack.png  |  Bin 0 -> 5165 bytes
 docs/conf.py   |   12 +-
 docs/themes/mynewt/README.md   |2 -
 docs/themes/mynewt/footer.html |7 +-
 docs/themes/mynewt/static/css/badge_only.css   |  226 -
 docs/themes/mynewt/static/css/doc.css  | 6538 
 docs/themes/mynewt/static/css/theme.css| 4772 --
 .../mynewt/static/fonts/Inconsolata-Bold.ttf   |  Bin 66352 -> 0 bytes
 .../mynewt/static/fonts/Inconsolata-Regular.ttf|  Bin 84548 -> 0 bytes
 12 files changed, 2793 insertions(+), 8919 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[GitHub] gj262 opened a new pull request #376: site: use a local add to slack image

2018-01-18 Thread GitBox
gj262 opened a new pull request #376: site: use a local add to slack image
URL: https://github.com/apache/mynewt-site/pull/376
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] branch master updated (03b9f29 -> 08b8c11)

2018-01-18 Thread vipulrahane
This is an automated email from the ASF dual-hosted git repository.

vipulrahane pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from 03b9f29  Merge pull request #711 from wes3/initarc
 add 7c6d8bf  LIS2DH12: fix build issues after merging recent PR
 new 08b8c11  Merge pull request #738 from vrahane/lis2dh12_cb_fix

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/drivers/sensors/lis2dh12/src/lis2dh12.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[mynewt-core] 01/01: Merge pull request #711 from wes3/initarc

2018-01-18 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 03b9f29b54ae0019c31f9f0efb4b5319d9a718f1
Merge: 1ce6bb0 7fd53ee
Author: wes3 
AuthorDate: Thu Jan 18 09:54:30 2018 -0800

Merge pull request #711 from wes3/initarc

Initial ARCv2 port of mynewt

 LICENSE|4 +
 compiler/arc/compiler.yml  |   36 +
 compiler/arc/pkg.yml   |   27 +
 hw/bsp/embarc_emsk/arc_core.ld |  128 ++
 hw/bsp/embarc_emsk/bsp.yml |   62 +
 hw/bsp/embarc_emsk/include/bsp/arc_core_config.h   |  179 +++
 hw/bsp/embarc_emsk/include/bsp/bsp.h   |   39 +
 hw/bsp/embarc_emsk/include/bsp/embARC_BSP_config.h |   66 +
 hw/bsp/embarc_emsk/pkg.yml |   33 +
 hw/bsp/embarc_emsk/src/board.c |   50 +
 hw/bsp/embarc_emsk/src/hal_bsp.c   |  109 ++
 hw/bsp/embarc_emsk/src/sbrk.c  |   60 +
 hw/bsp/embarc_emsk/syscfg.yml  |   42 +
 hw/mcu/arc/pkg.yml |   39 +
 hw/mcu/arc/snps/include/mcu/mcu_arc.h  |   35 +
 hw/mcu/arc/snps/pkg.yml|   29 +
 hw/mcu/arc/snps/src/arch/arc/arc_startup.S |  264 
 hw/mcu/arc/snps/src/hal_os_tick.c  |  103 ++
 hw/mcu/arc/snps/src/hal_system.c   |   68 +
 hw/mcu/arc/snps/src/hal_timer.c|  199 +++
 hw/mcu/arc/snps/src/hal_watchdog.c |   39 +
 hw/mcu/arc/snps/syscfg.yml |   19 +
 hw/mcu/arc/src/ext/sdk/README.md   |   22 +
 hw/mcu/arc/src/ext/sdk/arc/arc_cache.c |  420 ++
 hw/mcu/arc/src/ext/sdk/arc/arc_exc_asm.S   |  202 +++
 hw/mcu/arc/src/ext/sdk/arc/arc_exception.c |  514 +++
 hw/mcu/arc/src/ext/sdk/arc/arc_timer.c |  211 +++
 .../arc/src/ext/sdk/arc/startup/arc_cxx_support.c  |  168 +++
 hw/mcu/arc/src/ext/sdk/arc/startup/arc_startup.S   |  266 
 hw/mcu/arc/src/ext/sdk/board/board.h   |   68 +
 .../arc/src/ext/sdk/board/emsk/common/emsk_init.c  |  116 ++
 .../arc/src/ext/sdk/board/emsk/common/emsk_timer.c |  189 +++
 .../arc/src/ext/sdk/board/emsk/common/emsk_timer.h |   63 +
 hw/mcu/arc/src/ext/sdk/board/emsk/common/mux.c |  116 ++
 hw/mcu/arc/src/ext/sdk/board/emsk/common/mux.h |  186 +++
 hw/mcu/arc/src/ext/sdk/board/emsk/common/mux_hal.h |   69 +
 hw/mcu/arc/src/ext/sdk/board/emsk/emsk.h   |  128 ++
 hw/mcu/arc/src/ext/sdk/board/emsk/emsk_hardware.h  |  119 ++
 .../arc/src/ext/sdk/board/emsk/gpio/dw_gpio_obj.c  |  379 +
 .../arc/src/ext/sdk/board/emsk/gpio/dw_gpio_obj.h  |   90 ++
 hw/mcu/arc/src/ext/sdk/board/emsk/gpio/emsk_gpio.c |  199 +++
 hw/mcu/arc/src/ext/sdk/board/emsk/gpio/emsk_gpio.h |   96 ++
 hw/mcu/arc/src/ext/sdk/board/emsk/iic/dw_iic_obj.c |  302 
 hw/mcu/arc/src/ext/sdk/board/emsk/iic/dw_iic_obj.h |   83 +
 hw/mcu/arc/src/ext/sdk/board/emsk/spi/dw_spi_obj.c |  322 
 hw/mcu/arc/src/ext/sdk/board/emsk/spi/dw_spi_obj.h |   82 +
 .../arc/src/ext/sdk/board/emsk/uart/dw_uart_obj.c  |  266 
 .../arc/src/ext/sdk/board/emsk/uart/dw_uart_obj.h  |   89 ++
 hw/mcu/arc/src/ext/sdk/common/console_io.c |  164 ++
 hw/mcu/arc/src/ext/sdk/common/console_io.h |   57 +
 hw/mcu/arc/src/ext/sdk/common/xprintf.c|  391 +
 hw/mcu/arc/src/ext/sdk/common/xprintf.h|   48 +
 .../src/ext/sdk/device/designware/gpio/dw_gpio.c   |  481 ++
 .../src/ext/sdk/device/designware/gpio/dw_gpio.h   |  145 ++
 .../arc/src/ext/sdk/device/designware/iic/dw_iic.c | 1584 
 .../arc/src/ext/sdk/device/designware/iic/dw_iic.h |  242 +++
 .../src/ext/sdk/device/designware/iic/dw_iic_hal.h |  186 +++
 .../ext/sdk/device/designware/iic/dw_iic_hal_cfg.h |   82 +
 .../arc/src/ext/sdk/device/designware/spi/dw_spi.c | 1337 +
 .../arc/src/ext/sdk/device/designware/spi/dw_spi.h |  190 +++
 .../src/ext/sdk/device/designware/spi/dw_spi_hal.h |  141 ++
 .../ext/sdk/device/designware/spi/dw_spi_hal_cfg.h |   58 +
 .../src/ext/sdk/device/designware/uart/dw_uart.c   |  956 
 .../src/ext/sdk/device/designware/uart/dw_uart.h   |  141 ++
 .../ext/sdk/device/designware/uart/dw_uart_hal.h   |  253 
 .../src/ext/sdk/device/device_hal/inc/dev_common.h |  173 +++
 .../src/ext/sdk/device/device_hal/inc/dev_gpio.h   |  424 ++
 .../src/ext/sdk/device/device_hal/inc/dev_iic.h|  526 +++
 .../src/ext/sdk/device/device_hal/inc/dev_spi.h|  577 +++
 .../src/ext/sdk/device/device_hal/inc/dev_uart.h   |  475 ++
 hw/mcu/arc/src/ext/sdk/inc/arc/arc.h   |  436 ++
 hw/mcu/arc/src/ext/sdk/inc/arc/arc_asm_common.h|  541 +++
 

[mynewt-core] 01/01: Merge pull request #742 from rymanluk/hci_test_cmd

2018-01-18 Thread rymek
This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 1ce6bb0cb4605716f05ef87bbaf99f65315092be
Merge: afa2664 0899dc0
Author: Ɓukasz Rymanowski 
AuthorDate: Thu Jan 18 14:01:10 2018 +0100

Merge pull request #742 from rymanluk/hci_test_cmd

nimble/ble_ll: Add support for HCI Test commands

 hw/drivers/nimble/nrf52/src/ble_phy.c  |  13 +
 net/nimble/controller/include/controller/ble_ll.h  |   1 +
 .../controller/include/controller/ble_ll_sched.h   |   5 +
 net/nimble/controller/include/controller/ble_phy.h |   5 +
 net/nimble/controller/src/ble_ll.c |  36 ++
 net/nimble/controller/src/ble_ll_dtm.c | 494 +
 net/nimble/controller/src/ble_ll_dtm_priv.h|  36 ++
 net/nimble/controller/src/ble_ll_hci.c |  21 +
 net/nimble/controller/src/ble_ll_sched.c   |  60 +++
 net/nimble/controller/src/ble_ll_supp_cmd.c|  17 +
 net/nimble/controller/syscfg.yml   |   5 +
 net/nimble/host/src/ble_hs_hci_cmd.c   |   4 +-
 net/nimble/include/nimble/hci_common.h |   8 +-
 net/nimble/src/hci_common.c|   4 +-
 14 files changed, 701 insertions(+), 8 deletions(-)


-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[GitHub] rymanluk closed pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk closed pull request #742: nimble/ble_ll: Add support for HCI Test 
commands
URL: https://github.com/apache/mynewt-core/pull/742
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/drivers/nimble/nrf52/src/ble_phy.c 
b/hw/drivers/nimble/nrf52/src/ble_phy.c
index 690bbd79f..010b744dc 100644
--- a/hw/drivers/nimble/nrf52/src/ble_phy.c
+++ b/hw/drivers/nimble/nrf52/src/ble_phy.c
@@ -1824,6 +1824,19 @@ ble_phy_resolv_list_disable(void)
 }
 #endif
 
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+void ble_phy_enable_dtm(void)
+{
+/* Disable whitening as per Bluetooth v5.0 Vol 6. Part F. 4.1.1*/
+NRF_RADIO->PCNF1 &= ~RADIO_PCNF1_WHITEEN_Msk;
+}
+
+void ble_phy_disable_dtm(void)
+{
+/* Enable whitening */
+NRF_RADIO->PCNF1 |= RADIO_PCNF1_WHITEEN_Msk;
+}
+#endif
 #ifdef BLE_XCVR_RFCLK
 void
 ble_phy_rfclk_enable(void)
diff --git a/net/nimble/controller/include/controller/ble_ll.h 
b/net/nimble/controller/include/controller/ble_ll.h
index 3e3d2e517..12b978653 100644
--- a/net/nimble/controller/include/controller/ble_ll.h
+++ b/net/nimble/controller/include/controller/ble_ll.h
@@ -187,6 +187,7 @@ extern STATS_SECT_DECL(ble_ll_stats) ble_ll_stats;
 #define BLE_LL_STATE_SCANNING   (2)
 #define BLE_LL_STATE_INITIATING (3)
 #define BLE_LL_STATE_CONNECTION (4)
+#define BLE_LL_STATE_DTM(5)
 
 /* LL Features */
 #define BLE_LL_FEAT_LE_ENCRYPTION(0x0001)
diff --git a/net/nimble/controller/include/controller/ble_ll_sched.h 
b/net/nimble/controller/include/controller/ble_ll_sched.h
index 2a971c554..3545a4008 100644
--- a/net/nimble/controller/include/controller/ble_ll_sched.h
+++ b/net/nimble/controller/include/controller/ble_ll_sched.h
@@ -73,6 +73,7 @@ extern uint8_t g_ble_ll_sched_offset_ticks;
 #define BLE_LL_SCHED_TYPE_SCAN  (2)
 #define BLE_LL_SCHED_TYPE_CONN  (3)
 #define BLE_LL_SCHED_TYPE_AUX_SCAN  (4)
+#define BLE_LL_SCHED_TYPE_DTM   (5)
 
 /* Return values for schedule callback. */
 #define BLE_LL_SCHED_STATE_RUNNING  (0)
@@ -196,6 +197,10 @@ void ble_ll_sched_stop(void);
 void ble_ll_sched_rfclk_chk_restart(void);
 #endif
 
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+int ble_ll_sched_dtm(struct ble_ll_sched_item *sch);
+#endif
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/net/nimble/controller/include/controller/ble_phy.h 
b/net/nimble/controller/include/controller/ble_phy.h
index b459f548c..3887a2a3e 100644
--- a/net/nimble/controller/include/controller/ble_phy.h
+++ b/net/nimble/controller/include/controller/ble_phy.h
@@ -240,6 +240,11 @@ static inline int ble_ll_phy_to_phy_mode(int phy, int 
phy_options)
 return phy_mode;
 }
 
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE)
+void ble_phy_enable_dtm(void);
+void ble_phy_disable_dtm(void);
+#endif
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/net/nimble/controller/src/ble_ll.c 
b/net/nimble/controller/src/ble_ll.c
index 81fccc778..3674a19b1 100644
--- a/net/nimble/controller/src/ble_ll.c
+++ b/net/nimble/controller/src/ble_ll.c
@@ -42,6 +42,10 @@
 #include "controller/ble_ll_xcvr.h"
 #include "ble_ll_conn_priv.h"
 
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+#include 
+#endif
+
 /* XXX:
  *
  * 1) use the sanity task!
@@ -569,6 +573,11 @@ ble_ll_wfr_timer_exp(void *arg)
 case BLE_LL_STATE_INITIATING:
 ble_ll_conn_init_wfr_timer_exp();
 break;
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+case BLE_LL_STATE_DTM:
+ble_ll_dtm_wfr_timer_exp();
+break;
+#endif
 default:
 break;
 }
@@ -658,6 +667,12 @@ ble_ll_count_rx_stats(struct ble_mbuf_hdr *hdr, uint16_t 
len, uint8_t pdu_type)
 
 crcok = BLE_MBUF_HDR_CRC_OK(hdr);
 connection_data = (BLE_MBUF_HDR_RX_STATE(hdr) == BLE_LL_STATE_CONNECTION);
+
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+/* Reuse connection stats for DTM */
+connection_data = (BLE_MBUF_HDR_RX_STATE(hdr) == BLE_LL_STATE_DTM);
+#endif
+
 if (crcok) {
 if (connection_data) {
 STATS_INC(ble_ll_stats, rx_data_pdu_crc_ok);
@@ -730,6 +745,11 @@ ble_ll_rx_pkt_in(void)
 case BLE_LL_STATE_INITIATING:
 ble_ll_init_rx_pkt_in(pdu_type, rxbuf, ble_hdr);
 break;
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+case BLE_LL_STATE_DTM:
+ble_ll_dtm_rx_pkt_in(m, ble_hdr);
+break;
+#endif
 default:
 /* Any other state should never occur */
 STATS_INC(ble_ll_stats, bad_ll_state);
@@ -856,6 +876,11 @@ ble_ll_rx_start(uint8_t *rxbuf, uint8_t chan, struct 
ble_mbuf_hdr *rxhdr)
 case BLE_LL_STATE_SCANNING:
 rc = ble_ll_scan_rx_isr_start(pdu_type, >rxinfo.flags);
 break;
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+case 

[GitHub] oresk opened a new pull request #375: Team gcc arm embedded have changed name of the package.

2018-01-18 Thread GitBox
oresk opened a new pull request #375: Team gcc arm embedded have changed name 
of the package.
URL: https://github.com/apache/mynewt-site/pull/375
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] mkiiskila commented on a change in pull request #730: Add Cortex-M3 support

2018-01-18 Thread GitBox
mkiiskila commented on a change in pull request #730: Add Cortex-M3 support
URL: https://github.com/apache/mynewt-core/pull/730#discussion_r162316965
 
 

 ##
 File path: compiler/arm-none-eabi-m3/syscfg.yml
 ##
 @@ -0,0 +1,25 @@
+#
+# 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.
+#
+
+# Package: compiler/arm-none-eabi-m3
+
+# syscfg.defs:
+#   HARDFLOAT:
 
 Review comment:
   I don't think there's hardware FPU on Cortex-M3? Given that, this setting 
should not be here.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] branch master updated (bb77fbf -> afa2664)

2018-01-18 Thread janc
This is an automated email from the ASF dual-hosted git repository.

janc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from bb77fbf  Merge pull request #744 from gj262/newtmgr
 add 914b2e1  nimble/host: Allow low interval on non-connectable advertising
 new afa2664  Merge pull request #741 from sjanc/non-conn-adv

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 net/nimble/host/src/ble_hs_hci_cmd.c | 7 +++
 1 file changed, 7 insertions(+)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" '].


[GitHub] sjanc closed pull request #741: nimble/host: Allow low interval on non-connectable advertising

2018-01-18 Thread GitBox
sjanc closed pull request #741: nimble/host: Allow low interval on 
non-connectable advertising
URL: https://github.com/apache/mynewt-core/pull/741
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/nimble/host/src/ble_hs_hci_cmd.c 
b/net/nimble/host/src/ble_hs_hci_cmd.c
index 7f062c48c..1a60003c5 100644
--- a/net/nimble/host/src/ble_hs_hci_cmd.c
+++ b/net/nimble/host/src/ble_hs_hci_cmd.c
@@ -173,6 +173,12 @@ ble_hs_hci_cmd_body_le_set_adv_params(const struct 
hci_adv_params *adv,
 return -1;
 }
 
+/* When build with nimBLE controller we know it is BT5 compliant so no need
+ * to limit non-connectable advertising interval
+ */
+#if MYNEWT_VAL(BLE_DEVICE)
+itvl = BLE_HCI_ADV_ITVL_MIN;
+#else
 /* Make sure interval is valid for advertising type. */
 if ((adv->adv_type == BLE_HCI_ADV_TYPE_ADV_NONCONN_IND) ||
 (adv->adv_type == BLE_HCI_ADV_TYPE_ADV_SCAN_IND)) {
@@ -180,6 +186,7 @@ ble_hs_hci_cmd_body_le_set_adv_params(const struct 
hci_adv_params *adv,
 } else {
 itvl = BLE_HCI_ADV_ITVL_MIN;
 }
+#endif
 
 /* Do not check if high duty-cycle directed */
 if (adv->adv_type != BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD) {


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-core] 01/01: Merge pull request #741 from sjanc/non-conn-adv

2018-01-18 Thread janc
This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit afa26647cc6fa11afca999711e506d0ca4ea3fb8
Merge: bb77fbf 914b2e1
Author: Szymon Janc 
AuthorDate: Thu Jan 18 10:38:18 2018 +0100

Merge pull request #741 from sjanc/non-conn-adv

nimble/host: Allow low interval on non-connectable advertising

 net/nimble/host/src/ble_hs_hci_cmd.c | 7 +++
 1 file changed, 7 insertions(+)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" .


[GitHub] rymanluk commented on issue #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on issue #742: nimble/ble_ll: Add support for HCI Test 
commands
URL: https://github.com/apache/mynewt-core/pull/742#issuecomment-358580884
 
 
   Thanks for review. New version available


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support 
for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162280172
 
 

 ##
 File path: net/nimble/controller/src/ble_ll_test.c
 ##
 @@ -0,0 +1,498 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include 
+
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+
+#include "assert.h"
+#include "os/os.h"
+#include "controller/ble_ll.h"
+#include "controller/ble_phy.h"
+#include "controller/ble_ll_sched.h"
+#include "ble_ll_test_priv.h"
+
+struct test_ctx {
+uint8_t payload_packet;
+uint16_t num_of_packets;
+uint32_t itvl_ticks;
+uint32_t itvl_rem_usec;
+int active;
+int chan;
+int phy_mode;
+struct os_mbuf *om;
+struct os_event evt;
+struct ble_ll_sched_item sch;
+};
+
+static struct test_ctx g_ble_ll_test_ctx;
+
+static const uint8_t g_ble_ll_test_prbs9_data[] = {
+0xff, 0xc1, 0xfb, 0xe8, 0x4c, 0x90, 0x72, 0x8b,
+0xe7, 0xb3, 0x51, 0x89, 0x63, 0xab, 0x23, 0x23,
+0x02, 0x84, 0x18, 0x72, 0xaa, 0x61, 0x2f, 0x3b,
+0x51, 0xa8, 0xe5, 0x37, 0x49, 0xfb, 0xc9, 0xca,
+0x0c, 0x18, 0x53, 0x2c, 0xfd, 0x45, 0xe3, 0x9a,
+0xe6, 0xf1, 0x5d, 0xb0, 0xb6, 0x1b, 0xb4, 0xbe,
+0x2a, 0x50, 0xea, 0xe9, 0x0e, 0x9c, 0x4b, 0x5e,
+0x57, 0x24, 0xcc, 0xa1, 0xb7, 0x59, 0xb8, 0x87,
+0xff, 0xe0, 0x7d, 0x74, 0x26, 0x48, 0xb9, 0xc5,
+0xf3, 0xd9, 0xa8, 0xc4, 0xb1, 0xd5, 0x91, 0x11,
+0x01, 0x42, 0x0c, 0x39, 0xd5, 0xb0, 0x97, 0x9d,
+0x28, 0xd4, 0xf2, 0x9b, 0xa4, 0xfd, 0x64, 0x65,
+0x06, 0x8c, 0x29, 0x96, 0xfe, 0xa2, 0x71, 0x4d,
+0xf3, 0xf8, 0x2e, 0x58, 0x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xf9, 0x4d, 0xd2, 0x7e, 0xb2,
+0x32, 0x03, 0xc6, 0x14, 0x4b, 0x7f, 0xd1, 0xb8,
+0xa6, 0x79, 0x7c, 0x17, 0xac, 0xed, 0x06, 0xad,
+0xaf, 0x0a, 0x94, 0x7a, 0xba, 0x03, 0xe7, 0x92,
+0xd7, 0x15, 0x09, 0x73, 0xe8, 0x6d, 0x16, 0xee,
+0xe1, 0x3f, 0x78, 0x1f, 0x9d, 0x09, 0x52, 0x6e,
+0xf1, 0x7c, 0x36, 0x2a, 0x71, 0x6c, 0x75, 0x64,
+0x44, 0x80, 0x10, 0x43, 0x4e, 0x35, 0xec, 0x65,
+0x27, 0x0a, 0xb5, 0xfc, 0x26, 0x69, 0x3f, 0x59,
+0x99, 0x01, 0x63, 0x8a, 0xa5, 0xbf, 0x68, 0x5c,
+0xd3, 0x3c, 0xbe, 0x0b, 0xd6, 0x76, 0x83, 0xd6,
+0x57, 0x05, 0x4a, 0x3d, 0xdd, 0x81, 0x73, 0xc9,
+0xeb, 0x8a, 0x84, 0x39, 0xf4, 0x36, 0x0b, 0xf7,
+0xf0, 0x1f, 0xbc, 0x8f, 0xce, 0x04, 0x29, 0xb7,
+0x78, 0x3e, 0x1b, 0x95, 

[GitHub] rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support 
for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162277426
 
 

 ##
 File path: net/nimble/controller/src/ble_ll_test.c
 ##
 @@ -0,0 +1,498 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include 
+
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+
+#include "assert.h"
+#include "os/os.h"
+#include "controller/ble_ll.h"
+#include "controller/ble_phy.h"
+#include "controller/ble_ll_sched.h"
+#include "ble_ll_test_priv.h"
+
+struct test_ctx {
+uint8_t payload_packet;
+uint16_t num_of_packets;
+uint32_t itvl_ticks;
+uint32_t itvl_rem_usec;
+int active;
+int chan;
+int phy_mode;
+struct os_mbuf *om;
+struct os_event evt;
+struct ble_ll_sched_item sch;
+};
+
+static struct test_ctx g_ble_ll_test_ctx;
+
+static const uint8_t g_ble_ll_test_prbs9_data[] = {
+0xff, 0xc1, 0xfb, 0xe8, 0x4c, 0x90, 0x72, 0x8b,
+0xe7, 0xb3, 0x51, 0x89, 0x63, 0xab, 0x23, 0x23,
+0x02, 0x84, 0x18, 0x72, 0xaa, 0x61, 0x2f, 0x3b,
+0x51, 0xa8, 0xe5, 0x37, 0x49, 0xfb, 0xc9, 0xca,
+0x0c, 0x18, 0x53, 0x2c, 0xfd, 0x45, 0xe3, 0x9a,
+0xe6, 0xf1, 0x5d, 0xb0, 0xb6, 0x1b, 0xb4, 0xbe,
+0x2a, 0x50, 0xea, 0xe9, 0x0e, 0x9c, 0x4b, 0x5e,
+0x57, 0x24, 0xcc, 0xa1, 0xb7, 0x59, 0xb8, 0x87,
+0xff, 0xe0, 0x7d, 0x74, 0x26, 0x48, 0xb9, 0xc5,
+0xf3, 0xd9, 0xa8, 0xc4, 0xb1, 0xd5, 0x91, 0x11,
+0x01, 0x42, 0x0c, 0x39, 0xd5, 0xb0, 0x97, 0x9d,
+0x28, 0xd4, 0xf2, 0x9b, 0xa4, 0xfd, 0x64, 0x65,
+0x06, 0x8c, 0x29, 0x96, 0xfe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, 0x9c, 0x6a, 0xd8, 0xcb,
+0x4e, 0x14, 0x6a, 0xf9, 0x4d, 0xd2, 0x7e, 0xb2,
+0x32, 0x03, 0xc6, 0x14, 0x4b, 0x7f, 0xd1, 0xb8,
+0xa6, 0x79, 0x7c, 0x17, 0xac, 0xed, 0x06, 0xad,
+0xaf, 0x0a, 0x94, 0x7a, 0xba, 0x03, 0xe7, 0x92,
+0xd7, 0x15, 0x09, 0x73, 0xe8, 0x6d, 0x16, 0xee,
+0xe1, 0x3f, 0x78, 0x1f, 0x9d, 0x09, 0x52, 0x6e,
+0xf1, 0x7c, 0x36, 0x2a, 0x71, 0x6c, 0x75, 0x64,
+0x44, 0x80, 0x10, 0x43, 0x4e, 0x35, 0xec, 0x65,
+0x27, 0x0a, 0xb5, 0xfc, 0x26, 0x69, 0x3f, 0x59,
+0x99, 0x01, 0x63, 0x8a, 0xa5, 0xbf, 0x68, 0x5c,
+0xd3, 0x3c, 0xbe, 0x0b, 0xd6, 0x76, 0x83, 0xd6,
+0x57, 0x05, 0x4a, 0x3d, 0xdd, 0x81, 0x73, 0xc9,
+0xeb, 0x8a, 0x84, 0x39, 0xf4, 0x36, 0x0b, 0xf7,
+0xf0, 0x1f, 0xbc, 0x8f, 0xce, 0x04, 0x29, 0xb7,
+0x78, 0x3e, 0x1b, 0x95, 

[GitHub] rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support 
for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162273717
 
 

 ##
 File path: net/nimble/controller/src/ble_ll_test.c
 ##
 @@ -0,0 +1,498 @@
+/*
+ * 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.
+ */
+
 
 Review comment:
   makes sense. Will do


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support 
for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162273360
 
 

 ##
 File path: net/nimble/controller/src/ble_ll_sched.c
 ##
 @@ -1078,7 +1078,11 @@ ble_ll_sched_rmv_elem(struct ble_ll_sched_item *sch)
 if (first == sch) {
 os_cputime_timer_stop(_ble_ll_sched_timer);
 }
-
+#ifdef BLE_XCVR_RFCLK
+if (sch == TAILQ_FIRST(_ble_ll_sched_q)) {
+ble_ll_xcvr_rfclk_timer_start(sch->start_time);
+}
+#endif
 
 Review comment:
   this is some terrible copy paste issue - thanks for catching it.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support 
for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162273043
 
 

 ##
 File path: hw/drivers/nimble/nrf52/src/ble_phy.c
 ##
 @@ -1824,6 +1833,28 @@ ble_phy_resolv_list_disable(void)
 }
 #endif
 
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
+void ble_phy_enable_dtm(void)
+{
+/* Disable whitening */
 
 Review comment:
   yup, as per spec. Added.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support for HCI Test commands

2018-01-18 Thread GitBox
rymanluk commented on a change in pull request #742: nimble/ble_ll: Add support 
for HCI Test commands
URL: https://github.com/apache/mynewt-core/pull/742#discussion_r162271695
 
 

 ##
 File path: hw/drivers/nimble/nrf52/src/ble_phy.c
 ##
 @@ -1694,8 +1698,13 @@ ble_phy_setchan(uint8_t chan, uint32_t access_addr, 
uint32_t crcinit)
 /* Set the frequency and the data whitening initial value */
 g_ble_phy_data.phy_chan = chan;
 NRF_RADIO->FREQUENCY = freq;
+#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE) == 1
 
 Review comment:
   let me try that then. If OK I will remove it.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services