[mynewt-core] 01/01: kinetis/hal_gpio.c: Fix hal_gpio_init_out, to make it set the pin to given initial value.

2021-03-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 361d21a9ed4abf29f3db6ab4c7bc8551d5a8a162
Author: Miguel Azevedo 
AuthorDate: Mon Mar 22 15:22:47 2021 +

kinetis/hal_gpio.c: Fix hal_gpio_init_out, to make it set the pin to given 
initial value.
---
 hw/mcu/nxp/kinetis/src/hal_gpio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/mcu/nxp/kinetis/src/hal_gpio.c 
b/hw/mcu/nxp/kinetis/src/hal_gpio.c
index e1d69e5..e328745 100644
--- a/hw/mcu/nxp/kinetis/src/hal_gpio.c
+++ b/hw/mcu/nxp/kinetis/src/hal_gpio.c
@@ -84,14 +84,13 @@ int
 hal_gpio_init_out(int pin, int val)
 {
 gpio_pin_config_t gconfig;
-port_pin_config_t pconfig;
 
 gconfig.pinDirection = kGPIO_DigitalOutput;
-pconfig.mux = kPORT_MuxAsGpio;
+gconfig.outputLogic = (uint8_t) val;
 
 CLOCK_EnableClock(s_portClocks[GPIO_PORT(pin)]);
-PORT_SetPinConfig(s_portBases[GPIO_PORT(pin)], GPIO_INDEX(pin), );
 GPIO_PinInit(s_gpioBases[GPIO_PORT(pin)], GPIO_INDEX(pin), );
+PORT_SetPinMux(s_portBases[GPIO_PORT(pin)], GPIO_INDEX(pin), 
kPORT_MuxAsGpio);
 
 return 0;
 }


[mynewt-core] branch kinetis_fixes created (now 361d21a)

2021-03-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


  at 361d21a  kinetis/hal_gpio.c: Fix hal_gpio_init_out, to make it set the 
pin to given initial value.

This branch includes the following new commits:

 new 361d21a  kinetis/hal_gpio.c: Fix hal_gpio_init_out, to make it set the 
pin to given initial value.

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.



[mynewt-core] branch master updated (2db79a9 -> 203ee58)

2021-02-18 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 2db79a9  bsp/nordic_pca10095: Set nrf5340 as default transport
 new 97e80fc  mcu/nxp/kinetis: Change hal_os_tick to be run by SysTick.
 new 10ea526  bsp/frdm-k82f: Update clock_config.c
 new b262a45  bsp/frdm-k82f: Set better defaults on FOPT for quicker boot 
from internal flash.
 new efeede5  bsp/frdm-kxxf: Allow reading Core and peripheral registers 
while debugging.
 new 203ee58  Merge pull request #2487 from mlaz/k8xf_support

The 9918 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:
 .style_ignored_dirs|   5 +-
 hw/bsp/frdm-k64f/frdm-k64_debug.sh |   1 +
 hw/bsp/frdm-k82f/frdm-k82_debug.sh |   1 +
 .../src/arch/cortex_m4/startup_MK82F25615.S|   2 +-
 hw/bsp/frdm-k82f/src/clock_config.c| 252 +++--
 hw/bsp/frdm-k82f/src/clock_config.h|  16 +-
 hw/mcu/nxp/kinetis/src/hal_os_tick.c   |  53 ++---
 7 files changed, 170 insertions(+), 160 deletions(-)



[mynewt-core] branch master updated (1a19155 -> 0d34e3a)

2021-02-05 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 1a19155  Merge pull request #2471 from benmccrea/fix-cc-alt-eventq
 new fc77156  hal/mcu/nxp: Added NXP Kinetis K8xF MCU support. hal/bsp 
Added frdm-k82f BSP.
 new c65d0e9  mcu/nxp/kinetis: Make MCU_FLASH_MIN_WRITE_SIZE configurable 
on the sub-family level. Remove MK64F12 unneeded dependencies, already included 
on kinetis level.
 new 0d34e3a  Merge pull request #2467 from mlaz/k8xf_support

The 9886 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:
 .rat-excludes  | 8 +
 .style_ignored_dirs| 3 +-
 hw/bsp/frdm-k82f/MK82FN256xxx15_flash.ld   |   240 +
 hw/bsp/frdm-k82f/boot-MK82FN256xxx15_flash.ld  |   235 +
 hw/bsp/frdm-k82f/bsp.yml   |63 +
 .../frdm-k82_debug.cmd}| 0
 .../pkg.yml => bsp/frdm-k82f/frdm-k82_debug.sh}|28 +-
 .../frdm-k82_download.cmd} | 0
 hw/bsp/frdm-k82f/frdm-k82_download.sh  |39 +
 hw/bsp/frdm-k82f/include/bsp/bsp.h |42 +
 hw/bsp/frdm-k82f/pkg.yml   |64 +
 .../src/arch/cortex_m4/startup_MK82F25615.S|   881 +
 hw/bsp/frdm-k82f/src/clock_config.c|   411 +
 hw/bsp/frdm-k82f/src/clock_config.h|   146 +
 hw/bsp/frdm-k82f/src/hal_bsp.c |   298 +
 hw/bsp/frdm-k82f/syscfg.yml|77 +
 hw/mcu/nxp/kinetis/MK64F12/pkg.yml | 2 -
 hw/mcu/nxp/kinetis/MK64F12/syscfg.yml  | 1 +
 .../nxp/kinetis/MK8xF/MK82F/include/MK82F25615.h   | 27511 +++
 .../MK8xF/MK82F/include/MK82F25615_features.h  |  2101 ++
 .../MK8xF/MK82F/include/fsl_device_registers.h |35 +
 .../MK8xF/MK82F/include/system_MK82F25615.h|   132 +
 .../nxp/kinetis/{MK64F12 => MK8xF/MK82F}/pkg.yml   | 8 +-
 .../kinetis/MK8xF/MK82F/src/system_MK82F25615.c|   212 +
 hw/mcu/nxp/kinetis/MK8xF/include/fsl_clock.h   |  1640 ++
 hw/mcu/nxp/kinetis/MK8xF/include/mcu/cmsis_nvic.h  |47 +
 hw/mcu/nxp/kinetis/MK8xF/include/mcu/cortex_m4.h   |42 +
 .../nxp/kinetis/MK8xF/include/mcu/frdm-k8xf_hal.h  |36 +
 .../kinetis/{MK64F12 => MK8xF}/include/mcu/mcu.h   | 0
 hw/mcu/nxp/kinetis/{MK64F12 => MK8xF}/pkg.yml  | 7 +-
 hw/mcu/nxp/kinetis/MK8xF/src/fsl_clock.c   |  2379 ++
 hw/mcu/nxp/kinetis/{MK64F12 => MK8xF}/syscfg.yml   | 8 +
 hw/mcu/nxp/kinetis/syscfg.yml  | 3 +-
 hw/mcu/nxp/pkg.yml | 1 +
 34 files changed, 36676 insertions(+), 24 deletions(-)
 create mode 100644 hw/bsp/frdm-k82f/MK82FN256xxx15_flash.ld
 create mode 100644 hw/bsp/frdm-k82f/boot-MK82FN256xxx15_flash.ld
 create mode 100644 hw/bsp/frdm-k82f/bsp.yml
 copy hw/bsp/{vbluno52/vbluno52_download.cmd => frdm-k82f/frdm-k82_debug.cmd} 
(100%)
 copy hw/{mcu/nxp/kinetis/MK64F12/pkg.yml => bsp/frdm-k82f/frdm-k82_debug.sh} 
(54%)
 mode change 100644 => 100755
 copy hw/bsp/{vbluno52/vbluno52_download.cmd => 
frdm-k82f/frdm-k82_download.cmd} (100%)
 create mode 100755 hw/bsp/frdm-k82f/frdm-k82_download.sh
 create mode 100644 hw/bsp/frdm-k82f/include/bsp/bsp.h
 create mode 100644 hw/bsp/frdm-k82f/pkg.yml
 create mode 100644 hw/bsp/frdm-k82f/src/arch/cortex_m4/startup_MK82F25615.S
 create mode 100644 hw/bsp/frdm-k82f/src/clock_config.c
 create mode 100644 hw/bsp/frdm-k82f/src/clock_config.h
 create mode 100644 hw/bsp/frdm-k82f/src/hal_bsp.c
 create mode 100644 hw/bsp/frdm-k82f/syscfg.yml
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/MK82F/include/MK82F25615.h
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/MK82F/include/MK82F25615_features.h
 create mode 100644 
hw/mcu/nxp/kinetis/MK8xF/MK82F/include/fsl_device_registers.h
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/MK82F/include/system_MK82F25615.h
 copy hw/mcu/nxp/kinetis/{MK64F12 => MK8xF/MK82F}/pkg.yml (79%)
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/MK82F/src/system_MK82F25615.c
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/include/fsl_clock.h
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/include/mcu/cmsis_nvic.h
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/include/mcu/cortex_m4.h
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/include/mcu/frdm-k8xf_hal.h
 copy hw/mcu/nxp/kinetis/{MK64F12 => MK8xF}/include/mcu/mcu.h (100%)
 copy hw/mcu/nxp/kinetis/{MK64F12 => MK8xF}/pkg.yml (84%)
 create mode 100644 hw/mcu/nxp/kinetis/MK8xF/src/fsl_clock.c
 copy hw/mcu/nxp/kinetis/{MK64F12 => MK8xF}/syscfg.yml (84%)



[mynewt-core] branch master updated (529235a -> 40ea315)

2021-02-04 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 529235a  [KINETIS] Turn pyocd into a reusable script
 new ebd245a  NXP SDK Updated to 2.9.0
 new 8543af7  Added kinetis MCU common HAL.
 new 40ea315  Merge pull request #2466 from mlaz/kinetis_update

The 9881 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:
 .rat-excludes  |  3 +-
 .style_ignored_dirs|  1 +
 hw/bsp/frdm-k64f/pkg.yml   |  4 +-
 hw/bsp/frdm-k64f/src/hal_bsp.c |  9 +-
 hw/bsp/frdm-k64f/syscfg.yml|124 +-
 hw/mcu/nxp/MK64F12/src/hal_flash.c |152 -
 hw/mcu/nxp/MK64F12/src/hal_gpio.c  |104 -
 .../MK64F12 => kinetis/MK64F12/include}/MK64F12.h  |  35126 +++--
 .../MK64F12/include}/MK64F12_features.h|   4349 +-
 .../MK64F12/include}/fsl_clock.h   |   3077 +-
 .../kinetis/MK64F12/include/fsl_device_registers.h | 36 +
 .../{ => kinetis}/MK64F12/include/mcu/cmsis_nvic.h |  0
 .../{ => kinetis}/MK64F12/include/mcu/cortex_m4.h  |  0
 .../MK64F12/include/mcu/frdm-k64f_hal.h|  2 +-
 hw/mcu/nxp/{ => kinetis}/MK64F12/include/mcu/mcu.h |  0
 .../MK64F12/include}/system_MK64F12.h  |339 +-
 hw/mcu/nxp/{ => kinetis}/MK64F12/pkg.yml   |  4 +-
 hw/mcu/nxp/kinetis/MK64F12/src/fsl_clock.c |   2337 +
 .../MK64F12/src}/system_MK64F12.c  |493 +-
 hw/mcu/nxp/{ => kinetis}/MK64F12/syscfg.yml| 20 -
 .../include/hal_lpuart_nxp.h}  | 41 +-
 .../src => kinetis/include}/hal_uart_nxp.h |  0
 .../include/mcu/kinetis_common.h}  | 30 +-
 .../include/mcu/kinetis_hal.h} | 29 +-
 hw/mcu/nxp/{MK64F12 => kinetis}/pkg.yml| 12 +-
 hw/mcu/nxp/kinetis/src/hal_flash.c |177 +
 hw/mcu/nxp/kinetis/src/hal_gpio.c  |368 +
 hw/mcu/nxp/{MK64F12 => kinetis}/src/hal_hw_id.c| 17 +-
 hw/mcu/nxp/kinetis/src/hal_i2c.c   |408 +
 .../src/hal_uart.c => kinetis/src/hal_lpuart.c}|201 +-
 hw/mcu/nxp/{MK64F12 => kinetis}/src/hal_os_tick.c  |  0
 hw/mcu/nxp/kinetis/src/hal_qspi.c  |362 +
 .../nxp/{MK64F12 => kinetis}/src/hal_reset_cause.c | 29 +-
 hw/mcu/nxp/kinetis/src/hal_spi.c   |621 +
 hw/mcu/nxp/{MK64F12 => kinetis}/src/hal_system.c   |  0
 .../{MK64F12 => kinetis}/src/hal_system_start.c|  0
 hw/mcu/nxp/{MK64F12 => kinetis}/src/hal_uart.c |  1 -
 hw/mcu/nxp/{MK64F12 => kinetis}/src/hal_watchdog.c |  2 -
 hw/mcu/nxp/kinetis/syscfg.yml  |423 +
 hw/mcu/nxp/pkg.yml | 29 +-
 hw/mcu/nxp/src/ext/nxp-kinetis-sdk/COPYING-BSD-3   | 33 +
 .../src/ext/nxp-kinetis-sdk/drivers/fsl_adc16.c|501 +
 .../drivers/fsl_adc16.h|   1043 +-
 .../src/ext/nxp-kinetis-sdk/drivers/fsl_cache.c|500 +
 .../src/ext/nxp-kinetis-sdk/drivers/fsl_cache.h|340 +
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_cmp.c  |371 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_cmp.h  |667 +-
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_cmt.c  |330 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_cmt.h  |780 +-
 .../src/ext/nxp-kinetis-sdk/drivers/fsl_common.c   |311 +
 .../src/ext/nxp-kinetis-sdk/drivers/fsl_common.h   |954 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_crc.c  |592 +-
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_crc.h  |373 +-
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_dac.c  |300 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_dac.h  |736 +-
 .../drivers/fsl_dmamux.c   |178 +-
 .../src/ext/nxp-kinetis-sdk/drivers/fsl_dmamux.h   |189 +
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_dspi.c |   2248 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_dspi.h |   2422 +-
 .../ext/nxp-kinetis-sdk/drivers/fsl_dspi_edma.c|   1530 +
 .../drivers/fsl_dspi_edma.h|583 +-
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_edma.c |   2794 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_edma.h |   1897 +-
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_enet.c |   3476 +
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_enet.h |   1876 +
 .../nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_ewm.c  |140 +
 .../MK64F12 => nxp-kinetis-sdk}/drivers/fsl_ewm.h  |460 +-
 .../sr

