You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2017/04/26 22:41:38 UTC

[50/50] [abbrv] incubator-mynewt-core git commit: This closes #250.

This closes #250.

Merge branch 'master' into bluetooth5


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

Branch: refs/heads/bluetooth5
Commit: 87329b51421d24d87b3ca17862e236cd985f8196
Parents: 4c2a8d9 02fd7c7
Author: Szymon Janc <sz...@codecoup.pl>
Authored: Wed Apr 26 14:23:02 2017 -0700
Committer: Szymon Janc <sz...@codecoup.pl>
Committed: Wed Apr 26 15:39:37 2017 -0700

----------------------------------------------------------------------
 apps/bleprph/syscfg.yml                         |     1 +
 apps/bletest/src/bletest_hci.c                  |     3 +-
 apps/bletiny/src/bletiny.h                      |     2 +-
 apps/bletiny/src/main.c                         |     7 +-
 apps/iptest/pkg.yml                             |    46 +
 apps/iptest/src/main.c                          |   441 +
 apps/iptest/syscfg.yml                          |    45 +
 apps/sensors_test/pkg.yml                       |    16 +-
 apps/sensors_test/src/bleprph.h                 |    59 +
 apps/sensors_test/src/gatt_svr.c                |   313 +
 apps/sensors_test/src/main.c                    |   437 +-
 apps/sensors_test/src/misc.c                    |    43 +
 apps/sensors_test/syscfg.yml                    |    33 +-
 apps/testbench/pkg.yml                          |    57 +-
 apps/testbench/src/tbb.c                        |   280 +
 apps/testbench/src/tbb.h                        |    44 +
 apps/testbench/src/testbench.c                  |    75 +-
 apps/testbench/syscfg.yml                       |    16 +-
 compiler/sim-armv7/compiler.yml                 |    41 +
 compiler/sim-armv7/pkg.yml                      |    28 +
 compiler/xc32/compiler.yml                      |     2 +-
 encoding/cborattr/pkg.yml                       |     2 +-
 encoding/json/pkg.yml                           |     2 +-
 encoding/tinycbor/pkg.yml                       |     2 +-
 fs/fcb/src/fcb.c                                |     2 +-
 fs/fcb/test/src/testcases/fcb_test_len.c        |     5 +-
 fs/nffs/src/nffs_block.c                        |     2 +
 fs/nffs/src/nffs_inode.c                        |     2 +
 fs/nffs/test/src/nffs_test_utils.c              |     6 +-
 fs/nffs/test/src/testcases/large_unlink_test.c  |     9 +-
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/ada_feather_nrf52/syscfg.yml             |     1 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/arduino_primo_nrf52/syscfg.yml           |     1 +
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |     3 +
 .../arch/cortex_m0/gcc_startup_nrf51_split.s    |     3 +
 hw/bsp/ble400/ble400.cfg                        |    22 +
 hw/bsp/ble400/ble400_debug.cmd                  |    22 +
 hw/bsp/ble400/ble400_debug.sh                   |    38 +
 hw/bsp/ble400/ble400_download.cmd               |    22 +
 hw/bsp/ble400/ble400_download.sh                |    42 +
 hw/bsp/ble400/ble400_no_boot.ld                 |   179 +
 hw/bsp/ble400/boot-nrf51xxac.ld                 |    25 +
 hw/bsp/ble400/bsp.yml                           |    64 +
 hw/bsp/ble400/include/bsp/boards.h              |    19 +
 hw/bsp/ble400/include/bsp/bsp.h                 |    53 +
 hw/bsp/ble400/include/bsp/cmsis_nvic.h          |    30 +
 hw/bsp/ble400/nrf51xxac.ld                      |    25 +
 hw/bsp/ble400/pkg.yml                           |    90 +
 hw/bsp/ble400/split-ble400.ld                   |   185 +
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |   283 +
 .../arch/cortex_m0/gcc_startup_nrf51_split.s    |   185 +
 hw/bsp/ble400/src/hal_bsp.c                     |   189 +
 hw/bsp/ble400/src/sbrk.c                        |    57 +
 hw/bsp/ble400/syscfg.yml                        |    97 +
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |     3 +
 .../arch/cortex_m0/gcc_startup_nrf51_split.s    |     3 +
 hw/bsp/bmd200/src/sbrk.c                        |     2 -
 hw/bsp/bmd200/syscfg.yml                        |     1 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/bmd300eval/src/sbrk.c                    |     2 -
 hw/bsp/bmd300eval/syscfg.yml                    |     1 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/nina-b1/syscfg.yml                       |     1 +
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |     3 +
 hw/bsp/nrf51-blenano/pkg.yml                    |     2 +-
 hw/bsp/nrf51-blenano/split-nrf51dk.ld           |     4 +-
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |     3 +
 .../arch/cortex_m0/gcc_startup_nrf51_split.s    |     3 +
 hw/bsp/nrf51-blenano/syscfg.yml                 |     1 +
 hw/bsp/nrf51dk-16kbram/split-nrf51dk-16kbram.ld |     4 +-
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |     3 +
 .../arch/cortex_m0/gcc_startup_nrf51_split.s    |     3 +
 hw/bsp/nrf51dk-16kbram/src/sbrk.c               |     2 -
 hw/bsp/nrf51dk-16kbram/syscfg.yml               |     1 +
 .../src/arch/cortex_m0/gcc_startup_nrf51.s      |     3 +
 .../arch/cortex_m0/gcc_startup_nrf51_split.s    |     3 +
 hw/bsp/nrf51dk/src/hal_bsp.c                    |     4 +
 hw/bsp/nrf51dk/src/sbrk.c                       |     2 -
 hw/bsp/nrf51dk/syscfg.yml                       |     1 +
 .../src/arch/cortex_m4/gcc_startup_nrf52840.s   |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/nrf52840pdk/src/hal_bsp.c                |    86 +
 hw/bsp/nrf52840pdk/syscfg.yml                   |     1 +
 hw/bsp/nrf52dk/include/bsp/boards.h             |    19 -
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/nrf52dk/src/hal_bsp.c                    |    14 +-
 hw/bsp/nrf52dk/syscfg.yml                       |     1 +
 .../include/bsp/stm32f4xx_hal_conf.h            |     1 +
 hw/bsp/olimex_stm32-e407_devboard/pkg.yml       |     4 +-
 hw/bsp/olimex_stm32-e407_devboard/src/hal_bsp.c |    41 +-
 hw/bsp/olimex_stm32-e407_devboard/syscfg.yml    |     4 +
 hw/bsp/pic32mx470_6LP_clicker/bsp.yml           |    53 -
 hw/bsp/pic32mx470_6LP_clicker/include/bsp/bsp.h |    52 -
 .../include/bsp/bsp_sysid.h                     |    36 -
 hw/bsp/pic32mx470_6LP_clicker/pkg.yml           |    46 -
 hw/bsp/pic32mx470_6LP_clicker/src/hal_bsp.c     |    27 -
 hw/bsp/pic32mx470_6LP_clicker/src/os_bsp.c      |    85 -
 hw/bsp/pic32mx470_6LP_clicker/src/sbrk.c        |    51 -
 hw/bsp/pic32mx470_6LP_clicker/syscfg.yml        |    41 -
 hw/bsp/pic32mx470_6lp_clicker/bsp.yml           |    53 +
 hw/bsp/pic32mx470_6lp_clicker/include/bsp/bsp.h |    52 +
 .../include/bsp/bsp_sysid.h                     |    36 +
 hw/bsp/pic32mx470_6lp_clicker/pkg.yml           |    46 +
 hw/bsp/pic32mx470_6lp_clicker/src/hal_bsp.c     |    27 +
 hw/bsp/pic32mx470_6lp_clicker/src/os_bsp.c      |    85 +
 hw/bsp/pic32mx470_6lp_clicker/src/sbrk.c        |    51 +
 hw/bsp/pic32mx470_6lp_clicker/syscfg.yml        |    41 +
 hw/bsp/pic32mz2048_wi-fire/bsp.yml              |     2 +-
 hw/bsp/pic32mz2048_wi-fire/syscfg.yml           |     2 +-
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/rb-blend2/syscfg.yml                     |     1 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/rb-nano2/syscfg.yml                      |     1 +
 hw/bsp/ruuvi_tag_revb2/boot-nrf52xxaa.ld        |    25 +
 hw/bsp/ruuvi_tag_revb2/bsp.yml                  |    64 +
 hw/bsp/ruuvi_tag_revb2/include/bsp/boards.h     |    19 +
 hw/bsp/ruuvi_tag_revb2/include/bsp/bsp.h        |    73 +
 hw/bsp/ruuvi_tag_revb2/include/bsp/cmsis_nvic.h |    29 +
 hw/bsp/ruuvi_tag_revb2/nrf52dk_debug.cmd        |    22 +
 hw/bsp/ruuvi_tag_revb2/nrf52dk_debug.sh         |    46 +
 hw/bsp/ruuvi_tag_revb2/nrf52dk_download.cmd     |    22 +
 hw/bsp/ruuvi_tag_revb2/nrf52dk_download.sh      |    40 +
 hw/bsp/ruuvi_tag_revb2/nrf52dk_no_boot.ld       |   191 +
 hw/bsp/ruuvi_tag_revb2/nrf52xxaa.ld             |    25 +
 hw/bsp/ruuvi_tag_revb2/pkg.yml                  |    97 +
 hw/bsp/ruuvi_tag_revb2/split-nrf52dk.ld         |   208 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |   301 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |   166 +
 hw/bsp/ruuvi_tag_revb2/src/hal_bsp.c            |   303 +
 hw/bsp/ruuvi_tag_revb2/src/sbrk.c               |    59 +
 hw/bsp/ruuvi_tag_revb2/syscfg.yml               |    95 +
 hw/bsp/stm32f767-nucleo/pkg.yml                 |     3 +
 hw/bsp/stm32f767-nucleo/src/hal_bsp.c           |    50 +
 hw/bsp/stm32f767-nucleo/syscfg.yml              |     4 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s      |     2 +
 .../arch/cortex_m4/gcc_startup_nrf52_split.s    |     3 +
 hw/bsp/telee02/syscfg.yml                       |     1 +
 hw/bsp/usbmkw41z/src/sbrk.c                     |     2 -
 .../stm32_eth/include/stm32_eth/stm32_eth.h     |    49 +
 .../stm32_eth/include/stm32_eth/stm32_eth_cfg.h |    47 +
 hw/drivers/lwip/stm32_eth/pkg.yml               |    41 +
 hw/drivers/lwip/stm32_eth/src/stm32_eth.c       |   538 +
 .../include/stm32f4_eth/stm32f4_eth.h           |    27 -
 .../include/stm32f4_eth/stm32f4_eth_cfg.h       |    32 -
 hw/drivers/lwip/stm32f4_eth/pkg.yml             |    33 -
 hw/drivers/lwip/stm32f4_eth/src/stm32f4_eth.c   |   746 -
 hw/drivers/rtt/include/rtt/SEGGER_RTT.h         |   244 +
 hw/drivers/rtt/include/rtt/SEGGER_RTT_Conf.h    |   267 +
 hw/drivers/rtt/pkg.yml                          |    28 +
 hw/drivers/rtt/src/SEGGER_RTT.c                 |  1462 +
 hw/drivers/rtt/src/SEGGER_RTT_printf.c          |   511 +
 hw/drivers/rtt/syscfg.yml                       |    24 +
 .../sensors/bno055/include/bno055/bno055.h      |    33 -
 hw/drivers/sensors/bno055/src/bno055_priv.h     |    34 +
 hw/hal/include/hal/hal_timer.h                  |     5 +
 .../pic32mx470F512H/include/mcu/mips_bsp.h      |    24 -
 .../pic32mx470F512H/include/mcu/mips_hal.h      |    39 -
 .../pic32mx470F512H/include/mcu/pic32mx470.h    |    25 -
 hw/mcu/microchip/pic32mx470F512H/pkg.yml        |    31 -
 .../microchip/pic32mx470F512H/src/hal_os_tick.c |    36 -
 .../microchip/pic32mx470F512H/src/hal_system.c  |    35 -
 hw/mcu/microchip/pic32mx470F512H/src/hal_uart.c |   463 -
 .../pic32mx470F512H/src/hal_watchdog.c          |    39 -
 .../microchip/pic32mx470f512h/include/mcu/mcu.h |    25 +
 .../pic32mx470f512h/include/mcu/mips_bsp.h      |    24 +
 .../pic32mx470f512h/include/mcu/mips_hal.h      |    39 +
 .../pic32mx470f512h/include/mcu/p32mx470f512h.h | 17933 ++++++
 .../pic32mx470f512h/include/mcu/pic32.h         |    25 +
 .../pic32mx470f512h/include/mcu/ppic32mx.h      |  1280 +
 hw/mcu/microchip/pic32mx470f512h/pkg.yml        |    31 +
 .../microchip/pic32mx470f512h/src/hal_os_tick.c |    36 +
 .../microchip/pic32mx470f512h/src/hal_system.c  |    35 +
 hw/mcu/microchip/pic32mx470f512h/src/hal_uart.c |   463 +
 .../pic32mx470f512h/src/hal_watchdog.c          |    39 +
 .../pic32mz2048efg100/include/mcu/mcu.h         |    25 +
 .../include/mcu/p32mz2048efg100.h               | 51671 +++++++++++++++++
 .../pic32mz2048efg100/include/mcu/pic32.h       |    25 +
 .../pic32mz2048efg100/include/mcu/pic32mz2048.h |    25 -
 hw/mcu/native/pkg.yml                           |     1 -
 hw/mcu/nordic/nrf51xxx/src/hal_system.c         |    18 +
 hw/mcu/nordic/nrf51xxx/syscfg.yml               |     7 +
 hw/mcu/nordic/nrf52xxx/src/hal_flash.c          |    12 +
 hw/mcu/nordic/nrf52xxx/src/hal_system.c         |    18 +
 hw/mcu/nordic/nrf52xxx/syscfg.yml               |     7 +
 hw/mcu/stm/stm32f4xx/src/hal_flash.c            |    11 +-
 hw/mcu/stm/stm32f4xx/syscfg.yml                 |     4 +
 hw/mcu/stm/stm32f7xx/syscfg.yml                 |     4 +
 hw/sensor/include/sensor/quat.h                 |     3 +-
 hw/sensor/include/sensor/sensor.h               |    27 +-
 hw/sensor/pkg.yml                               |    10 +
 hw/sensor/src/sensor_oic.c                      |   587 +
 hw/sensor/syscfg.yml                            |     6 +
 kernel/os/include/os/arch/pic32/os/cp0defs.h    |  1215 +
 kernel/os/include/os/arch/pic32/os/os_arch.h    |    83 +
 .../os/include/os/arch/pic32/os/os_arch_defs.h  |    60 +
 kernel/os/include/os/arch/pic32mx/os/os_arch.h  |    84 -
 kernel/os/include/os/arch/pic32mz/os/os_arch.h  |    84 -
 .../os/include/os/arch/sim-armv7/os/os_arch.h   |    82 +
 kernel/os/include/os/os.h                       |     5 +-
 kernel/os/include/os/os_eventq.h                |     1 +
 kernel/os/src/arch/mips/asm/ctx.S               |    16 +-
 kernel/os/src/arch/mips/os_arch_mips.c          |     2 +-
 kernel/os/src/arch/pic32/asm/ctx.S              |   190 +
 kernel/os/src/arch/pic32/os_arch_pic32.c        |   221 +
 kernel/os/src/arch/pic32/os_fault.c             |   122 +
 kernel/os/src/arch/pic32mx/asm/ctx.S            |   163 -
 kernel/os/src/arch/pic32mx/os_arch_pic32mx.c    |   213 -
 kernel/os/src/arch/pic32mx/os_fault.c           |   122 -
 kernel/os/src/arch/pic32mz/asm/ctx.S            |   163 -
 kernel/os/src/arch/pic32mz/os_arch_pic32mz.c    |   213 -
 kernel/os/src/arch/pic32mz/os_fault.c           |   122 -
 kernel/os/src/arch/sim-armv7/os_arch_sim.c      |   457 +
 .../os/src/arch/sim-armv7/os_arch_stack_frame.s |    47 +
 kernel/os/src/arch/sim-armv7/os_fault.c         |    39 +
 kernel/os/src/os_eventq.c                       |    14 +
 kernel/os/syscfg.yml                            |     3 +
 libc/baselibc/include/string.h                  |     1 +
 libc/baselibc/src/strstr.c                      |     5 +
 libc/baselibc/src/tinyprintf.c                  |    20 +-
 net/ip/include/arch/sys_arch.h                  |   304 +-
 net/ip/include/ip/init.h                        |    32 -
 net/ip/include/lwipopts.h                       |    15 +-
 net/ip/inet_def_service/src/inet_def_service.c  |   110 +-
 net/ip/lwip_base/CHANGELOG                      |   146 +
 net/ip/lwip_base/UPGRADING                      |    16 +-
 net/ip/lwip_base/doc/NO_SYS_SampleCode.c        |    16 +-
 net/ip/lwip_base/doc/doxygen/generate.sh        |     2 +
 net/ip/lwip_base/doc/doxygen/lwip.Doxyfile      |     7 +-
 net/ip/lwip_base/doc/doxygen/main_page.h        |    75 +-
 net/ip/lwip_base/doc/mqtt_client.txt            |   162 +
 net/ip/lwip_base/doc/ppp.txt                    |     6 +-
 net/ip/lwip_base/doc/rawapi.txt                 |     8 +-
 net/ip/lwip_base/doc/sys_arch.txt               |     2 +-
 net/ip/lwip_base/include/lwip/api.h             |    31 +-
 net/ip/lwip_base/include/lwip/apps/httpd_opts.h |    30 -
 net/ip/lwip_base/include/lwip/apps/mdns.h       |    10 +-
 net/ip/lwip_base/include/lwip/apps/mdns_opts.h  |    10 +-
 net/ip/lwip_base/include/lwip/apps/mdns_priv.h  |    10 +-
 net/ip/lwip_base/include/lwip/apps/mqtt.h       |   244 +
 net/ip/lwip_base/include/lwip/apps/mqtt_opts.h  |   103 +
 net/ip/lwip_base/include/lwip/apps/netbiosns.h  |     8 -
 .../include/lwip/apps/netbiosns_opts.h          |    18 -
 net/ip/lwip_base/include/lwip/apps/snmp_opts.h  |     8 -
 net/ip/lwip_base/include/lwip/apps/snmpv3.h     |     8 -
 net/ip/lwip_base/include/lwip/apps/sntp_opts.h  |     8 -
 net/ip/lwip_base/include/lwip/apps/tftp_opts.h  |   105 +
 .../lwip_base/include/lwip/apps/tftp_server.h   |    94 +
 net/ip/lwip_base/include/lwip/arch.h            |   299 +-
 net/ip/lwip_base/include/lwip/autoip.h          |     2 +
 net/ip/lwip_base/include/lwip/debug.h           |    81 +-
 net/ip/lwip_base/include/lwip/def.h             |    95 +-
 net/ip/lwip_base/include/lwip/dhcp.h            |     2 +
 net/ip/lwip_base/include/lwip/dhcp6.h           |     8 -
 net/ip/lwip_base/include/lwip/dns.h             |    18 +-
 net/ip/lwip_base/include/lwip/err.h             |     4 +
 net/ip/lwip_base/include/lwip/errno.h           |   193 +
 net/ip/lwip_base/include/lwip/icmp.h            |     2 +-
 net/ip/lwip_base/include/lwip/icmp6.h           |    89 +-
 net/ip/lwip_base/include/lwip/igmp.h            |     6 +-
 net/ip/lwip_base/include/lwip/inet.h            |     8 +-
 net/ip/lwip_base/include/lwip/inet_chksum.h     |     8 +-
 net/ip/lwip_base/include/lwip/init.h            |     4 +-
 net/ip/lwip_base/include/lwip/ip4_addr.h        |    36 +-
 net/ip/lwip_base/include/lwip/ip6_addr.h        |    66 +-
 net/ip/lwip_base/include/lwip/ip_addr.h         |    73 +-
 net/ip/lwip_base/include/lwip/mem.h             |     3 +-
 net/ip/lwip_base/include/lwip/mld6.h            |     7 +-
 net/ip/lwip_base/include/lwip/nd6.h             |    93 +-
 net/ip/lwip_base/include/lwip/netdb.h           |     3 +-
 net/ip/lwip_base/include/lwip/netif.h           |    10 +-
 net/ip/lwip_base/include/lwip/netifapi.h        |    12 +-
 net/ip/lwip_base/include/lwip/opt.h             |   116 +-
 net/ip/lwip_base/include/lwip/pbuf.h            |    20 +-
 net/ip/lwip_base/include/lwip/priv/api_msg.h    |     3 +-
 net/ip/lwip_base/include/lwip/priv/memp_std.h   |     8 -
 net/ip/lwip_base/include/lwip/priv/nd6_priv.h   |   144 +
 net/ip/lwip_base/include/lwip/priv/tcp_priv.h   |    27 +-
 net/ip/lwip_base/include/lwip/priv/tcpip_priv.h |     4 +-
 net/ip/lwip_base/include/lwip/prot/dns.h        |    18 +
 net/ip/lwip_base/include/lwip/prot/ethernet.h   |     2 +-
 net/ip/lwip_base/include/lwip/prot/icmp6.h      |    87 +
 net/ip/lwip_base/include/lwip/prot/ip.h         |     8 -
 net/ip/lwip_base/include/lwip/prot/ip4.h        |    16 +
 net/ip/lwip_base/include/lwip/prot/ip6.h        |    27 +-
 net/ip/lwip_base/include/lwip/prot/mld6.h       |     2 +-
 net/ip/lwip_base/include/lwip/prot/nd6.h        |    24 +
 net/ip/lwip_base/include/lwip/prot/tcp.h        |    14 +-
 net/ip/lwip_base/include/lwip/raw.h             |     2 +
 net/ip/lwip_base/include/lwip/sockets.h         |     5 +-
 net/ip/lwip_base/include/lwip/stats.h           |     4 +-
 net/ip/lwip_base/include/lwip/sys.h             |    44 +-
 net/ip/lwip_base/include/lwip/tcp.h             |    12 +-
 net/ip/lwip_base/include/lwip/tcpip.h           |     2 +
 net/ip/lwip_base/include/lwip/timeouts.h        |     2 +-
 net/ip/lwip_base/include/netif/lowpan6_opts.h   |     8 -
 net/ip/lwip_base/include/netif/ppp/ccp.h        |     8 -
 net/ip/lwip_base/include/netif/ppp/chap-new.h   |     8 -
 net/ip/lwip_base/include/netif/ppp/chap_ms.h    |     8 -
 net/ip/lwip_base/include/netif/ppp/eui64.h      |    10 +-
 net/ip/lwip_base/include/netif/ppp/fsm.h        |     8 -
 net/ip/lwip_base/include/netif/ppp/ipcp.h       |     8 -
 net/ip/lwip_base/include/netif/ppp/ipv6cp.h     |     8 -
 net/ip/lwip_base/include/netif/ppp/lcp.h        |     8 -
 net/ip/lwip_base/include/netif/ppp/magic.h      |     8 -
 net/ip/lwip_base/include/netif/ppp/mppe.h       |    10 +-
 net/ip/lwip_base/include/netif/ppp/ppp.h        |    12 +-
 net/ip/lwip_base/include/netif/ppp/ppp_impl.h   |    12 +-
 net/ip/lwip_base/include/netif/ppp/ppp_opts.h   |     8 -
 net/ip/lwip_base/include/netif/ppp/pppcrypt.h   |     8 -
 net/ip/lwip_base/include/netif/ppp/pppdebug.h   |     8 -
 net/ip/lwip_base/include/netif/ppp/pppoe.h      |     8 -
 net/ip/lwip_base/include/netif/ppp/pppol2tp.h   |     8 -
 net/ip/lwip_base/include/netif/ppp/pppos.h      |     8 -
 net/ip/lwip_base/include/netif/ppp/upap.h       |     8 -
 net/ip/lwip_base/include/netif/ppp/vj.h         |     8 -
 net/ip/lwip_base/include/posix/errno.h          |    33 +
 net/ip/lwip_base/src/Filelists.mk               |    10 +-
 net/ip/lwip_base/src/api/api_lib.c              |    69 +-
 net/ip/lwip_base/src/api/api_msg.c              |   127 +-
 net/ip/lwip_base/src/api/err.c                  |    40 +
 net/ip/lwip_base/src/api/netdb.c                |    10 +-
 net/ip/lwip_base/src/api/netifapi.c             |    14 +-
 net/ip/lwip_base/src/api/sockets.c              |   204 +-
 net/ip/lwip_base/src/api/tcpip.c                |     3 +-
 net/ip/lwip_base/src/apps/httpd/fsdata.h        |     8 -
 net/ip/lwip_base/src/apps/httpd/httpd.c         |   180 +-
 net/ip/lwip_base/src/apps/httpd/httpd_structs.h |     8 -
 net/ip/lwip_base/src/apps/lwiperf/lwiperf.c     |    16 +-
 net/ip/lwip_base/src/apps/mdns/mdns.c           |   161 +-
 net/ip/lwip_base/src/apps/mqtt/mqtt.c           |  1341 +
 net/ip/lwip_base/src/apps/netbiosns/netbiosns.c |     5 +-
 net/ip/lwip_base/src/apps/snmp/snmp_asn1.c      |     8 +-
 net/ip/lwip_base/src/apps/snmp/snmp_core.c      |    84 +-
 net/ip/lwip_base/src/apps/snmp/snmp_mib2_ip.c   |    12 +-
 net/ip/lwip_base/src/apps/snmp/snmp_mib2_tcp.c  |     6 +-
 net/ip/lwip_base/src/apps/snmp/snmp_msg.c       |    11 +-
 net/ip/lwip_base/src/apps/snmp/snmp_netconn.c   |     5 +-
 net/ip/lwip_base/src/apps/snmp/snmp_raw.c       |     2 +-
 .../lwip_base/src/apps/snmp/snmp_threadsync.c   |     1 +
 net/ip/lwip_base/src/apps/snmp/snmp_traps.c     |     9 +-
 net/ip/lwip_base/src/apps/snmp/snmpv3_priv.h    |     8 -
 net/ip/lwip_base/src/apps/sntp/sntp.c           |     9 +-
 net/ip/lwip_base/src/apps/tftp/tftp_server.c    |   417 +
 net/ip/lwip_base/src/core/def.c                 |   177 +-
 net/ip/lwip_base/src/core/dns.c                 |   239 +-
 net/ip/lwip_base/src/core/inet_chksum.c         |    15 +-
 net/ip/lwip_base/src/core/init.c                |    12 +-
 net/ip/lwip_base/src/core/ipv4/autoip.c         |    16 +-
 net/ip/lwip_base/src/core/ipv4/dhcp.c           |   114 +-
 net/ip/lwip_base/src/core/ipv4/etharp.c         |    69 +-
 net/ip/lwip_base/src/core/ipv4/icmp.c           |    14 +-
 net/ip/lwip_base/src/core/ipv4/igmp.c           |    75 +-
 net/ip/lwip_base/src/core/ipv4/ip4.c            |    57 +-
 net/ip/lwip_base/src/core/ipv4/ip4_addr.c       |    10 +-
 net/ip/lwip_base/src/core/ipv4/ip4_frag.c       |    88 +-
 net/ip/lwip_base/src/core/ipv6/ethip6.c         |    42 +-
 net/ip/lwip_base/src/core/ipv6/ip6.c            |    62 +-
 net/ip/lwip_base/src/core/ipv6/ip6_addr.c       |    10 +-
 net/ip/lwip_base/src/core/ipv6/ip6_frag.c       |    49 +-
 net/ip/lwip_base/src/core/ipv6/mld6.c           |     7 +-
 net/ip/lwip_base/src/core/ipv6/nd6.c            |   355 +-
 net/ip/lwip_base/src/core/mem.c                 |     8 +-
 net/ip/lwip_base/src/core/memp.c                |    25 +-
 net/ip/lwip_base/src/core/netif.c               |   127 +-
 net/ip/lwip_base/src/core/pbuf.c                |    91 +-
 net/ip/lwip_base/src/core/raw.c                 |    51 +-
 net/ip/lwip_base/src/core/stats.c               |     6 +-
 net/ip/lwip_base/src/core/sys.c                 |    38 +
 net/ip/lwip_base/src/core/tcp.c                 |   149 +-
 net/ip/lwip_base/src/core/tcp_in.c              |    88 +-
 net/ip/lwip_base/src/core/tcp_out.c             |   195 +-
 net/ip/lwip_base/src/core/timeouts.c            |     4 +-
 net/ip/lwip_base/src/core/udp.c                 |    72 +-
 net/ip/lwip_base/src/netif/ethernet.c           |    20 +-
 net/ip/lwip_base/src/netif/lowpan6.c            |   103 +-
 net/ip/lwip_base/src/netif/ppp/auth.c           |    10 +-
 net/ip/lwip_base/src/netif/ppp/ipcp.c           |   120 +-
 net/ip/lwip_base/src/netif/ppp/ipv6cp.c         |     4 +-
 net/ip/lwip_base/src/netif/ppp/multilink.c      |     4 +-
 net/ip/lwip_base/src/netif/ppp/ppp.c            |    19 +-
 net/ip/lwip_base/src/netif/ppp/pppapi.c         |     5 +
 net/ip/lwip_base/src/netif/ppp/pppoe.c          |    19 +-
 net/ip/lwip_base/src/netif/ppp/pppol2tp.c       |     9 +-
 net/ip/lwip_base/src/netif/ppp/pppos.c          |    40 +-
 net/ip/lwip_base/src/netif/ppp/utils.c          |     4 +-
 net/ip/lwip_base/src/netif/ppp/vj.c             |    62 +-
 net/ip/lwip_base/src/netif/slipif.c             |     2 +-
 net/ip/lwip_base/test/fuzz/Makefile             |    53 +
 net/ip/lwip_base/test/fuzz/README               |    34 +
 net/ip/lwip_base/test/fuzz/config.h             |     0
 net/ip/lwip_base/test/fuzz/fuzz.c               |   136 +
 .../lwip_base/test/fuzz/inputs/arp/arp_req.bin  |   Bin 0 -> 42 bytes
 .../test/fuzz/inputs/icmp/icmp_ping.bin         |   Bin 0 -> 98 bytes
 .../fuzz/inputs/ipv6/neighbor_solicitation.bin  |   Bin 0 -> 86 bytes
 .../test/fuzz/inputs/ipv6/router_adv.bin        |   Bin 0 -> 118 bytes
 .../lwip_base/test/fuzz/inputs/tcp/tcp_syn.bin  |   Bin 0 -> 74 bytes
 .../test/fuzz/inputs/udp/udp_port_5000.bin      |   Bin 0 -> 50 bytes
 net/ip/lwip_base/test/fuzz/lwipopts.h           |    68 +
 net/ip/lwip_base/test/fuzz/output_to_pcap.sh    |    31 +
 net/ip/lwip_base/test/unit/core/test_mem.h      |     8 -
 net/ip/lwip_base/test/unit/core/test_pbuf.h     |     8 -
 net/ip/lwip_base/test/unit/dhcp/test_dhcp.c     |   113 +-
 net/ip/lwip_base/test/unit/dhcp/test_dhcp.h     |     8 -
 net/ip/lwip_base/test/unit/etharp/test_etharp.h |     8 -
 net/ip/lwip_base/test/unit/lwip_check.h         |     8 -
 net/ip/lwip_base/test/unit/lwipopts.h           |     8 -
 net/ip/lwip_base/test/unit/mdns/test_mdns.c     |    71 +-
 net/ip/lwip_base/test/unit/mdns/test_mdns.h     |     8 -
 net/ip/lwip_base/test/unit/tcp/tcp_helper.c     |    23 +-
 net/ip/lwip_base/test/unit/tcp/tcp_helper.h     |     8 -
 net/ip/lwip_base/test/unit/tcp/test_tcp.c       |    18 +-
 net/ip/lwip_base/test/unit/tcp/test_tcp.h       |     8 -
 net/ip/lwip_base/test/unit/tcp/test_tcp_oos.h   |     8 -
 net/ip/lwip_base/test/unit/udp/test_udp.h       |     8 -
 net/ip/mn_socket/include/mn_socket/mn_socket.h  |     7 +
 net/ip/mn_socket/src/mn_socket.c                |    16 +
 net/ip/mn_socket/src/mn_socket_aconv.c          |     2 +-
 net/ip/native_sockets/src/native_itf.c          |     5 +-
 net/ip/pkg.yml                                  |     7 +
 net/ip/src/ip_init.c                            |     5 +
 net/ip/src/ip_priv.h                            |     3 +
 net/ip/src/lwip_cli.c                           |   140 +
 net/ip/src/lwip_if.c                            |    17 +-
 net/ip/src/lwip_socket.c                        |   179 +-
 net/ip/syscfg.yml                               |    26 +
 .../controller/include/controller/ble_ll_conn.h |     3 +-
 net/nimble/controller/pkg.yml                   |     2 +-
 net/nimble/controller/src/ble_ll_conn.c         |     8 +-
 net/nimble/controller/src/ble_ll_conn_hci.c     |     2 +-
 net/nimble/controller/src/ble_ll_ctrl.c         |    21 +-
 net/nimble/host/pts/pts-l2cap.txt               |    75 +-
 .../host/pts/tpg/90359-20161220-172100175.tpg   |  1022 -
 .../host/pts/tpg/90359-20161220-172113981.pts   |   288 -
 .../host/pts/tpg/94654-20170317-085122560.tpg   |  1026 +
 .../host/pts/tpg/94654-20170317-085441153.pts   |   289 +
 net/nimble/host/src/ble_att.c                   |     3 +
 net/nimble/host/src/ble_att_clt.c               |   650 +-
 net/nimble/host/src/ble_att_cmd.c               |   310 +-
 net/nimble/host/src/ble_att_cmd_priv.h          |    52 +-
 net/nimble/host/src/ble_att_priv.h              |    51 +-
 net/nimble/host/src/ble_att_svr.c               |   601 +-
 net/nimble/host/src/ble_gatt_priv.h             |     4 +-
 net/nimble/host/src/ble_gattc.c                 |   184 +-
 net/nimble/host/src/ble_hs_endian_priv.h        |    65 -
 net/nimble/host/src/ble_hs_priv.h               |     1 -
 net/nimble/host/src/ble_l2cap_coc.c             |    21 +-
 net/nimble/host/src/ble_l2cap_sig.c             |    20 +-
 net/nimble/host/src/ble_l2cap_sig_cmd.c         |    22 +-
 net/nimble/host/src/ble_l2cap_sig_priv.h        |     7 +-
 net/nimble/host/src/ble_sm.c                    |    56 +-
 net/nimble/host/src/ble_sm_lgcy.c               |    19 +-
 net/nimble/host/src/ble_sm_priv.h               |     8 +-
 net/nimble/host/src/ble_sm_sc.c                 |    51 +-
 net/nimble/host/test/src/ble_att_clt_test.c     |    67 +-
 net/nimble/host/test/src/ble_gatt_disc_s_test.c |     2 +
 net/nimble/host/test/src/ble_hs_test_util.c     |   108 +
 net/nimble/host/test/src/ble_hs_test_util.h     |    13 +
 net/nimble/host/test/src/ble_l2cap_test.c       |   696 +-
 net/nimble/host/test/syscfg.yml                 |     1 +
 .../socket/include/socket/ble_hci_socket.h      |    34 +
 net/nimble/transport/socket/pkg.yml             |    38 +
 .../transport/socket/src/ble_hci_socket.c       |   802 +
 net/nimble/transport/socket/syscfg.yml          |    66 +
 net/nimble/transport/uart/src/ble_hci_uart.c    |    68 +-
 repository.yml                                  |     9 +-
 sys/console/full/include/console/console.h      |    21 +-
 sys/console/full/include/console/prompt.h       |    21 +-
 sys/console/full/pkg.yml                        |     3 +
 sys/console/full/src/cons_fmt.c                 |    80 -
 sys/console/full/src/cons_tty.c                 |   574 -
 sys/console/full/src/console.c                  |   535 +
 sys/console/full/src/console_fmt.c              |   103 +
 sys/console/full/src/console_priv.h             |    38 +
 sys/console/full/src/prompt.c                   |    57 -
 sys/console/full/src/rtt_console.c              |    96 +
 sys/console/full/src/ticks.c                    |     2 +-
 sys/console/full/src/uart_console.c             |   205 +
 sys/console/full/syscfg.yml                     |    45 +-
 sys/console/minimal/include/console/console.h   |    44 +-
 sys/console/minimal/include/console/ticks.h     |    51 -
 sys/console/minimal/pkg.yml                     |     3 +
 sys/console/minimal/src/cons_tty.c              |   253 -
 sys/console/minimal/src/console.c               |   303 +
 sys/console/minimal/src/console_priv.h          |    38 +
 sys/console/minimal/src/rtt_console.c           |    96 +
 sys/console/minimal/src/uart_console.c          |   205 +
 sys/console/minimal/syscfg.yml                  |    32 +-
 sys/console/stub/include/console/console.h      |    47 +-
 sys/reboot/src/log_reboot.c                     |     6 +-
 sys/stats/full/include/stats/stats.h            |     1 +
 time/datetime/src/datetime.c                    |    13 +-
 uncrustify.cfg                                  |  1959 +
 500 files changed, 99065 insertions(+), 10052 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/87329b51/apps/bletiny/src/main.c
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/87329b51/net/nimble/controller/include/controller/ble_ll_conn.h
----------------------------------------------------------------------
diff --cc net/nimble/controller/include/controller/ble_ll_conn.h
index 404d88a,000e308..cf5f9b1
--- a/net/nimble/controller/include/controller/ble_ll_conn.h
+++ b/net/nimble/controller/include/controller/ble_ll_conn.h
@@@ -271,7 -270,7 +271,8 @@@ struct ble_ll_conn_s
  #define CONN_F_ENCRYPTED(csm)       ((csm)->csmflags.cfbit.encrypted)
  #define CONN_F_ENC_CHANGE_SENT(csm) ((csm)->csmflags.cfbit.encrypt_chg_sent)
  #define CONN_F_LE_PING_SUPP(csm)    ((csm)->csmflags.cfbit.le_ping_supp)
+ #define CONN_F_TERMINATE_STARTED(csm) ((csm)->csmflags.cfbit.terminate_started)
 +#define CONN_F_CSA2_SUPP(csm)       ((csm)->csmflags.cfbit.csa2_supp)
  
  /* Role */
  #define CONN_IS_MASTER(csm)         (csm->conn_role == BLE_LL_CONN_ROLE_MASTER)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/87329b51/net/nimble/controller/src/ble_ll_conn.c
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/87329b51/net/nimble/controller/src/ble_ll_conn_hci.c
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/87329b51/net/nimble/controller/src/ble_ll_ctrl.c
----------------------------------------------------------------------