[mynewt-core] branch master updated (ef1427c -> 2eb0948)

2020-05-11 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from ef1427c  hw/bsp/pinetime: Make drivers optional and disable for 
bootloader
 new 0e3ee92  Calibrate ADC when sampling after a configuration.
 new fe60fec  Fix nrf52 ADC gain setup bug.
 new 2eb0948  Merge pull request #2280 from mlaz/nrf52_adc_fixes

The 9615 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/adc/adc_nrf52/src/adc_nrf52.c | 38 +++-
 1 file changed, 27 insertions(+), 11 deletions(-)



[mynewt-mcumgr] branch master updated: zephyr: adapt to changes in flash_img.c

2020-04-30 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new bde2812  zephyr: adapt to changes in flash_img.c
 new 9f6555a  Merge pull request #79 from hakonfam/stream_flash
bde2812 is described below

commit bde2812e8f1c635bdb1c1e56b8b24c1d37d3a79b
Author: Håkon Øye Amundsen 
AuthorDate: Wed Apr 29 14:15:04 2020 +0200

zephyr: adapt to changes in flash_img.c

Update member access of context.

Signed-off-by: Håkon Øye Amundsen 
---
 cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c 
b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
index af9abbb..e5db289 100644
--- a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
+++ b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
@@ -292,7 +292,7 @@ img_mgmt_impl_write_image_data(unsigned int offset, const 
void *data,
}
}
 
-   if (offset != ctx->bytes_written + ctx->buf_bytes) {
+   if (offset != ctx->stream.bytes_written + ctx->stream.buf_bytes) {
return MGMT_ERR_EUNKNOWN;
}
 



[mynewt-core] branch master updated (23aa366 -> 8eac241)

2020-04-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 23aa366  watchdog: Fix places that ignore WATCHDOG_INTERVAL=0
 new a4748ea  hw/drivers/semihosting: Add raw semihosting driver
 new eea7263  sys/console/full: Add ARM semihosting tx implementation
 new 4f26d12  hw/bsp/pinetime: Enable ARM semihosting console
 new 8eac241  Merge pull request #2259 from caspermeijn/semihosting-pinetime

The 9601 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:
 .style_ignored_dirs|   1 +
 hw/bsp/pinetime/pinetime_debug.sh  |   1 +
 hw/bsp/pinetime/syscfg.yml |   4 +
 .../include/semihosting/mbed_semihost_api.h|  89 +++
 hw/{bus => drivers/semihosting}/pkg.yml|  15 +--
 hw/drivers/semihosting/src/mbed_semihost_api.c | 122 +
 sys/console/full/pkg.yml   |   2 +
 sys/console/full/src/console.c |   3 +
 sys/console/full/src/console_priv.h|   1 +
 sys/console/full/src/semihosting_console.c |  78 +
 sys/console/full/syscfg.yml|   7 ++
 11 files changed, 316 insertions(+), 7 deletions(-)
 create mode 100644 
hw/drivers/semihosting/include/semihosting/mbed_semihost_api.h
 copy hw/{bus => drivers/semihosting}/pkg.yml (80%)
 create mode 100644 hw/drivers/semihosting/src/mbed_semihost_api.c
 create mode 100644 sys/console/full/src/semihosting_console.c



[mynewt-core] branch master updated (f54786e -> 9d0fcf7)

2020-04-15 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from f54786e  hw/drivers/i2s: Add I2S driver for STM32F4 family
 new c02d9c9  docs/os/modules/drivers/chg_ctrl: Add charge control driver 
doc
 new 01f8001  docs/drivers/chg_ctrl/sgm4056: Add SGM4056 specific doc
 new 9d0fcf7  Merge pull request #2258 from caspermeijn/doc-sgm4056

The 9592 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/os/modules/drivers/chg_ctrl/chg_ctrl.rst | 145 ++
 docs/os/modules/drivers/chg_ctrl/sgm4056.rst  | 101 ++
 docs/os/modules/drivers/driver.rst|   5 +-
 3 files changed, 250 insertions(+), 1 deletion(-)
 create mode 100644 docs/os/modules/drivers/chg_ctrl/chg_ctrl.rst
 create mode 100644 docs/os/modules/drivers/chg_ctrl/sgm4056.rst



[mynewt-core] branch master updated: docs/os/bsp: Add board support section

2020-04-01 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 3c0dda3  docs/os/bsp: Add board support section
 new aa3578d  Merge pull request #2254 from caspermeijn/doc-pinetime
3c0dda3 is described below

commit 3c0dda32c5e6bd099e272f3e409a5bec9e68e24d
Author: Casper Meijn 
AuthorDate: Sat Mar 28 23:02:02 2020 +0100

docs/os/bsp: Add board support section

Add a new section to the documentation which lists the status of BSPs.
The first page is the status of the PineTime BSP.
---
 docs/os/bsp/index.rst | 28 
 docs/os/bsp/pinetime.rst  | 41 +
 docs/os/os_user_guide.rst |  1 +
 3 files changed, 70 insertions(+)

diff --git a/docs/os/bsp/index.rst b/docs/os/bsp/index.rst
new file mode 100644
index 000..933cdca
--- /dev/null
+++ b/docs/os/bsp/index.rst
@@ -0,0 +1,28 @@
+..
+  #
+  # Copyright 2020 Casper Meijn 
+  #
+  # 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.
+  #
+
+Board support
+=
+
+This section lists some of the supported boards, their current status and 
+links to tutorial specific to the board. A list of all supported boards can
+be found in `@apache-mynewt-core/hw/bsp 
<https://github.com/apache/mynewt-core/tree/master/hw/bsp>`__.
+
+.. toctree::
+:maxdepth: 1
+
+PineTime 
diff --git a/docs/os/bsp/pinetime.rst b/docs/os/bsp/pinetime.rst
new file mode 100644
index 000..615f014
--- /dev/null
+++ b/docs/os/bsp/pinetime.rst
@@ -0,0 +1,41 @@
+..
+  #
+  # Copyright 2020 Casper Meijn 
+  #
+  # 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.
+  #
+
+PineTime smartwatch
+===
+
+This page is about the board support package for the Pine64 PineTime 
smartwatch. 
+You can find some general documentation at the `device wiki 
<https://wiki.pine64.org/index.php/PineTime>`__. 
+You could buy a dev kit in the `store 
<https://store.pine64.org/?product=pinetime-dev-kit>`__.
+
+.. contents::
+  :local:
+  :depth: 2
+
+Status
+~~
+
+Currently the status is: incomplete.
+
+The board support package contains the code for booting the device and the pin 
+definitions. This means you can load an application like blinky, but no 
+pheriphirals can be used. New drivers will be added in the future.
+
+Tutorials
+~
+
+-  :doc:`../../tutorials/blinky/pinetime`
diff --git a/docs/os/os_user_guide.rst b/docs/os/os_user_guide.rst
index 7f56ccc..806683b 100644
--- a/docs/os/os_user_guide.rst
+++ b/docs/os/os_user_guide.rst
@@ -22,6 +22,7 @@ OS User Guide
Test Utilities 
JSON 
Manufacturing support 
+   Board support 
 
 This guide provides comprehensive information about Mynewt OS, the
 real-time operating system for embedded systems. It is intended both for



[mynewt-core] branch master updated (c418c0c -> 9dee495)

2020-04-01 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from c418c0c  Merge pull request #2257 from JuulLabs/id-serial_mfg
 new 048fb40  hw/drivers/chg_ctrl/sgm4056: Add SGM4056 driver
 new 17f7f5e  hw/drivers/chg_ctrl/sgm4056: Add charge control integration
 new 778a8f6  hw/bsp/pinetime: Enable SGM4056 charger driver
 new 9dee495  Merge pull request #2255 from caspermeijn/sgm4056

The 9571 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/bsp/pinetime/pkg.yml|   1 +
 hw/bsp/pinetime/src/hal_bsp.c  |  15 ++
 .../chg_ctrl/sgm4056/include/sgm4056/sgm4056.h |  81 +
 hw/drivers/chg_ctrl/{bq24040 => sgm4056}/pkg.yml   |   9 +-
 hw/drivers/chg_ctrl/sgm4056/src/sgm4056.c  | 202 +
 .../drivers/chg_ctrl/sgm4056}/syscfg.yml   |   4 +-
 6 files changed, 306 insertions(+), 6 deletions(-)
 create mode 100644 hw/drivers/chg_ctrl/sgm4056/include/sgm4056/sgm4056.h
 copy hw/drivers/chg_ctrl/{bq24040 => sgm4056}/pkg.yml (87%)
 create mode 100644 hw/drivers/chg_ctrl/sgm4056/src/sgm4056.c
 copy {boot/stub => hw/drivers/chg_ctrl/sgm4056}/syscfg.yml (88%)



[mynewt-core] branch master updated: bsp/pinetime: Add bsp for PineTime smartwatch

2020-03-29 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 89c3805  bsp/pinetime: Add bsp for PineTime smartwatch
 new 220ddec  Merge pull request #2253 from caspermeijn/bsp-pinetime
89c3805 is described below

commit 89c38058336a7662b54cb6fc7889893c7e096675
Author: Casper Meijn 
AuthorDate: Thu Mar 26 13:42:07 2020 +0100

bsp/pinetime: Add bsp for PineTime smartwatch

This adds the bsp boilerplate including the pin definitions for the
peripherals.
---
 hw/bsp/pinetime/boot-pinetime.ld   |  25 ++
 hw/bsp/pinetime/bsp.yml|  62 +
 hw/bsp/pinetime/include/bsp/bsp.h  |  96 +++
 hw/bsp/pinetime/pinetime.ld|  27 ++
 hw/bsp/pinetime/pinetime_debug.sh  |  38 +++
 hw/bsp/pinetime/pinetime_download.sh   |  50 
 hw/bsp/pinetime/pkg.yml|  37 +++
 .../src/arch/cortex_m4/gcc_startup_nrf52.s | 301 +
 hw/bsp/pinetime/src/hal_bsp.c  |  99 +++
 hw/bsp/pinetime/src/sbrk.c |  58 
 hw/bsp/pinetime/syscfg.yml |  69 +
 11 files changed, 862 insertions(+)

diff --git a/hw/bsp/pinetime/boot-pinetime.ld b/hw/bsp/pinetime/boot-pinetime.ld
new file mode 100644
index 000..d1f1b99
--- /dev/null
+++ b/hw/bsp/pinetime/boot-pinetime.ld
@@ -0,0 +1,25 @@
+/* Linker script for Nordic Semiconductor nRF5 devices
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions.  No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+MEMORY
+{
+  FLASH (rx) : ORIGIN = 0x, LENGTH = 0x4000
+  RAM (rwx) : ORIGIN = 0x2000, LENGTH = 0x1
+}
+
+/* The bootloader does not contain an image header */
+_imghdr_size = 0x0;
diff --git a/hw/bsp/pinetime/bsp.yml b/hw/bsp/pinetime/bsp.yml
new file mode 100644
index 000..c89953d
--- /dev/null
+++ b/hw/bsp/pinetime/bsp.yml
@@ -0,0 +1,62 @@
+#
+# 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.
+#
+
+bsp.arch: cortex_m4
+bsp.compiler: compiler/arm-none-eabi-m4
+bsp.linkerscript:
+- "hw/bsp/pinetime/pinetime.ld"
+- "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.linkerscript.BOOT_LOADER.OVERWRITE:
+- "hw/bsp/pinetime/boot-pinetime.ld"
+- "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.part2linkerscript: "hw/bsp/pinetime/split-pinetime.ld"
+bsp.downloadscript: "hw/bsp/pinetime/pinetime_download.sh"
+bsp.debugscript: "hw/bsp/pinetime/pinetime_debug.sh"
+
+bsp.flash_map:
+areas:
+# System areas.
+FLASH_AREA_BOOTLOADER:
+device: 0
+offset: 0x
+size: 16kB
+FLASH_AREA_IMAGE_0:
+device: 0
+offset: 0x8000
+size: 232kB
+FLASH_AREA_IMAGE_1:
+device: 0
+offset: 0x00042000
+size: 232kB
+FLASH_AREA_IMAGE_SCRATCH:
+device: 0
+offset: 0x0007c000
+size: 4kB
+
+# User areas.
+FLASH_AREA_REBOOT_LOG:
+user_id: 0
+device: 0
+offset: 0x4000
+size: 16kB
+FLASH_AREA_NFFS:
+user_id: 1
+device: 0
+offset: 0x0007d000
+size

[mynewt-core] branch master updated: STM32 blinky tutorial update

2020-03-26 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new f2ec1cf  STM32 blinky tutorial update
 new 5ff0a42  Merge pull request #2251 from 
Reynevan94/STM32-blinky-tutorial-fix
f2ec1cf is described below

commit f2ec1cfcfafd617de90c2ff2ac755dba05314910
Author: Krzysztof Kopyściński 
AuthorDate: Thu Mar 26 12:49:33 2020 +0100

STM32 blinky tutorial update

Because support of STM32 is located in mynewt-core, no external repos are 
necessary.
---
 docs/os/tutorials/STM32F303.rst | 51 +
 1 file changed, 6 insertions(+), 45 deletions(-)

diff --git a/docs/os/tutorials/STM32F303.rst b/docs/os/tutorials/STM32F303.rst
index b3ad7de..7ee46fa 100644
--- a/docs/os/tutorials/STM32F303.rst
+++ b/docs/os/tutorials/STM32F303.rst
@@ -49,45 +49,6 @@ re-use that project.
 
 **Note:** Don't forget to change into the ``myproj`` directory.
 
-Import External STM32F3 Library support
-~~~
-
-The STM32F303 support for Mynewt lives in an external repository. It's
-necessary to add another repository to the project. To do this, edit the
-file ``project.yml`` in the root directory of your project ``myproj``
-
-This requires two changes to this file.
-
-1. You must define the properties of the external repository that you
-   want to add
-2. You must include the repository in your project.
-
-Edit the file ``project.yml`` with your favorite editor and add the
-following repository details in the file (after the core repository).
-This gives newt the information to contact the repository and extract
-its contents. In this case, the repository is on github in the
-``runtimeco`` collection. Its name is ``mynewt-stm32f3`` and we will
-accept any version up to the latest. You can look at the contents
-`here <https://github.com/runtimeco/mynewt_stm32f3>`__.
-
-::
-
-repository.mynewt_stm32f3:
-type: github
-vers: 0-latest
-user: runtimeco
-repo: mynewt_stm32f3
-
-In the same file, add the following highlighted line to the
-``project.repositories`` variable. This tells newt to download the
-repository contents into your project.
-
-::
-
-project.repositories:
-- apache-mynewt-core
-- mynewt_stm32f3
-
 Install dependencies
 
 
@@ -121,23 +82,23 @@ the bootloader which allows you to upgrade your mynewt 
applications.
 
 $ newt target create stmf3_blinky
 $ newt target set stmf3_blinky build_profile=optimized
-$ newt target set stmf3_blinky bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+$ newt target set stmf3_blinky 
bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
 $ newt target set stmf3_blinky app=apps/blinky
 
 $ newt target create stmf3_boot
-$ newt target set stmf3_boot app=@apache-mynewt-core/apps/boot
-$ newt target set stmf3_boot bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+$ newt target set stmf3_boot app=@mcuboot/boot/mynewt
+$ newt target set stmf3_boot 
bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
 $ newt target set stmf3_boot build_profile=optimized
 
 $ newt target show
 
 targets/stmf3_blinky
 app=apps/blinky
-bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
 build_profile=optimized
 targets/stmf3_boot
-app=apps/boot
-bsp=@mynewt_stm32f3/hw/bsp/stm32f3discovery
+app=@mcuboot/boot/mynewt
+bsp=@apache-mynewt-core/hw/bsp/stm32f3discovery
 build_profile=optimized
 
 Build the target executables



[mynewt-mcumgr] branch master updated: Increase omp_svr sample main stack size

2020-03-25 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new d51bff0  Increase omp_svr sample main stack size
 new f0f2bc3  Merge pull request #75 from mlaz/omp_sample_fix
d51bff0 is described below

commit d51bff0aeeca2486073d64df2a4af76d787bc497
Author: Miguel Azevedo 
AuthorDate: Wed Mar 25 18:16:23 2020 +

Increase omp_svr sample main stack size
---
 samples/omp_svr/mynewt/syscfg.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/omp_svr/mynewt/syscfg.yml 
b/samples/omp_svr/mynewt/syscfg.yml
index 1c35a78..8336eda 100644
--- a/samples/omp_svr/mynewt/syscfg.yml
+++ b/samples/omp_svr/mynewt/syscfg.yml
@@ -35,7 +35,7 @@ syscfg.vals:
 CONFIG_MGMT: 1
 
 # OS main/default task
-OS_MAIN_STACK_SIZE: 468
+OS_MAIN_STACK_SIZE: 568
 
 # Lots of smaller mbufs are required for smp using typical BLE ATT MTU
 # values.



[mynewt-core] branch master updated: Added bsp/stm32f411discovery

2020-02-25 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new ebeadf9  Added bsp/stm32f411discovery
 new eb58c69  Merge pull request #2203 from mlaz/stm32f411disc0
ebeadf9 is described below

commit ebeadf97aa7b8ba7a73bcf540cd4284ba48bc44e
Author: Miguel Azevedo 
AuthorDate: Fri Feb 21 00:23:49 2020 +

Added bsp/stm32f411discovery
---
 .../stm32f411discovery/boot-stm32f411discovery.ld  |  28 ++
 hw/bsp/stm32f411discovery/bsp.yml  |  66 
 hw/bsp/stm32f411discovery/include/bsp/bsp.h|  55 
 .../include/bsp/stm32f4xx_hal_conf.h   | 366 +
 hw/bsp/stm32f411discovery/pkg.yml  |  39 +++
 .../src/arch/cortex_m4/startup_STM32F411.s | 358 
 hw/bsp/stm32f411discovery/src/hal_bsp.c| 185 +++
 hw/bsp/stm32f411discovery/stm32f411discovery.ld|  28 ++
 .../stm32f411discovery_debug.cmd   |  22 ++
 .../stm32f411discovery/stm32f411discovery_debug.sh |  34 ++
 .../stm32f411discovery_download.cmd|  22 ++
 .../stm32f411discovery_download.sh |  38 +++
 hw/bsp/stm32f411discovery/syscfg.yml   |  66 
 13 files changed, 1307 insertions(+)

diff --git a/hw/bsp/stm32f411discovery/boot-stm32f411discovery.ld 
b/hw/bsp/stm32f411discovery/boot-stm32f411discovery.ld
new file mode 100644
index 000..0e547e4
--- /dev/null
+++ b/hw/bsp/stm32f411discovery/boot-stm32f411discovery.ld
@@ -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
+ * 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.
+ */
+
+/* Linker script to configure memory regions. */
+MEMORY
+{
+  FLASH (rx) :  ORIGIN = 0x0800, LENGTH = 16K
+  RAM (rwx) :   ORIGIN = 0x2000, LENGTH = 128K
+}
+
+/* The bootloader does not contain an image header */
+_imghdr_size = 0x0;
diff --git a/hw/bsp/stm32f411discovery/bsp.yml 
b/hw/bsp/stm32f411discovery/bsp.yml
new file mode 100644
index 000..66bc620
--- /dev/null
+++ b/hw/bsp/stm32f411discovery/bsp.yml
@@ -0,0 +1,66 @@
+#
+# 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.
+#
+
+bsp.name: "STM32F411E-DISC0"
+bsp.url: https://www.st.com/en/evaluation-tools/32f411ediscovery.html
+bsp.maker: "STMicroelectronics"
+bsp.arch: cortex_m4
+bsp.compiler: compiler/arm-none-eabi-m4
+bsp.linkerscript:
+- "hw/bsp/stm32f411discovery/stm32f411discovery.ld"
+- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx/stm32f411.ld"
+bsp.linkerscript.BOOT_LOADER.OVERWRITE:
+- "hw/bsp/stm32f411discovery/boot-stm32f411discovery.ld"
+- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx/stm32f411.ld"
+bsp.downloadscript: "hw/bsp/stm32f411discovery/stm32f411discovery_download.sh"
+bsp.debugscript: "hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh"
+bsp.downloadscript.WINDOWS.OVERWRITE: 
"hw/bsp/stm32f411discovery/stm32f411discovery_download.cmd"
+bsp.debugscript.WINDOWS.OVERWRITE: 
"hw/bsp/stm32f411discovery/stm32f411discovery_debug.cmd"
+
+bsp.flash_map:
+areas:
+# System areas.
+FLASH_AREA_BOOTLOADER:
+device: 0
+offset: 0x0800
+size: 16kB
+FLASH_AREA_IMAGE_0:
+device: 0
+offset: 0x08

[mynewt-nimble] branch master updated: Set bleprph main stack size to 512 so img_mgmt uploads dont overflow

2020-01-27 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 8161f85  Set bleprph main stack size to 512 so img_mgmt uploads dont 
overflow
 new ea919d8  Merge pull request #741 from mlaz/bleprph_stack_fix
8161f85 is described below

commit 8161f852f5f057c88e63aadd3b1c0fdcb96b05d0
Author: Miguel Azevedo 
AuthorDate: Fri Jan 24 20:06:34 2020 +

Set bleprph main stack size to 512 so img_mgmt uploads dont overflow

On the newer versions of mcumgr a 512 byte is allocated on stack,
which makes the previous stack size too short.
While testing image uploads stack grew up to at 502 words.
---
 apps/bleprph/syscfg.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/bleprph/syscfg.yml b/apps/bleprph/syscfg.yml
index 56a5083..c39e6b0 100644
--- a/apps/bleprph/syscfg.yml
+++ b/apps/bleprph/syscfg.yml
@@ -58,7 +58,7 @@ syscfg.vals:
 CONFIG_MGMT: 1
 
 # OS main/default task
-OS_MAIN_STACK_SIZE: 468
+OS_MAIN_STACK_SIZE: 512
 
 # Lots of smaller mbufs are required for smp using typical BLE ATT MTU
 # values.



[mynewt-mcumgr] branch master updated: Default CBORATTR_MAX_SIZE if CONFIG_MGMT_CBORATTR_MAX_SIZE is not defined.

2020-01-21 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new bae5b0c  Default CBORATTR_MAX_SIZE if CONFIG_MGMT_CBORATTR_MAX_SIZE is 
not defined.
 new ca049eb  Merge pull request #57 from mlaz/cborattr_max_default
bae5b0c is described below

commit bae5b0c581cf6e97baf092a9d2b69389fae6d8c9
Author: Miguel Azevedo 
AuthorDate: Mon Jan 20 18:26:37 2020 +

Default CBORATTR_MAX_SIZE if CONFIG_MGMT_CBORATTR_MAX_SIZE is not defined.
---
 cborattr/src/cborattr.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/cborattr/src/cborattr.c b/cborattr/src/cborattr.c
index e94a490..395c2ec 100644
--- a/cborattr/src/cborattr.c
+++ b/cborattr/src/cborattr.c
@@ -23,7 +23,11 @@
 
 #ifdef __ZEPHYR__
 #include 
+#ifdef CONFIG_MGMT_CBORATTR_MAX_SIZE
 #define CBORATTR_MAX_SIZE CONFIG_MGMT_CBORATTR_MAX_SIZE
+#else
+#define CBORATTR_MAX_SIZE 512
+#endif
 #endif
 
 #ifdef MYNEWT



[mynewt-mcumgr] branch master updated: DFU working on zephyr

2020-01-13 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 384dc8e  DFU working on zephyr
 new 2424f04  Merge pull request #46 from mlaz/run_zephyr
384dc8e is described below

commit 384dc8e1c4e9f1aff981d1d51a55cad65f5f6d44
Author: Miguel Azevedo 
AuthorDate: Sat Nov 2 19:54:50 2019 +

DFU working on zephyr
---
 cborattr/Kconfig   |  22 --
 cborattr/src/cborattr.c|  16 +-
 cmd/fs_mgmt/port/zephyr/src/zephyr_fs_mgmt.c   |   2 +-
 cmd/img_mgmt/CMakeLists.txt|   2 +-
 cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h|   6 +-
 cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h  |   2 +-
 cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c | 257 -
 cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt_log.c |  90 
 cmd/img_mgmt/src/img_mgmt.c|   6 +-
 cmd/img_mgmt/src/img_mgmt_state.c  |   1 +
 cmd/log_mgmt/CMakeLists.txt|   4 +-
 cmd/log_mgmt/Kconfig   |  59 -
 cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c   |   2 +-
 cmd/os_mgmt/src/os_mgmt.c  |   1 +
 cmd/stat_mgmt/port/zephyr/src/zephyr_stat_mgmt.c   |   4 +-
 mgmt/src/mgmt.c|   1 +
 samples/smp_svr/zephyr/CMakeLists.txt  |   2 +
 samples/smp_svr/zephyr/prj.conf|   2 +-
 samples/smp_svr/zephyr/src/main.c  |   5 +-
 smp/src/smp.c  |   2 +-
 20 files changed, 380 insertions(+), 106 deletions(-)

diff --git a/cborattr/Kconfig b/cborattr/Kconfig
deleted file mode 100644
index ed54c7a..000
--- a/cborattr/Kconfig
+++ /dev/null
@@ -1,22 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE image
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this image
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this image 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.
-
-config CBORATTR_MAX_SIZE
-int "Maximum chunk size for image uploads"
-default 512
-help
-  The maximum size of a CBOR attribute during decoding
diff --git a/cborattr/src/cborattr.c b/cborattr/src/cborattr.c
index 662836a..e94a490 100644
--- a/cborattr/src/cborattr.c
+++ b/cborattr/src/cborattr.c
@@ -17,24 +17,23 @@
  * under the License.
  */
 
-//#include 
 #include "cborattr/cborattr.h"
 #include "tinycbor/cbor.h"
 #include "tinycbor/cbor_buf_reader.h"
 
+#ifdef __ZEPHYR__
+#include 
+#define CBORATTR_MAX_SIZE CONFIG_MGMT_CBORATTR_MAX_SIZE
+#endif
+
 #ifdef MYNEWT
+#include "syscfg/syscfg.h"
 #include "tinycbor/cbor_mbuf_reader.h"
 #include "tinycbor/cbor_mbuf_writer.h"
 #include "os/os_mbuf.h"
 #define CBORATTR_MAX_SIZE MYNEWT_VAL(CBORATTR_MAX_SIZE)
-#else
-#define CBORATTR_MAX_SIZE CONFIG_CBORATTR_MAX_SIZE
 #endif
 
-
-static int cbor_write_val(struct CborEncoder *enc,
-  const struct cbor_out_val_t *val);
-
 /* this maps a CborType to a matching CborAtter Type. The mapping is not
  * one-to-one because of signedness of integers
  * and therefore we need a function to do this trickery */
@@ -409,6 +408,9 @@ cbor_read_flat_attrs(const uint8_t *data, int len,
 }
 
 #ifdef MYNEWT
+static int cbor_write_val(struct CborEncoder *enc,
+  const struct cbor_out_val_t *val);
+
 /*
  * Read in cbor key/values from os_mbuf pointed by m, and fill them
  * into attrs.
diff --git a/cmd/fs_mgmt/port/zephyr/src/zephyr_fs_mgmt.c 
b/cmd/fs_mgmt/port/zephyr/src/zephyr_fs_mgmt.c
index 231a0f8..66af8c4 100644
--- a/cmd/fs_mgmt/port/zephyr/src/zephyr_fs_mgmt.c
+++ b/cmd/fs_mgmt/port/zephyr/src/zephyr_fs_mgmt.c
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include 
+#include 
 #include 
 #include 
 
diff --git a/cmd/img_mgmt/CMakeLists.txt b/cmd/img_mgmt/CMakeLists.txt
index 1166d7d..3c54e05 100644
--- a/cmd/img_mgmt/CMakeLists.txt
+++ b/cmd/img_mgmt/CMakeLists.txt
@@ -4,8 +4,8 @@ target_include_directories(MCUMGR INTERFACE
 
 zephyr_library_sources(
 port/zephyr/src/zephyr_img_mgmt.c
+port/zephyr/src/zephyr_img_mgmt_log.c
 

[mynewt-mcumgr] branch master updated: Fix mcumgr log level_list hang problem.

2019-11-20 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new ef7351f  Fix mcumgr log level_list hang problem.
 new 7253b87  Merge pull request #49 from mlaz/mcumgr_fixes
ef7351f is described below

commit ef7351f644df1b06fb2ea010c8b22377f58a3d75
Author: Miguel Azevedo 
AuthorDate: Tue Nov 19 19:24:01 2019 +

Fix mcumgr log level_list hang problem.
---
 cmd/log_mgmt/port/mynewt/src/mynewt_log_mgmt.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cmd/log_mgmt/port/mynewt/src/mynewt_log_mgmt.c 
b/cmd/log_mgmt/port/mynewt/src/mynewt_log_mgmt.c
index edff9a0..33dd774 100644
--- a/cmd/log_mgmt/port/mynewt/src/mynewt_log_mgmt.c
+++ b/cmd/log_mgmt/port/mynewt/src/mynewt_log_mgmt.c
@@ -132,8 +132,12 @@ log_mgmt_impl_get_level(int idx, const char 
**out_level_name)
 {
 const char *name;
 
+if (idx >= LOG_LEVEL_MAX) {
+return LOG_MGMT_ERR_ENOENT;
+}
+
 name = LOG_LEVEL_STR(idx);
-if (name == NULL) {
+if (!strcmp(name, "UNKNOWN")) {
 return LOG_MGMT_ERR_ENOENT;
 } else {
 *out_level_name = name;



[mynewt-mcumgr] branch master updated: cborattr.c: Fix uninitialized variable.

2019-11-20 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new b509d72  cborattr.c: Fix uninitialized variable.
 new 14d0b42  Merge pull request #48 from mlaz/fixes
b509d72 is described below

commit b509d7267e29ce5ccf53b46def2964af66d8dbeb
Author: Miguel Azevedo 
AuthorDate: Mon Nov 18 15:03:56 2019 +

cborattr.c: Fix uninitialized variable.
---
 cborattr/src/cborattr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cborattr/src/cborattr.c b/cborattr/src/cborattr.c
index 68c18a8..662836a 100644
--- a/cborattr/src/cborattr.c
+++ b/cborattr/src/cborattr.c
@@ -157,7 +157,7 @@ cbor_internal_read_object(CborValue *root_value,
 void *lptr;
 CborValue cur_value;
 CborError err = 0;
-size_t len;
+size_t len = 0;
 CborType type = CborInvalidType;
 
 /* stuff fields with defaults in case they're omitted in the JSON input */
@@ -191,7 +191,6 @@ cbor_internal_read_object(CborValue *root_value,
 }
 }
 
-
 if (cbor_value_is_map(root_value)) {
 err |= cbor_value_enter_container(root_value, _value);
 } else {



[mynewt-mcumgr] branch master updated: img_mgmt/mynewt_img_mgmt: use g_img_mgmt_state instead of upload_state for lazy erase.

2019-11-04 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 9cf3f58  img_mgmt/mynewt_img_mgmt: use g_img_mgmt_state instead of 
upload_state for lazy erase.
 new 8e20176  Merge pull request #47 from mlaz/mcumgr_changes
9cf3f58 is described below

commit 9cf3f58667469adb00ab31e02bbf5d7eaaafcab4
Author: Miguel Azevedo 
AuthorDate: Mon Nov 4 17:39:02 2019 +

img_mgmt/mynewt_img_mgmt: use g_img_mgmt_state instead of upload_state for 
lazy erase.
---
 cmd/img_mgmt/port/mynewt/src/mynewt_img_mgmt.c | 28 +-
 1 file changed, 10 insertions(+), 18 deletions(-)

diff --git a/cmd/img_mgmt/port/mynewt/src/mynewt_img_mgmt.c 
b/cmd/img_mgmt/port/mynewt/src/mynewt_img_mgmt.c
index 20b07e4..b021638 100644
--- a/cmd/img_mgmt/port/mynewt/src/mynewt_img_mgmt.c
+++ b/cmd/img_mgmt/port/mynewt/src/mynewt_img_mgmt.c
@@ -26,11 +26,6 @@
 #include "sysflash/sysflash.h"
 #include "img_mgmt/image.h"
 
-static struct {
-int sector_id;
-uint32_t sector_end;
-} upload_state;
-
 static int
 img_mgmt_find_best_area_id(void)
 {
@@ -407,8 +402,8 @@ img_mgmt_impl_write_image_data(unsigned int offset, const 
void *data,
 }
 
 /* Check if there any unerased target sectors, if not clean them. */
-while ((fa->fa_off + offset + num_bytes) > upload_state.sector_end) {
-rc = flash_area_getnext_sector(fa->fa_id, _state.sector_id,
+while ((fa->fa_off + offset + num_bytes) > g_img_mgmt_state.sector_end) {
+rc = flash_area_getnext_sector(fa->fa_id, _img_mgmt_state.sector_id,
);
 if (rc) {
 goto err;
@@ -417,12 +412,12 @@ img_mgmt_impl_write_image_data(unsigned int offset, const 
void *data,
 if (rc) {
 goto err;
 }
-upload_state.sector_end = sector.fa_off + sector.fa_size;
+g_img_mgmt_state.sector_end = sector.fa_off + sector.fa_size;
 }
 
 if (last) {
-upload_state.sector_id = -1;
-upload_state.sector_end = 0;
+g_img_mgmt_state.sector_id = -1;
+g_img_mgmt_state.sector_end = 0;
 }
 
 rc = flash_area_write(fa, offset, data, num_bytes);
@@ -434,8 +429,8 @@ img_mgmt_impl_write_image_data(unsigned int offset, const 
void *data,
 return 0;
 
 err:
-upload_state.sector_id = -1;
-upload_state.sector_end = 0;
+g_img_mgmt_state.sector_id = -1;
+g_img_mgmt_state.sector_end = 0;
 return MGMT_ERR_EUNKNOWN;
 }
 
@@ -496,7 +491,8 @@ img_mgmt_impl_erase_if_needed(uint32_t off, uint32_t len)
 }
 
 while ((cfa->fa_off + off + len) > g_img_mgmt_state.sector_end) {
-rc = flash_area_getnext_sector(cfa->fa_id, 
_img_mgmt_state.sector_id, );
+rc = flash_area_getnext_sector(cfa->fa_id,
+   _img_mgmt_state.sector_id, );
 if (rc) {
 goto done;
 }
@@ -512,7 +508,7 @@ done:
 return rc;
 }
 #endif
-
+
 int
 img_mgmt_impl_swap_type(void)
 {
@@ -538,8 +534,4 @@ img_mgmt_module_init(void)
 SYSINIT_ASSERT_ACTIVE();
 
 img_mgmt_register_group();
-
-/* setup for lazy sector by sector erase */
-upload_state.sector_id = -1;
-upload_state.sector_end = 0;
 }



[mynewt-core] branch master updated: Fixing lps33thw packed struct pointer warning

2019-09-24 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new e098b15  Fixing lps33thw packed struct pointer warning
 new dfba6aa  Merge pull request #2008 from mlaz/gcc-9-fixes
e098b15 is described below

commit e098b1575741658bbb700bd5ca2420b899e9f648
Author: Miguel Azevedo 
AuthorDate: Tue Sep 24 21:49:41 2019 +0100

Fixing lps33thw packed struct pointer warning
---
 hw/drivers/sensors/lps33thw/src/lps33thw.c | 24 +++-
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/hw/drivers/sensors/lps33thw/src/lps33thw.c 
b/hw/drivers/sensors/lps33thw/src/lps33thw.c
index 816c0a7..fd5e144 100644
--- a/hw/drivers/sensors/lps33thw/src/lps33thw.c
+++ b/hw/drivers/sensors/lps33thw/src/lps33thw.c
@@ -119,9 +119,10 @@ static void lps33thw_one_shot_read_cb(struct os_event *ev)
 } else {
 /* Read once */
 struct sensor_press_data spd;
-
-rc = lps33thw_get_pressure(itf, _press);
+float press;
+rc = lps33thw_get_pressure(itf, );
 if (!rc) {
+spd.spd_press = press;
 spd.spd_press_is_valid = 1;
 rc = lps33thw->data_func(sensor, >pdd.user_ctx, 
, SENSOR_TYPE_PRESSURE);
 }
@@ -129,9 +130,10 @@ static void lps33thw_one_shot_read_cb(struct os_event *ev)
 }
 if (lps33thw->type & SENSOR_TYPE_TEMPERATURE) {
 struct sensor_temp_data std;
-
-rc = lps33thw_get_temperature(itf, _temp);
+float temp;
+rc = lps33thw_get_temperature(itf, );
 if (!rc) {
+std.std_temp = temp;
 std.std_temp_is_valid = 1;
 rc = lps33thw->data_func(sensor, >pdd.user_ctx, ,
 SENSOR_TYPE_TEMPERATURE);
@@ -1092,16 +1094,18 @@ lps33thw_read_interrupt_handler(void *arg)
 struct lps33thw *lps33thw;
 struct sensor_itf *itf;
 struct sensor_press_data spd;
+float press;
 
 sensor = (struct sensor *)arg;
 lps33thw = (struct lps33thw *)SENSOR_GET_DEVICE(sensor);
 itf = SENSOR_GET_ITF(sensor);
 
-rc = lps33thw_get_pressure(itf, _press);
+rc = lps33thw_get_pressure(itf, );
 if (rc) {
 LPS33THW_LOG_ERROR("Get pressure failed\n");
 spd.spd_press_is_valid = 0;
 } else {
+spd.spd_press = press;
 spd.spd_press_is_valid = 1;
 lps33thw->pdd.user_ctx.user_func(sensor, 
lps33thw->pdd.user_ctx.user_arg,
 , SENSOR_TYPE_PRESSURE);
@@ -1153,11 +1157,12 @@ lps33thw_sensor_read_poll(struct sensor *sensor, 
sensor_type_t type,
} else {
 /* Read once */
 struct sensor_press_data spd;
-rc = lps33thw_get_pressure(itf, _press);
+float press;
+rc = lps33thw_get_pressure(itf, );
 if (rc) {
 return rc;
 }
-
+spd.spd_press = press;
 spd.spd_press_is_valid = 1;
 
 rc = data_func(sensor, data_arg, , SENSOR_TYPE_PRESSURE);
@@ -1165,11 +1170,12 @@ lps33thw_sensor_read_poll(struct sensor *sensor, 
sensor_type_t type,
 }
 if (type & SENSOR_TYPE_TEMPERATURE) {
 struct sensor_temp_data std;
-
-rc = lps33thw_get_temperature(itf, _temp);
+float temp;
+rc = lps33thw_get_temperature(itf, );
 if (rc) {
 return rc;
 }
+std.std_temp = temp;
 std.std_temp_is_valid = 1;
 
 rc = data_func(sensor, data_arg, ,



[mynewt-core] branch master updated (f70171e -> 7e8ba3e)

2019-07-08 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from f70171e  Merge pull request #1907 from gonccalo/fix_battery_adc_close
 new c1908d2  Removed all soft_pwm and uartbb device creation code from 
BSPs, added soft_pwm_pkg_init plus some minor comments reformat.
 new 9ac9ad5  Added uart_bitbang_pkg_init, pin syscfg values moved from 
BSPs to uartbb syscfg.
 new 0a9dc68  Added baudrate restriction on uartbb.
 new 7e8ba3e  Merge pull request #1793 from mlaz/soft_drivers_mcu

The 8998 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/bsp/ada_feather_nrf52/src/hal_bsp.c | 42 --
 hw/bsp/ada_feather_nrf52/syscfg.yml|  9 -
 hw/bsp/arduino_primo_nrf52/src/hal_bsp.c   | 42 --
 hw/bsp/arduino_primo_nrf52/syscfg.yml  |  9 -
 hw/bsp/bmd300eval/src/hal_bsp.c| 42 --
 hw/bsp/bmd300eval/syscfg.yml   |  9 -
 hw/bsp/dwm1001-dev/src/hal_bsp.c   | 42 --
 hw/bsp/dwm1001-dev/syscfg.yml  |  9 -
 hw/bsp/nina-b1/src/hal_bsp.c   | 42 --
 hw/bsp/nina-b1/syscfg.yml  |  9 -
 hw/bsp/nordic_pca10040/src/hal_bsp.c   | 42 --
 hw/bsp/nordic_pca10040/syscfg.yml  | 10 --
 hw/bsp/nordic_pca10056/src/hal_bsp.c   | 24 -
 hw/bsp/nordic_pca20020/src/hal_bsp.c   | 42 --
 hw/bsp/nordic_pca20020/syscfg.yml  |  7 
 hw/bsp/puckjs/src/hal_bsp.c| 42 --
 hw/bsp/puckjs/syscfg.yml   |  9 -
 hw/bsp/rb-blend2/src/hal_bsp.c | 42 --
 hw/bsp/rb-blend2/syscfg.yml|  9 -
 hw/bsp/rb-nano2/src/hal_bsp.c  | 42 --
 hw/bsp/rb-nano2/syscfg.yml |  9 -
 hw/bsp/ruuvitag_rev_b/src/hal_bsp.c| 42 --
 hw/bsp/ruuvitag_rev_b/syscfg.yml   |  7 
 hw/bsp/telee02/src/hal_bsp.c   | 40 -
 hw/bsp/telee02/syscfg.yml  |  9 -
 hw/bsp/vbluno52/src/hal_bsp.c  | 42 --
 hw/bsp/vbluno52/syscfg.yml |  9 -
 .../pwm/soft_pwm/include/soft_pwm/soft_pwm.h   |  1 +
 hw/drivers/pwm/soft_pwm/pkg.yml|  6 +++-
 hw/drivers/pwm/soft_pwm/src/soft_pwm.c | 23 
 hw/drivers/pwm/soft_pwm/syscfg.yml |  8 +++--
 .../include/uart_bitbang/uart_bitbang.h|  1 +
 hw/drivers/uart/uart_bitbang/pkg.yml   |  3 ++
 hw/drivers/uart/uart_bitbang/src/uart_bitbang.c| 23 
 hw/drivers/{lora => uart/uart_bitbang}/syscfg.yml  | 15 ++--
 35 files changed, 74 insertions(+), 688 deletions(-)
 copy hw/drivers/{lora => uart/uart_bitbang}/syscfg.yml (69%)



[mynewt-core] branch master updated: close the correct device in battery_adc_close

2019-07-05 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new c2579ed  close the correct device in battery_adc_close
 new f70171e  Merge pull request #1907 from gonccalo/fix_battery_adc_close
c2579ed is described below

commit c2579ed5d89b4e7ce1133e643c381ec9c9591d47
Author: Gonçalo Grilo 
AuthorDate: Thu Jul 4 19:29:21 2019 +0100

close the correct device in battery_adc_close
---
 hw/battery/src/battery_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/battery/src/battery_adc.c b/hw/battery/src/battery_adc.c
index 80093b7..dfe6f0a 100644
--- a/hw/battery/src/battery_adc.c
+++ b/hw/battery/src/battery_adc.c
@@ -137,7 +137,7 @@ battery_adc_close(struct os_dev *dev)
 {
 struct battery_adc *bat_adc = (struct battery_adc *)dev;
 if (bat_adc->adc_dev) {
-os_dev_close((struct os_dev *)_adc->dev);
+os_dev_close((struct os_dev *)_adc->adc_dev);
 bat_adc->adc_dev = NULL;
 }
 return 0;



[mynewt-nimble] branch master updated: Added system id characteristic to DIS.

2019-06-04 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new e09e754  Added system id characteristic to DIS.
 new 0abceec  Merge pull request #444 from mlaz/dis_sysid
e09e754 is described below

commit e09e75414ee7f387b5ffb3bfac3901fc95f2189a
Author: Miguel Azevedo 
AuthorDate: Fri May 31 20:19:51 2019 +0100

Added system id characteristic to DIS.
---
 .../dis/include/services/dis/ble_svc_dis.h |   8 ++
 nimble/host/services/dis/src/ble_svc_dis.c | 107 ++---
 nimble/host/services/dis/syscfg.yml|  45 +
 3 files changed, 107 insertions(+), 53 deletions(-)

diff --git a/nimble/host/services/dis/include/services/dis/ble_svc_dis.h 
b/nimble/host/services/dis/include/services/dis/ble_svc_dis.h
index 1d16d39..d095e95 100644
--- a/nimble/host/services/dis/include/services/dis/ble_svc_dis.h
+++ b/nimble/host/services/dis/include/services/dis/ble_svc_dis.h
@@ -35,6 +35,7 @@
  */
 
 #define BLE_SVC_DIS_UUID16 0x180A
+#define BLE_SVC_DIS_CHR_UUID16_SYSTEM_ID   0x2A23
 #define BLE_SVC_DIS_CHR_UUID16_MODEL_NUMBER0x2A24
 #define BLE_SVC_DIS_CHR_UUID16_SERIAL_NUMBER   0x2A25
 #define BLE_SVC_DIS_CHR_UUID16_FIRMWARE_REVISION   0x2A26
@@ -76,6 +77,11 @@ struct ble_svc_dis_data {
  * Represent the name of the manufacturer of the device.
  */
 const char *manufacturer_name;
+/**
+ * System ID.
+ * Represent the System Id of the device.
+ */
+const char *system_id;
 };
 
 /**
@@ -101,5 +107,7 @@ const char *ble_svc_dis_software_revision(void);
 int ble_svc_dis_software_revision_set(const char *value);
 const char *ble_svc_dis_manufacturer_name(void);
 int ble_svc_dis_manufacturer_name_set(const char *value);
+const char *ble_svc_dis_system_id(void);
+int ble_svc_dis_system_id_set(const char *value);
 
 #endif
diff --git a/nimble/host/services/dis/src/ble_svc_dis.c 
b/nimble/host/services/dis/src/ble_svc_dis.c
index e6e8531..0079a04 100644
--- a/nimble/host/services/dis/src/ble_svc_dis.c
+++ b/nimble/host/services/dis/src/ble_svc_dis.c
@@ -31,6 +31,7 @@ struct ble_svc_dis_data ble_svc_dis_data = {
 .hardware_revision = MYNEWT_VAL(BLE_SVC_DIS_HARDWARE_REVISION_DEFAULT),
 .software_revision = MYNEWT_VAL(BLE_SVC_DIS_SOFTWARE_REVISION_DEFAULT),
 .manufacturer_name = MYNEWT_VAL(BLE_SVC_DIS_MANUFACTURER_NAME_DEFAULT),
+.system_id = MYNEWT_VAL(BLE_SVC_DIS_SYSTEM_ID_DEFAULT),
 };
 
 /* Access function */
@@ -39,7 +40,8 @@ struct ble_svc_dis_data ble_svc_dis_data = {
 (MYNEWT_VAL(BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM) >= 0) ||  \
 (MYNEWT_VAL(BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM) >= 0) ||  \
 (MYNEWT_VAL(BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM) >= 0) ||  \
-(MYNEWT_VAL(BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM) >= 0)
+(MYNEWT_VAL(BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM) >= 0) || \
+(MYNEWT_VAL(BLE_SVC_DIS_SYSTEM_ID_READ_PERM) >= 0)
 static int
 ble_svc_dis_access(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt, void *arg);
@@ -98,6 +100,15 @@ static const struct ble_gatt_svc_def ble_svc_dis_defs[] = {
 MYNEWT_VAL(BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM),
 }, {
 #endif
+#if (MYNEWT_VAL(BLE_SVC_DIS_SYSTEM_ID_READ_PERM) >= 0)
+  /*** Characteristic: System Id */
+.uuid = BLE_UUID16_DECLARE(BLE_SVC_DIS_CHR_UUID16_SYSTEM_ID),
+.access_cb = ble_svc_dis_access,
+.flags = BLE_GATT_CHR_F_READ |
+   MYNEWT_VAL(BLE_SVC_DIS_SYSTEM_ID_READ_PERM),
+}, {
+#endif
+
 0, /* No more characteristics in this service */
 }, }
 },
@@ -116,7 +127,8 @@ static const struct ble_gatt_svc_def ble_svc_dis_defs[] = {
 (MYNEWT_VAL(BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM) >= 0) ||  \
 (MYNEWT_VAL(BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM) >= 0) ||  \
 (MYNEWT_VAL(BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM) >= 0) ||  \
-(MYNEWT_VAL(BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM) >= 0)
+(MYNEWT_VAL(BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM) >= 0) || \
+(MYNEWT_VAL(BLE_SVC_DIS_SYSTEM_ID_READ_PERM) >= 0)
 static int
 ble_svc_dis_access(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt, void *arg)
@@ -127,72 +139,82 @@ ble_svc_dis_access(uint16_t conn_handle, uint16_t 
attr_handle,
 switch(uuid) {
 #if (MYNEWT_VAL(BLE_SVC_DIS_MODEL_NUMBER_READ_PERM) >= 0)
 case BLE_SVC_DIS_CHR_UUID16_MODEL_NUMBER:
-   info = ble_svc_dis_data.model_number;
+info = ble_svc_dis_data.model_number;
 #ifdef MYNEWT_VAL_BLE_SVC_DIS_MODEL_NU

[mynewt-core] branch master updated: Removed backwards compatibility unused settings introcuduced with nrf5281x support.

2019-06-02 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 7cc2ef4  Removed backwards compatibility unused settings introcuduced 
with nrf5281x support.
 new bcfb530  Merge pull request #1856 from mlaz/nrf52_unused_code
7cc2ef4 is described below

commit 7cc2ef484f4f313a0d20712391f0fe399e07f6e7
Author: Miguel Azevedo 
AuthorDate: Sun Jun 2 21:12:05 2019 +0100

Removed backwards compatibility unused settings introcuduced with nrf5281x 
support.
---
 hw/mcu/nordic/nrf52xxx/syscfg.yml | 4 
 1 file changed, 4 deletions(-)

diff --git a/hw/mcu/nordic/nrf52xxx/syscfg.yml 
b/hw/mcu/nordic/nrf52xxx/syscfg.yml
index 6773bd6..a6b611f 100644
--- a/hw/mcu/nordic/nrf52xxx/syscfg.yml
+++ b/hw/mcu/nordic/nrf52xxx/syscfg.yml
@@ -451,10 +451,6 @@ syscfg.defs:
 - "!XTAL_RC"
 deprecated: 1
 
-syscfg.vals.MCU_NRF52810:
-MCU_TARGET: nRF52810
-syscfg.vals.MCU_NRF52811:
-MCU_TARGET: nRF52811
 syscfg.vals.MCU_NRF52832:
 MCU_TARGET: nRF52832
 syscfg.vals.MCU_NRF52840:



[mynewt-core] branch revert-1855-nrf52811_support deleted (was f5aee6f)

2019-06-02 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a change to branch revert-1855-nrf52811_support
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


 was f5aee6f  Revert "Trying to add NRF52811 support"

This change permanently discards the following revisions:

 discard f5aee6f  Revert "Trying to add NRF52811 support"



[mynewt-core] 01/01: Revert "Trying to add NRF52811 support"

2019-06-01 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a commit to branch revert-1855-nrf52811_support
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit f5aee6f27e52d5d66b540139d8104814746d9e4b
Author: Miguel Azevedo 
AuthorDate: Sat Jun 1 18:14:17 2019 +0100

Revert "Trying to add NRF52811 support"
---
 hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h|  14 -
 hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h | 196 -
 hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h | 196 -
 hw/mcu/nordic/nrf52xxx/include/nrfx_config.h  |   4 -
 hw/mcu/nordic/nrf52xxx/pkg.yml|   5 +
 hw/mcu/nordic/nrf52xxx/src/hal_flash.c|   9 -
 hw/mcu/nordic/nrf52xxx/src/hal_gpio.c |   2 +-
 hw/mcu/nordic/nrf52xxx/src/hal_i2c.c  |   5 -
 hw/mcu/nordic/nrf52xxx/src/system_nrf52.c | 327 --
 hw/mcu/nordic/nrf52xxx/syscfg.yml |   6 -
 hw/mcu/nordic/pkg.yml |   4 -
 11 files changed, 6 insertions(+), 762 deletions(-)

diff --git a/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h 
b/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h
index f566024..2e5f3ab 100644
--- a/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h
+++ b/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h
@@ -85,20 +85,6 @@ struct nrf52_hal_spi_cfg {
 #define HAL_GPIOTE_PIN_MASK GPIOTE_CONFIG_PSEL_Msk
 #endif
 
-#ifdef NRF52810_XXAA
-#define HAL_GPIO_INDEX(pin) (pin)
-#define HAL_GPIO_PORT(pin)  (NRF_P0)
-#define HAL_GPIO_MASK(pin)  (1 << pin)
-#define HAL_GPIOTE_PIN_MASK GPIOTE_CONFIG_PSEL_Msk
-#endif
-
-#ifdef NRF52811_XXAA
-#define HAL_GPIO_INDEX(pin) (pin)
-#define HAL_GPIO_PORT(pin)  (NRF_P0)
-#define HAL_GPIO_MASK(pin)  (1 << pin)
-#define HAL_GPIOTE_PIN_MASK GPIOTE_CONFIG_PSEL_Msk
-#endif
-
 #ifdef NRF52840_XXAA
 #define HAL_GPIO_INDEX(pin) ((pin) & 0x1F)
 #define HAL_GPIO_PORT(pin)  ((pin) > 31 ? NRF_P1 : NRF_P0)
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h 
b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
deleted file mode 100644
index 349e5a2..000
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef NRFX52810_CONFIG_H__
-#define NRFX52810_CONFIG_H__
-
-#include "syscfg/syscfg.h"
-
-#ifndef NRFX_CLOCK_ENABLED
-#define NRFX_CLOCK_ENABLED 0
-#endif
-
-#ifndef NRFX_COMP_ENABLED
-#define NRFX_COMP_ENABLED 0
-#endif
-
-#ifndef NRFX_GPIOTE_ENABLED
-#define NRFX_GPIOTE_ENABLED 0
-#endif
-
-#ifndef NRFX_I2S_ENABLED
-#define NRFX_I2S_ENABLED 0
-#endif
-
-// #ifndef NRFX_LPCOMP_ENABLED
-// #define NRFX_LPCOMP_ENABLED 0
-// #endif
-
-#ifndef NRFX_PDM_ENABLED
-#define NRFX_PDM_ENABLED 0
-#endif
-
-#ifndef NRFX_POWER_ENABLED
-#define NRFX_POWER_ENABLED 0
-#endif
-
-#ifndef NRFX_PPI_ENABLED
-#define NRFX_PPI_ENABLED 0
-#endif
-
-#ifndef NRFX_PRS_ENABLED
-#define NRFX_PRS_ENABLED 0
-#endif
-
-#ifndef NRFX_QDEC_ENABLED
-#define NRFX_QDEC_ENABLED 0
-#endif
-
-#ifndef NRFX_RNG_ENABLED
-#define NRFX_RNG_ENABLED 0
-#endif
-
-#ifndef NRFX_RTC_ENABLED
-#define NRFX_RTC_ENABLED 0
-#endif
-
-#ifndef NRFX_SPIM_ENABLED
-#define NRFX_SPIM_ENABLED 0
-#endif
-
-#ifndef NRFX_SPIS_ENABLED
-#define NRFX_SPIS_ENABLED 0
-#endif
-
-#ifndef NRFX_SPI_ENABLED
-#define NRFX_SPI_ENABLED 0
-#endif
-
-#ifndef NRFX_SWI_ENABLED
-#define NRFX_SWI_ENABLED 0
-#endif
-
-#ifndef NRFX_SYSTICK_ENABLED
-#define NRFX_SYSTICK_ENABLED 0
-#endif
-
-#ifndef NRFX_TIMER_ENABLED
-#define NRFX_TIMER_ENABLED 0
-#endif
-
-#ifndef NRFX_TWIM_ENABLED
-#define NRFX_TWIM_ENABLED 0
-#endif
-
-#ifndef NRFX_TWIS_ENABLED
-#define NRFX_TWIS_ENABLED 0
-#endif
-
-#ifndef NRFX_TWI_ENABLED
-#define NRFX_TWI_ENABLED 0
-#endif
-
-#ifndef NRFX_UARTE_ENABLED
-#define NRFX_UARTE_ENABLED 0
-#endif
-
-#ifndef NRFX_UART_ENABLED
-#define NRFX_UART_ENABLED 0
-#endif
-
-#ifndef NRFX_WDT_ENABLED
-#define NRFX_WDT_ENABLED 0
-#endif
-
-#if MYNEWT_VAL(ADC_0)
-#ifndef NRFX_SAADC_ENABLED
-#define NRFX_SAADC_ENABLED 1
-#endif
-
-#ifndef NRFX_SAADC_CONFIG_RESOLUTION

[mynewt-core] branch master updated: Trying to add NRF52811 support

2019-06-01 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 9fe0f2b  Trying to add NRF52811 support
 new da4049c  Merge pull request #1855 from alvarop/nrf52811_support
9fe0f2b is described below

commit 9fe0f2b96322a48824418bc005db42f1c52d0a22
Author: Alvaro Prieto 
AuthorDate: Fri May 31 16:58:10 2019 -0700

Trying to add NRF52811 support
---
 hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h|  14 +
 hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h | 196 +
 hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h | 196 +
 hw/mcu/nordic/nrf52xxx/include/nrfx_config.h  |   4 +
 hw/mcu/nordic/nrf52xxx/pkg.yml|   5 -
 hw/mcu/nordic/nrf52xxx/src/hal_flash.c|   9 +
 hw/mcu/nordic/nrf52xxx/src/hal_gpio.c |   2 +-
 hw/mcu/nordic/nrf52xxx/src/hal_i2c.c  |   5 +
 hw/mcu/nordic/nrf52xxx/src/system_nrf52.c | 327 ++
 hw/mcu/nordic/nrf52xxx/syscfg.yml |   6 +
 hw/mcu/nordic/pkg.yml |   4 +
 11 files changed, 762 insertions(+), 6 deletions(-)

diff --git a/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h 
b/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h
index 2e5f3ab..f566024 100644
--- a/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h
+++ b/hw/mcu/nordic/nrf52xxx/include/mcu/nrf52_hal.h
@@ -85,6 +85,20 @@ struct nrf52_hal_spi_cfg {
 #define HAL_GPIOTE_PIN_MASK GPIOTE_CONFIG_PSEL_Msk
 #endif
 
+#ifdef NRF52810_XXAA
+#define HAL_GPIO_INDEX(pin) (pin)
+#define HAL_GPIO_PORT(pin)  (NRF_P0)
+#define HAL_GPIO_MASK(pin)  (1 << pin)
+#define HAL_GPIOTE_PIN_MASK GPIOTE_CONFIG_PSEL_Msk
+#endif
+
+#ifdef NRF52811_XXAA
+#define HAL_GPIO_INDEX(pin) (pin)
+#define HAL_GPIO_PORT(pin)  (NRF_P0)
+#define HAL_GPIO_MASK(pin)  (1 << pin)
+#define HAL_GPIOTE_PIN_MASK GPIOTE_CONFIG_PSEL_Msk
+#endif
+
 #ifdef NRF52840_XXAA
 #define HAL_GPIO_INDEX(pin) ((pin) & 0x1F)
 #define HAL_GPIO_PORT(pin)  ((pin) > 31 ? NRF_P1 : NRF_P0)
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h 
b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
new file mode 100644
index 000..349e5a2
--- /dev/null
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
@@ -0,0 +1,196 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef NRFX52810_CONFIG_H__
+#define NRFX52810_CONFIG_H__
+
+#include "syscfg/syscfg.h"
+
+#ifndef NRFX_CLOCK_ENABLED
+#define NRFX_CLOCK_ENABLED 0
+#endif
+
+#ifndef NRFX_COMP_ENABLED
+#define NRFX_COMP_ENABLED 0
+#endif
+
+#ifndef NRFX_GPIOTE_ENABLED
+#define NRFX_GPIOTE_ENABLED 0
+#endif
+
+#ifndef NRFX_I2S_ENABLED
+#define NRFX_I2S_ENABLED 0
+#endif
+
+// #ifndef NRFX_LPCOMP_ENABLED
+// #define NRFX_LPCOMP_ENABLED 0
+// #endif
+
+#ifndef NRFX_PDM_ENABLED
+#define NRFX_PDM_ENABLED 0
+#endif
+
+#ifndef NRFX_POWER_ENABLED
+#define NRFX_POWER_ENABLED 0
+#endif
+
+#ifndef NRFX_PPI_ENABLED
+#define NRFX_PPI_ENABLED 0
+#endif
+
+#ifndef NRFX_PRS_ENABLED
+#define NRFX_PRS_ENABLED 0
+#endif
+
+#ifndef NRFX_QDEC_ENABLED
+#define NRFX_QDEC_ENABLED 0
+#endif
+
+#ifndef NRFX_RNG_ENABLED
+#define NRFX_RNG_ENABLED 0
+#endif
+
+#ifndef NRFX_RTC_ENABLED
+#define NRFX_RTC_ENABLED 0
+#endif
+
+#ifndef NRFX_SPIM_ENABLED
+#define NRFX_SPIM_ENABLED 0
+#endif
+
+#ifndef NRFX_SPIS_ENABLED
+#define NRFX_SPIS_ENABLED 0
+#endif
+
+#ifndef NRFX_SPI_ENABLED
+#define NRFX_SPI_ENABLED 0
+#endif
+
+#ifndef NRFX_SWI_ENABLED
+#define NRFX_SWI_ENABLED 0
+#endif
+
+#ifndef NRFX_SYSTICK_ENABLED
+#define NRFX_SYSTICK_ENABLED 0
+#endif
+
+#ifndef NRFX_TIMER_ENABLED
+#define NRFX_TIMER_ENABLED 0
+#endif
+
+#ifndef NRFX_TWIM_ENABLED
+#define NRFX_TWIM_ENABLED 0
+#endif
+
+#ifndef NRFX_TWIS_ENABLED
+#define NRFX_TWIS_ENABLED 0
+#endif
+
+#ifndef NRFX_TWI_ENABLED
+#define NRFX_TWI_ENABLED 0
+#endif
+
+#ifndef NRFX_UARTE_ENABLED
+#define NRFX_UARTE_ENABLED 0
+#endif
+
+#ifndef NRFX_UART_ENABLED
+#define NRFX_UART_ENABLED 0
+#endif
+
+#ifndef NRFX_WDT_ENABLED
+#de

[mynewt-newt] branch master updated (c5632c2 -> 887279f)

2019-03-25 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from c5632c2  Allow @repo/cfg.yml style import paths
 new 814fadd  Enable production of hex mfgimg files.
 new 03c2a2e  Enabling mfg bin to hex image convertion.
 new 103dd31  update documentation
 new 887279f  Merge pull request #280 from mlaz/hex_img

The 1369 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:
 artifact/manifest/mfg_manifest.go |  2 ++
 artifact/mfg/mfg.go   |  3 +-
 newt/cli/mfg_cmds.go  |  3 ++
 newt/mfg/README.md|  8 -
 newt/mfg/emit.go  | 67 ---
 newt/mfg/paths.go | 10 +-
 6 files changed, 85 insertions(+), 8 deletions(-)



[mynewt-newt] branch hex_img deleted (was 3de0e60)

2019-03-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a change to branch hex_img
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git.


 was 3de0e60  Enable production of hex mfgimg files.

This change permanently discards the following revisions:

 discard 3de0e60  Enable production of hex mfgimg files.



[mynewt-newt] branch hex_img created (now 3de0e60)

2019-03-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a change to branch hex_img
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git.


  at 3de0e60  Enable production of hex mfgimg files.

This branch includes the following new commits:

 new 3de0e60  Enable production of hex mfgimg files.

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.




[mynewt-core] branch master updated: mcu/nordic Added missing baud rate values for nRF51 and nRF52.

2019-03-05 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 2b73bed  mcu/nordic Added missing baud rate values for nRF51 and nRF52.
 new 0c16e38  Merge pull request #1671 from mlaz/add_missig_baud
2b73bed is described below

commit 2b73beda4eaf50078ad4c253a71d5818e886b63d
Author: Miguel Azevedo 
AuthorDate: Fri Mar 1 18:50:17 2019 +

mcu/nordic Added missing baud rate values for nRF51 and nRF52.
---
 hw/mcu/nordic/nrf51xxx/src/hal_uart.c | 18 ++
 hw/mcu/nordic/nrf52xxx/src/hal_uart.c |  8 
 2 files changed, 26 insertions(+)

diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_uart.c 
b/hw/mcu/nordic/nrf51xxx/src/hal_uart.c
index 636d49e..53ca337 100644
--- a/hw/mcu/nordic/nrf51xxx/src/hal_uart.c
+++ b/hw/mcu/nordic/nrf51xxx/src/hal_uart.c
@@ -194,18 +194,36 @@ static uint32_t
 hal_uart_baudrate(int baudrate)
 {
 switch (baudrate) {
+case 1200:
+return UART_BAUDRATE_BAUDRATE_Baud1200;
+case 2400:
+return UART_BAUDRATE_BAUDRATE_Baud2400;
+case 4800:
+return UART_BAUDRATE_BAUDRATE_Baud4800;
 case 9600:
 return UART_BAUDRATE_BAUDRATE_Baud9600;
+case 14400:
+return UART_BAUDRATE_BAUDRATE_Baud14400;
 case 19200:
 return UART_BAUDRATE_BAUDRATE_Baud19200;
+case 28800:
+return UART_BAUDRATE_BAUDRATE_Baud28800;
+case 31250:
+return UART_BAUDRATE_BAUDRATE_Baud31250;
 case 38400:
 return UART_BAUDRATE_BAUDRATE_Baud38400;
+case 56000:
+return UART_BAUDRATE_BAUDRATE_Baud56000;
 case 57600:
 return UART_BAUDRATE_BAUDRATE_Baud57600;
+case 76800:
+return UART_BAUDRATE_BAUDRATE_Baud76800;
 case 115200:
 return UART_BAUDRATE_BAUDRATE_Baud115200;
 case 230400:
 return UART_BAUDRATE_BAUDRATE_Baud230400;
+case 25:
+return UART_BAUDRATE_BAUDRATE_Baud25;
 case 460800:
 return UART_BAUDRATE_BAUDRATE_Baud460800;
 case 921600:
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_uart.c 
b/hw/mcu/nordic/nrf52xxx/src/hal_uart.c
index 33fb30e..5dc5907 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_uart.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_uart.c
@@ -291,10 +291,16 @@ hal_uart_baudrate(int baudrate)
 return UARTE_BAUDRATE_BAUDRATE_Baud4800;
 case 9600:
 return UARTE_BAUDRATE_BAUDRATE_Baud9600;
+case 14400:
+return UARTE_BAUDRATE_BAUDRATE_Baud14400;
 case 19200:
 return UARTE_BAUDRATE_BAUDRATE_Baud19200;
+case 28800:
+return UARTE_BAUDRATE_BAUDRATE_Baud28800;
 case 38400:
 return UARTE_BAUDRATE_BAUDRATE_Baud38400;
+case 56000:
+return UARTE_BAUDRATE_BAUDRATE_Baud56000;
 case 57600:
 return UARTE_BAUDRATE_BAUDRATE_Baud57600;
 case 76800:
@@ -303,6 +309,8 @@ hal_uart_baudrate(int baudrate)
 return UARTE_BAUDRATE_BAUDRATE_Baud115200;
 case 230400:
 return UARTE_BAUDRATE_BAUDRATE_Baud230400;
+case 25:
+return UARTE_BAUDRATE_BAUDRATE_Baud25;
 case 460800:
 return UARTE_BAUDRATE_BAUDRATE_Baud460800;
 case 921600:



[mynewt-core] branch master updated (3f7decc -> 59912fc)

2019-01-04 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 3f7decc  Update mbedTLS to 2.14.1
 add 23be607  updated nrfx to release 1.4.0
 new 59912fc  Merge pull request #1540 from mlaz/update_nrfx140

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/mcu/nordic/src/ext/nrfx/CHANGELOG.md|   72 +-
 .../src/ext/nrfx/drivers/include/nrf_bitmask.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_adc.h |   26 +-
 .../src/ext/nrfx/drivers/include/nrfx_clock.h  |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_comp.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_gpiote.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_i2s.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_lpcomp.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_nfct.h   |  366 ++
 .../nordic/src/ext/nrfx/drivers/include/nrfx_pdm.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_power.h  |   12 +-
 .../ext/nrfx/drivers/include/nrfx_power_clock.h|   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_ppi.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_pwm.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_qdec.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_qspi.h   |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_rng.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_rtc.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_saadc.h  |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_spi.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_spim.h   |   16 +-
 .../src/ext/nrfx/drivers/include/nrfx_spis.h   |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_swi.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_systick.h|   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_timer.h  |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_twi.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_twim.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_twis.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_uart.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_uarte.h  |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_usbd.h   |  863 
 .../nordic/src/ext/nrfx/drivers/include/nrfx_wdt.h |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/nrfx_common.h   |   53 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/nrfx_errors.h   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_adc.c  |   30 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_clock.c   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_comp.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_gpiote.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_i2s.c  |   25 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_lpcomp.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_nfct.c |  884 
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_pdm.c  |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_power.c   |   31 +-
 .../src/ext/nrfx/drivers/src/nrfx_power_clock.c|   43 -
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_ppi.c  |   14 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_pwm.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_qdec.c |   21 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_qspi.c |   16 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_rng.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_rtc.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_spi.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_spim.c |   48 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_spis.c |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_swi.c  |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_systick.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_timer.c   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_twi.c  |   34 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_twim.c |   13 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_twis.c |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_uart.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_uarte.c   |   30 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_usbd.c | 2352 ++
 .../src/ext/nrfx/drivers/src/nrfx_usbd_errata.h|  117 +
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_wdt.c  |   14 +-
 .../nordic/src/ext/nrfx/drivers/src/prs/nrfx_prs.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/prs/nrfx_prs.h |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_adc.h   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_ccm.h   |  497 +++
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_clock.h |   46 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_comp.h  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_ec

[mynewt-core] 01/01: Merge pull request #1540 from mlaz/update_nrfx140

2019-01-04 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 59912fc02d5f025712c2554470727e87b2798cc8
Merge: 3f7decc 23be607
Author: Miguel Azevedo 
AuthorDate: Fri Jan 4 16:39:59 2019 +

Merge pull request #1540 from mlaz/update_nrfx140

Update nrfx to release 1.4.0

 hw/mcu/nordic/src/ext/nrfx/CHANGELOG.md|   72 +-
 .../src/ext/nrfx/drivers/include/nrf_bitmask.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_adc.h |   26 +-
 .../src/ext/nrfx/drivers/include/nrfx_clock.h  |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_comp.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_gpiote.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_i2s.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_lpcomp.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_nfct.h   |  366 ++
 .../nordic/src/ext/nrfx/drivers/include/nrfx_pdm.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_power.h  |   12 +-
 .../ext/nrfx/drivers/include/nrfx_power_clock.h|   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_ppi.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_pwm.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_qdec.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_qspi.h   |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_rng.h |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_rtc.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_saadc.h  |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_spi.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_spim.h   |   16 +-
 .../src/ext/nrfx/drivers/include/nrfx_spis.h   |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_swi.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_systick.h|   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_timer.h  |   12 +-
 .../nordic/src/ext/nrfx/drivers/include/nrfx_twi.h |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_twim.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_twis.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_uart.h   |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_uarte.h  |   12 +-
 .../src/ext/nrfx/drivers/include/nrfx_usbd.h   |  863 
 .../nordic/src/ext/nrfx/drivers/include/nrfx_wdt.h |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/nrfx_common.h   |   53 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/nrfx_errors.h   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_adc.c  |   30 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_clock.c   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_comp.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_gpiote.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_i2s.c  |   25 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_lpcomp.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_nfct.c |  884 
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_pdm.c  |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_power.c   |   31 +-
 .../src/ext/nrfx/drivers/src/nrfx_power_clock.c|   43 -
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_ppi.c  |   14 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_pwm.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_qdec.c |   21 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_qspi.c |   16 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_rng.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_rtc.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_spi.c  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_spim.c |   48 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_spis.c |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_swi.c  |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_systick.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_timer.c   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_twi.c  |   34 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_twim.c |   13 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_twis.c |   12 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_uart.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/nrfx_uarte.c   |   30 +-
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_usbd.c | 2352 ++
 .../src/ext/nrfx/drivers/src/nrfx_usbd_errata.h|  117 +
 hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_wdt.c  |   14 +-
 .../nordic/src/ext/nrfx/drivers/src/prs/nrfx_prs.c |   12 +-
 .../nordic/src/ext/nrfx/drivers/src/prs/nrfx_prs.h |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_adc.h   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_ccm.h   |  497 +++
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_clock.h |   46 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_comp.h  |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_ecb.c   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_ecb.h   |  213 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_egu.h   |   12 +-
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_gpio.h

[mynewt-core] branch master updated (2f67ef0 -> 798f363)

2018-12-07 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 2f67ef0  Merge pull request #1547 from mkiiskila/nrf52_ram_resident
 add 0f64e8f  Making lp5523_set_output_on() write only a single register, 
it will only set a bit at
 add ef4accd  Fixing regs content alignment on lp5523_set_n_regs
 add 52dd4a8  Merge remote-tracking branch 'upstream/master' into 
lp5523_fixes
 add 01c119c  lp5523_get_output_on now works like lp5523_set_output_on, 
lp5523_self_test now checks whether an output is enabled before testing on it.
 add f1e31ed  Merge branch 'master' into lp5523_fixes
 new 798f363  Merge pull request #1378 from mlaz/lp5523_fixes

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/led/lp5523/src/lp5523.c | 50 --
 1 file changed, 37 insertions(+), 13 deletions(-)



[mynewt-core] 01/01: Merge pull request #1378 from mlaz/lp5523_fixes

2018-12-07 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 798f363f42f8aab8279594a5bb99d6c5e550e8c7
Merge: 2f67ef0 f1e31ed
Author: Miguel Azevedo 
AuthorDate: Fri Dec 7 15:07:20 2018 +

Merge pull request #1378 from mlaz/lp5523_fixes

lp5523: Fixing selftest, set_output_on and set_n_regs

 hw/drivers/led/lp5523/src/lp5523.c | 50 --
 1 file changed, 37 insertions(+), 13 deletions(-)




[mynewt-core] branch master updated (0c79edf -> 37ed5f7)

2018-06-06 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 0c79edf  Merge pull request #1167 from 
ccollins476ad/increase-compat-commands
 add d51eca8  catching NRFX_PWM_EVT_STOPPED events, making pwm_stop not 
crash when callend from seq_end_handler
 new 37ed5f7  Merge pull request #1169 from mlaz/pwm_fixes

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:
 apps/pwm_test/src/main.c |  3 +++
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 30 ++
 2 files changed, 17 insertions(+), 16 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #1169 from mlaz/pwm_fixes

2018-06-06 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 37ed5f71e98ae9868c78847569821d699a3c6c4c
Merge: 0c79edf d51eca8
Author: Miguel Azevedo 
AuthorDate: Thu Jun 7 04:12:38 2018 +0100

Merge pull request #1169 from mlaz/pwm_fixes

nrf52_pwm: catch NRFX_PWM_EVT_STOPPED events

 apps/pwm_test/src/main.c |  3 +++
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 30 ++
 2 files changed, 17 insertions(+), 16 deletions(-)

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


[mynewt-core] branch master updated (150e15c -> 24afa19)

2018-06-06 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 150e15c  Merge pull request #1158 from mkiiskila/shell_reset_cmd
 add 9fa3fe4  syscfg to enable nRF52 pin reset
 new 24afa19  Merge pull request #1166 from lance-proxy/reset_gpio_config

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/mcu/nordic/nrf52xxx/pkg.yml| 3 +++
 hw/mcu/nordic/nrf52xxx/syscfg.yml | 4 
 2 files changed, 7 insertions(+)

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


[mynewt-core] 01/01: Merge pull request #1166 from lance-proxy/reset_gpio_config

2018-06-06 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 24afa19afa2736308d536171faa5d582f4cb
Merge: 150e15c 9fa3fe4
Author: Miguel Azevedo 
AuthorDate: Wed Jun 6 18:06:31 2018 +0100

Merge pull request #1166 from lance-proxy/reset_gpio_config

syscfg to enable nRF52 pin reset

 hw/mcu/nordic/nrf52xxx/pkg.yml| 3 +++
 hw/mcu/nordic/nrf52xxx/syscfg.yml | 4 
 2 files changed, 7 insertions(+)

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


[mynewt-core] 01/01: Merge pull request #1117 from mlaz/pwm_fixes

2018-05-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 147e3f4bbe57b3a9d8e4028c6db1f143623d3505
Merge: 3a6e787 aa7f2e3
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Wed May 23 00:39:37 2018 +0100

Merge pull request #1117 from mlaz/pwm_fixes

set nRF52 PWM instance->playing to true when enabling the pwm playback

 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

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


[mynewt-core] branch master updated (3a6e787 -> 147e3f4)

2018-05-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 3a6e787  Update os_user_guide.rst
 add aa7f2e3  set instance->playing to true/false when enabling/disbling 
the pwm playback
 new 147e3f4  Merge pull request #1117 from mlaz/pwm_fixes

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/pwm/pwm_nrf52/src/pwm_nrf52.c | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

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


[mynewt-core] branch master updated (6ceea47 -> c99961f)

2018-05-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 6ceea47  Upgrade CMSIS to 5.3.0
 add 65973b2  Updating some things for the nrf52810
 add 438bae4  Remove extra semicolon in nrfx_glue.h
 add c9009a9  Adding ign_pkg for NRF52810 hal_i2c.c and hal_spi.c aren't 
supported in the NRF52810 spim and i2cm are.
 add c76b459  Fixing pkg.ign_files that was in the wrong package
 new c99961f  Merge pull request #1106 from alvarop/nrf52810

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/mcu/nordic/include/nrfx_glue.h  |  2 +-
 hw/mcu/nordic/nrf52xxx/include/mcu/cortex_m4.h |  6 +-
 hw/mcu/nordic/nrf52xxx/pkg.yml |  6 ++
 hw/mcu/nordic/nrf52xxx/src/hal_flash.c |  8 +++
 hw/mcu/nordic/nrf52xxx/src/hal_gpio.c  | 29 ++
 hw/mcu/nordic/pkg.yml  |  4 
 6 files changed, 49 insertions(+), 6 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #1106 from alvarop/nrf52810

2018-05-22 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit c99961f59c093b06c3bb5dd96b60d8dc52dcb6ac
Merge: 6ceea47 c76b459
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Tue May 22 15:09:26 2018 +0100

Merge pull request #1106 from alvarop/nrf52810

NRF52810 Support

 hw/mcu/nordic/include/nrfx_glue.h  |  2 +-
 hw/mcu/nordic/nrf52xxx/include/mcu/cortex_m4.h |  6 +-
 hw/mcu/nordic/nrf52xxx/pkg.yml |  6 ++
 hw/mcu/nordic/nrf52xxx/src/hal_flash.c |  8 +++
 hw/mcu/nordic/nrf52xxx/src/hal_gpio.c  | 29 ++
 hw/mcu/nordic/pkg.yml  |  4 
 6 files changed, 49 insertions(+), 6 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #1112 from mlaz/pwm_fixes

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

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

commit a7f4d8c4fa9641b08b61377b1bcef8d6b7e0cb4c
Merge: 14a5a37 532e630
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Fri May 18 16:49:25 2018 +0100

Merge pull request #1112 from mlaz/pwm_fixes

Adding pointer validation assertions to PWM API level.

 hw/drivers/pwm/src/pwm.c | 10 ++
 1 file changed, 10 insertions(+)

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


[mynewt-core] branch master updated (14a5a37 -> a7f4d8c)

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

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


from 14a5a37  Senesor error format fix (#)
 add 532e630  Adding pointer validation assertions to PWM API level.
 new a7f4d8c  Merge pull request #1112 from mlaz/pwm_fixes

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/pwm/src/pwm.c | 10 ++
 1 file changed, 10 insertions(+)

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


[mynewt-core] branch master updated (e6aa4b3 -> aa73985)

2018-05-14 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from e6aa4b3  Merge pull request #1079 from sjanc/mbedtls
 add d5e8598  added pwm_is_enabled on API, nrf52_pwm and soft_pwm drivers.
 add e5ddb3a  nrf52 on new api interface
 add cf6b717  soft pwm on new api interface, some changes on nrf52_pwm for 
consistency
 add b9fc2d1  all BSP's containing soft pwm enabeled updated, pwm_test freq 
changed to lower value
 add bb5b930  changing pin type to uint32_t and fixing pwm_is_enabled on 
the API interface
 new aa73985  Merge pull request #1016 from mlaz/pwm_enabled

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:
 apps/pwm_test/src/main.c |  47 +++--
 hw/bsp/ada_feather_nrf52/src/hal_bsp.c   |  27 ++-
 hw/bsp/arduino_primo_nrf52/src/hal_bsp.c |  27 ++-
 hw/bsp/bmd300eval/src/hal_bsp.c  |  27 ++-
 hw/bsp/dwm1001-dev/src/hal_bsp.c |  27 ++-
 hw/bsp/nina-b1/src/hal_bsp.c |  27 ++-
 hw/bsp/nrf52840pdk/src/hal_bsp.c |  27 ++-
 hw/bsp/nrf52dk/src/hal_bsp.c |  27 ++-
 hw/bsp/puckjs/src/hal_bsp.c  |  27 ++-
 hw/bsp/rb-blend2/src/hal_bsp.c   |  27 ++-
 hw/bsp/rb-nano2/src/hal_bsp.c|  27 ++-
 hw/bsp/ruuvi_tag_revb2/src/hal_bsp.c |  27 ++-
 hw/bsp/telee02/src/hal_bsp.c |  28 ++-
 hw/bsp/vbluno52/src/hal_bsp.c|  27 ++-
 hw/drivers/pwm/include/pwm/pwm.h |  97 +++---
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 171 ++---
 hw/drivers/pwm/soft_pwm/src/soft_pwm.c   | 306 +++
 hw/drivers/pwm/soft_pwm/syscfg.yml   |  10 +-
 hw/drivers/pwm/src/pwm.c |  89 ++---
 19 files changed, 749 insertions(+), 323 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #1016 from mlaz/pwm_enabled

2018-05-14 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit aa7398506d1eb1cf480f52550f01b507c2833adc
Merge: e6aa4b3 bb5b930
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Mon May 14 11:52:55 2018 +0100

Merge pull request #1016 from mlaz/pwm_enabled

Refactoring PWM API Interface

 apps/pwm_test/src/main.c |  47 +++--
 hw/bsp/ada_feather_nrf52/src/hal_bsp.c   |  27 ++-
 hw/bsp/arduino_primo_nrf52/src/hal_bsp.c |  27 ++-
 hw/bsp/bmd300eval/src/hal_bsp.c  |  27 ++-
 hw/bsp/dwm1001-dev/src/hal_bsp.c |  27 ++-
 hw/bsp/nina-b1/src/hal_bsp.c |  27 ++-
 hw/bsp/nrf52840pdk/src/hal_bsp.c |  27 ++-
 hw/bsp/nrf52dk/src/hal_bsp.c |  27 ++-
 hw/bsp/puckjs/src/hal_bsp.c  |  27 ++-
 hw/bsp/rb-blend2/src/hal_bsp.c   |  27 ++-
 hw/bsp/rb-nano2/src/hal_bsp.c|  27 ++-
 hw/bsp/ruuvi_tag_revb2/src/hal_bsp.c |  27 ++-
 hw/bsp/telee02/src/hal_bsp.c |  28 ++-
 hw/bsp/vbluno52/src/hal_bsp.c|  27 ++-
 hw/drivers/pwm/include/pwm/pwm.h |  97 +++---
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 171 ++---
 hw/drivers/pwm/soft_pwm/src/soft_pwm.c   | 306 +++
 hw/drivers/pwm/soft_pwm/syscfg.yml   |  10 +-
 hw/drivers/pwm/src/pwm.c |  89 ++---
 19 files changed, 749 insertions(+), 323 deletions(-)


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


[mynewt-core] branch master updated (f415e00 -> 545acc5)

2018-03-13 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from f415e00  Merge pull request #836 from mlaz/pwm_interrupt
 add 2fe14d2  added int easing lib
 add f75e18a  added float version
 add e3e823c  changing cflags to lflags
 add cc059d7  Fixed int funcion names.
 new 545acc5  Merge pull request #822 from mlaz/easing

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:
 util/easing/include/easing/easing.h  | 120 ++
 {sys/sysinit => util/easing}/pkg.yml |  11 +-
 util/easing/src/easing.c | 693 +++
 3 files changed, 818 insertions(+), 6 deletions(-)
 create mode 100644 util/easing/include/easing/easing.h
 copy {sys/sysinit => util/easing}/pkg.yml (88%)
 create mode 100644 util/easing/src/easing.c

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


[mynewt-core] 01/01: Merge pull request #822 from mlaz/easing

2018-03-13 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 545acc5bd1dff3be451944e810f6855ece0af5d1
Merge: f415e00 cc059d7
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Tue Mar 13 16:04:32 2018 -0300

Merge pull request #822 from mlaz/easing

Adding int/float easing library

 util/easing/include/easing/easing.h | 120 +++
 util/easing/pkg.yml |  28 ++
 util/easing/src/easing.c| 693 
 3 files changed, 841 insertions(+)

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


[mynewt-core] 01/01: Merge pull request #836 from mlaz/pwm_interrupt

2018-03-13 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit f415e006c0351631325c5748f128198bd1dffa69
Merge: 00eb38b e045996
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Tue Mar 13 16:03:58 2018 -0300

Merge pull request #836 from mlaz/pwm_interrupt

PWM add cycle interrupt handling to pwm_nrf52 driver

 apps/pwm_test/pkg.yml|   1 +
 apps/pwm_test/src/main.c | 152 --
 hw/drivers/pwm/include/pwm/pwm.h |  42 +++-
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 343 +++
 hw/drivers/pwm/src/pwm.c |  16 ++
 5 files changed, 448 insertions(+), 106 deletions(-)

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


[mynewt-core] branch master updated (00eb38b -> f415e00)

2018-03-13 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 00eb38b  Merge pull request #911 from michal-narajowski/mesh-fixes
 add e14bd81  wip, implemented PWM cycle interrupt handling
 add aadd3e8  changing asserts to ret vals
 add 5e5bd12  Have the user setting the cycle irq priority and setting 
user_data as handler function parameter.
 add d4275f7  Added some comments on pwm.h, pwm_ test now breathes on 
LED_BLINK_PIN using easing lib.
 add a977703  Added support for n cycles sequences and end of sequence 
interrupt.
 add 132dbdb  pwm_get_top_value implemented, refactored pwm_chan_cfg with 
optional interrupt support to more memoy efficient datastructures
 add e045996  Update pwm.h
 new f415e00  Merge pull request #836 from mlaz/pwm_interrupt

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:
 apps/pwm_test/pkg.yml|   1 +
 apps/pwm_test/src/main.c | 152 --
 hw/drivers/pwm/include/pwm/pwm.h |  42 +++-
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 343 +++
 hw/drivers/pwm/src/pwm.c |  16 ++
 5 files changed, 448 insertions(+), 106 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #833 from mlaz/fix_nrfx_glue

2018-02-21 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit fa50ac0deff5b62f18a28e76a5cdb3a8b3c4d242
Merge: 70c6614 6ba05cc
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Wed Feb 21 23:23:14 2018 -0300

Merge pull request #833 from mlaz/fix_nrfx_glue

fixing sr_from_macro global symbol conflict

 hw/mcu/nordic/include/nrfx_glue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


[mynewt-core] branch master updated (70c6614 -> fa50ac0)

2018-02-21 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 70c6614  Merge pull request #832 from rymanluk/fix_flow_ctrl
 add 6ba05cc  fixing sr_from_macro global symbol conflict
 new fa50ac0  Merge pull request #833 from mlaz/fix_nrfx_glue

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/mcu/nordic/include/nrfx_glue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


[mynewt-core] 01/01: Merge pull request #821 from mlaz/fix_pwm_nrf525

2018-02-19 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit 3f4067a31578d9790577f8a823ba23762861d394
Merge: 4f36d51 daf18e2
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Mon Feb 19 16:47:56 2018 -0300

Merge pull request #821 from mlaz/fix_pwm_nrf525

Adding blinking to pwm_test, fixing os_dev_close

 apps/pwm_test/src/main.c | 34 +---
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 14 +
 2 files changed, 32 insertions(+), 16 deletions(-)

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


[mynewt-core] branch master updated (4f36d51 -> 3f4067a)

2018-02-19 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 4f36d51  charge-control: Adding sensor-like interface for battery 
charge controller ICs (#814)
 add daf18e2  Adding blinking to pwm_test, fixing os_dev_close
 new 3f4067a  Merge pull request #821 from mlaz/fix_pwm_nrf525

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:
 apps/pwm_test/src/main.c | 34 +---
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c | 14 +
 2 files changed, 32 insertions(+), 16 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #763 from mlaz/integrate_nrfx

2018-02-14 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit d870b9d608109b6b8b0a7d320f42520b828a5a72
Merge: a82f5bf 3c2c8de
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Wed Feb 14 13:48:11 2018 -0200

Merge pull request #763 from mlaz/integrate_nrfx

Integrate nrfx along with all drivers from mynewt_nordic.

 apps/pwm_test/pkg.yml  | 2 +-
 apps/pwm_test/src/main.c   |39 +-
 apps/soft_pwm_test/src/main.c  |68 -
 hw/bsp/ada_feather_nrf52/pkg.yml   |   136 +-
 hw/bsp/ada_feather_nrf52/src/hal_bsp.c |85 +
 hw/bsp/arduino_primo_nrf52/pkg.yml |   136 +-
 hw/bsp/arduino_primo_nrf52/src/hal_bsp.c   |97 +
 hw/bsp/bbc_microbit/pkg.yml|92 +-
 hw/bsp/bbc_microbit/src/hal_bsp.c  |23 +
 hw/bsp/bbc_microbit/syscfg.yml |10 +
 hw/bsp/ble400/pkg.yml  |90 +-
 hw/bsp/ble400/src/hal_bsp.c|23 +
 hw/bsp/ble400/syscfg.yml   |10 +
 hw/bsp/bmd200/pkg.yml  |90 +-
 hw/bsp/bmd200/src/hal_bsp.c|23 +
 hw/bsp/bmd200/syscfg.yml   |10 +
 hw/bsp/bmd300eval/pkg.yml  |   136 +-
 hw/bsp/bmd300eval/src/hal_bsp.c|92 +
 hw/bsp/calliope_mini/pkg.yml   |91 +-
 hw/bsp/calliope_mini/src/hal_bsp.c |22 +
 hw/bsp/calliope_mini/syscfg.yml|10 +
 hw/bsp/nina-b1/pkg.yml |   145 +-
 hw/bsp/nina-b1/src/hal_bsp.c   |86 +
 hw/bsp/nina-b1/syscfg.yml  | 5 +-
 hw/bsp/nrf51-arduino_101/pkg.yml   |94 +-
 hw/bsp/nrf51-arduino_101/src/hal_bsp.c |23 +
 hw/bsp/nrf51-arduino_101/syscfg.yml|10 +
 hw/bsp/nrf51-blenano/pkg.yml   |92 +-
 hw/bsp/nrf51-blenano/src/hal_bsp.c |22 +
 hw/bsp/nrf51-blenano/syscfg.yml|10 +
 hw/bsp/nrf51dk-16kbram/pkg.yml |94 +-
 hw/bsp/nrf51dk-16kbram/src/hal_bsp.c   |23 +
 hw/bsp/nrf51dk-16kbram/syscfg.yml  |10 +
 hw/bsp/nrf51dk/pkg.yml |90 +-
 hw/bsp/nrf51dk/src/hal_bsp.c   |24 +
 hw/bsp/nrf51dk/syscfg.yml  |10 +
 hw/bsp/nrf52-thingy/pkg.yml|   137 +-
 hw/bsp/nrf52-thingy/src/hal_bsp.c  |77 +-
 hw/bsp/nrf52840pdk/pkg.yml |   153 +-
 hw/bsp/nrf52840pdk/src/hal_bsp.c   |   102 +
 hw/bsp/nrf52840pdk/syscfg.yml  | 3 +
 hw/bsp/nrf52dk/pkg.yml |   133 +-
 hw/bsp/nrf52dk/src/hal_bsp.c   |39 +-
 hw/bsp/nrf52dk/syscfg.yml  |20 -
 hw/bsp/rb-blend2/pkg.yml   |   141 +-
 hw/bsp/rb-blend2/src/hal_bsp.c |86 +
 hw/bsp/rb-blend2/syscfg.yml| 5 +-
 hw/bsp/rb-nano2/pkg.yml|   139 +-
 hw/bsp/rb-nano2/src/hal_bsp.c  |   119 +-
 hw/bsp/rb-nano2/syscfg.yml |10 +
 hw/bsp/ruuvi_tag_revb2/pkg.yml |   136 +-
 hw/bsp/ruuvi_tag_revb2/src/hal_bsp.c   |85 +
 hw/bsp/telee02/pkg.yml |   136 +-
 hw/bsp/telee02/src/hal_bsp.c   |85 +
 hw/bsp/vbluno51/pkg.yml|92 +-
 hw/bsp/vbluno51/src/hal_bsp.c  |23 +
 hw/bsp/vbluno51/syscfg.yml |10 +
 hw/bsp/vbluno52/pkg.yml|   136 +-
 hw/bsp/vbluno52/src/hal_bsp.c  |85 +
 .../adc/adc_nrf51/include/adc_nrf51/adc_nrf51.h|44 +
 .../pwm_test => hw/drivers/adc/adc_nrf51}/pkg.yml  |13 +-
 hw/drivers/adc/adc_nrf51/src/adc_nrf51.c   |   409 +
 .../adc/adc_nrf52/include/adc_nrf52/adc_nrf52.h|39 +
 .../pwm_test => hw/drivers/adc/adc_nrf52}/pkg.yml  |13 +-
 hw/drivers/adc/adc_nrf52/src/adc_nrf52.c   |   397 +
 hw/drivers/nimble/nrf52/src/ble_phy.c  |10 +-
 .../pwm/pwm_nrf52/include/pwm_nrf52/pwm_nrf52.h|37 +
 .../drivers/pwm/pwm_nrf52}/pkg.yml |16 +-
 hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c   |   498 +
 hw/mcu/nordic/include/nrfx_config.h| 0
 hw/mcu/nordic/include/nrfx_glue.h  |   143 +
 hw/mcu/nordic/nrf51xxx/pkg.yml | 1 +
 hw/mcu/nordic/nrf51xx

[mynewt-core] branch master updated (a82f5bf -> d870b9d)

2018-02-14 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from a82f5bf  adc driver impl: correct incoming arg check (#800)
 add 2dbb368  Added nrfx, replacing nRF5_SDK_11.
 add fdc0f6d  removed nrfx/doc, added nrfx_glue.h and nrfx_config.h.
 add 44bda71  Enabeling nrfx on all nordic MCU variants and all BSPs.
 add 428c2d6  Adding drivers from mynewt_nordic.
 add 219e1af  Port adc_nrf51, adc_nrf52 and pwm_nrf52 drivers to use nrfx.
 add 3c2c8de  Fixing NRF_RADIO CI field on ble_phy.
 new d870b9d  Merge pull request #763 from mlaz/integrate_nrfx

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:
 apps/pwm_test/pkg.yml  | 2 +-
 apps/pwm_test/src/main.c   |39 +-
 apps/soft_pwm_test/src/main.c  |68 -
 hw/bsp/ada_feather_nrf52/pkg.yml   |   136 +-
 hw/bsp/ada_feather_nrf52/src/hal_bsp.c |85 +
 hw/bsp/arduino_primo_nrf52/pkg.yml |   136 +-
 hw/bsp/arduino_primo_nrf52/src/hal_bsp.c   |97 +
 hw/bsp/bbc_microbit/pkg.yml|92 +-
 hw/bsp/bbc_microbit/src/hal_bsp.c  |23 +
 hw/bsp/bbc_microbit/syscfg.yml |10 +
 hw/bsp/ble400/pkg.yml  |90 +-
 hw/bsp/ble400/src/hal_bsp.c|23 +
 hw/bsp/ble400/syscfg.yml   |10 +
 hw/bsp/bmd200/pkg.yml  |90 +-
 hw/bsp/bmd200/src/hal_bsp.c|23 +
 hw/bsp/bmd200/syscfg.yml   |10 +
 hw/bsp/bmd300eval/pkg.yml  |   136 +-
 hw/bsp/bmd300eval/src/hal_bsp.c|92 +
 hw/bsp/calliope_mini/pkg.yml   |91 +-
 hw/bsp/calliope_mini/src/hal_bsp.c |22 +
 hw/bsp/calliope_mini/syscfg.yml|10 +
 hw/bsp/nina-b1/pkg.yml |   145 +-
 hw/bsp/nina-b1/src/hal_bsp.c   |86 +
 hw/bsp/nina-b1/syscfg.yml  | 5 +-
 hw/bsp/nrf51-arduino_101/pkg.yml   |94 +-
 hw/bsp/nrf51-arduino_101/src/hal_bsp.c |23 +
 hw/bsp/nrf51-arduino_101/syscfg.yml|10 +
 hw/bsp/nrf51-blenano/pkg.yml   |92 +-
 hw/bsp/nrf51-blenano/src/hal_bsp.c |22 +
 hw/bsp/nrf51-blenano/syscfg.yml|10 +
 hw/bsp/nrf51dk-16kbram/pkg.yml |94 +-
 hw/bsp/nrf51dk-16kbram/src/hal_bsp.c   |23 +
 hw/bsp/nrf51dk-16kbram/syscfg.yml  |10 +
 hw/bsp/nrf51dk/pkg.yml |90 +-
 hw/bsp/nrf51dk/src/hal_bsp.c   |24 +
 hw/bsp/nrf51dk/syscfg.yml  |10 +
 hw/bsp/nrf52-thingy/pkg.yml|   137 +-
 hw/bsp/nrf52-thingy/src/hal_bsp.c  |77 +-
 hw/bsp/nrf52840pdk/pkg.yml |   153 +-
 hw/bsp/nrf52840pdk/src/hal_bsp.c   |   102 +
 hw/bsp/nrf52840pdk/syscfg.yml  | 3 +
 hw/bsp/nrf52dk/pkg.yml |   133 +-
 hw/bsp/nrf52dk/src/hal_bsp.c   |39 +-
 hw/bsp/nrf52dk/syscfg.yml  |20 -
 hw/bsp/rb-blend2/pkg.yml   |   141 +-
 hw/bsp/rb-blend2/src/hal_bsp.c |86 +
 hw/bsp/rb-blend2/syscfg.yml| 5 +-
 hw/bsp/rb-nano2/pkg.yml|   139 +-
 hw/bsp/rb-nano2/src/hal_bsp.c  |   119 +-
 hw/bsp/rb-nano2/syscfg.yml |10 +
 hw/bsp/ruuvi_tag_revb2/pkg.yml |   136 +-
 hw/bsp/ruuvi_tag_revb2/src/hal_bsp.c   |85 +
 hw/bsp/telee02/pkg.yml |   136 +-
 hw/bsp/telee02/src/hal_bsp.c   |85 +
 hw/bsp/vbluno51/pkg.yml|92 +-
 hw/bsp/vbluno51/src/hal_bsp.c  |23 +
 hw/bsp/vbluno51/syscfg.yml |10 +
 hw/bsp/vbluno52/pkg.yml|   136 +-
 hw/bsp/vbluno52/src/hal_bsp.c  |85 +
 .../adc/adc_nrf51/include/adc_nrf51/adc_nrf51.h|44 +
 .../pwm_test => hw/drivers/adc/adc_nrf51}/pkg.yml  |13 +-
 hw/drivers/adc/adc_nrf51/src/adc_nrf51.c   |   409 +
 .../adc/adc_nrf52/include/adc_nrf52/adc_nrf52.h|39 +
 .../pwm_test => hw/drivers/adc/adc_nrf52}/pkg.yml  |13 +-
 hw/drivers/adc

[mynewt-core] branch master updated (8a4447a -> b19dd67)

2017-10-18 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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


from 8a4447a  Check the int2 pin num before init
 add 68b5b2d  removing illegal dependency on external repository
 new b19dd67  Merge pull request #631 from mlaz/fix_bsp

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/bsp/nrf52dk/pkg.yml | 3 ---
 1 file changed, 3 deletions(-)

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


[mynewt-core] 01/01: Merge pull request #631 from mlaz/fix_bsp

2017-10-18 Thread mlaz
This is an automated email from the ASF dual-hosted git repository.

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

commit b19dd67d54db3400889e6894af4e5f0cbb3f20ec
Merge: 8a4447a 68b5b2d
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Thu Oct 19 01:39:37 2017 +0200

Merge pull request #631 from mlaz/fix_bsp

removing illegal dependency on external repository

 hw/bsp/nrf52dk/pkg.yml | 3 ---
 1 file changed, 3 deletions(-)

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