[mynewt-newtmgr] 01/02: Add new package with license
This is an automated email from the ASF dual-hosted git repository. utzig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git commit 89e1b27672e584e7c0aacffeb14040780c4eb72d Author: Fabio UtzigAuthorDate: Wed Nov 22 07:46:32 2017 -0200 Add new package with license Signed-off-by: Fabio Utzig --- .rat-excludes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rat-excludes b/.rat-excludes index dac6167..f315ccd 100644 --- a/.rat-excludes +++ b/.rat-excludes @@ -89,3 +89,6 @@ currantlabs # goble - BSD license goble + +# Console progress bar - 3-clause BSD. +pb -- To stop receiving notification emails like this one, please contact "commits@mynewt.apache.org" .
[mynewt-newtmgr] branch master updated (dc237da -> 6f3b2ed)
This is an automated email from the ASF dual-hosted git repository. utzig pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git. from dc237da Merge pull request #52 from cwanda/fix_newtmgr_1_3 new 89e1b27 Add new package with license new 6f3b2ed Add license headers The 2 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 +++ Makefile| 17 + nmxact/task/task.go | 19 +++ 3 files changed, 39 insertions(+) -- To stop receiving notification emails like this one, please contact ['"commits@mynewt.apache.org"'].
[mynewt-blinky] branch 1_3_0_dev created (now d921fdd)
This is an automated email from the ASF dual-hosted git repository. utzig pushed a change to branch 1_3_0_dev in repository https://gitbox.apache.org/repos/asf/mynewt-blinky.git. at d921fdd blinky - Use console/stub instead of console/full. No new revisions were added by this update. -- To stop receiving notification emails like this one, please contact ['"commits@mynewt.apache.org"'].
[mynewt-newt] branch 1_3_0_dev created (now 6280d2e)
This is an automated email from the ASF dual-hosted git repository. utzig pushed a change to branch 1_3_0_dev in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git. at 6280d2e Merge pull request #96 from andrzej-kaczmarek/newt-size-workaround No new revisions were added by this update. -- To stop receiving notification emails like this one, please contact ['"commits@mynewt.apache.org"'].
[mynewt-newtmgr] 02/02: Add license headers
This is an automated email from the ASF dual-hosted git repository. utzig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git commit 6f3b2ed335b45baaa2ef19415fbf420b12b67508 Author: Fabio UtzigAuthorDate: Wed Nov 22 07:46:59 2017 -0200 Add license headers --- Makefile| 17 + nmxact/task/task.go | 19 +++ 2 files changed, 36 insertions(+) diff --git a/Makefile b/Makefile index d9f9565..b9abb23 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,20 @@ +# 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. + # Use for building deb package. Needed by dpkg-buildpackage. BIN=$(DESTDIR)/usr/bin TARGET=newtmgr diff --git a/nmxact/task/task.go b/nmxact/task/task.go index 80d40d6..322e7ec 100644 --- a/nmxact/task/task.go +++ b/nmxact/task/task.go @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package task import ( -- To stop receiving notification emails like this one, please contact "commits@mynewt.apache.org" .
[GitHub] utzig closed pull request #51: Fix issues found by apache-rat
utzig closed pull request #51: Fix issues found by apache-rat URL: https://github.com/apache/mynewt-newtmgr/pull/51 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/.rat-excludes b/.rat-excludes index dac6167..f315ccd 100644 --- a/.rat-excludes +++ b/.rat-excludes @@ -89,3 +89,6 @@ currantlabs # goble - BSD license goble + +# Console progress bar - 3-clause BSD. +pb diff --git a/Makefile b/Makefile index d9f9565..b9abb23 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,20 @@ +# 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. + # Use for building deb package. Needed by dpkg-buildpackage. BIN=$(DESTDIR)/usr/bin TARGET=newtmgr diff --git a/nmxact/task/task.go b/nmxact/task/task.go index 80d40d6..322e7ec 100644 --- a/nmxact/task/task.go +++ b/nmxact/task/task.go @@ -1,3 +1,22 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package task import ( This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[mynewt-newtmgr] branch 1_3_0_dev created (now 6f3b2ed)
This is an automated email from the ASF dual-hosted git repository. utzig pushed a change to branch 1_3_0_dev in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git. at 6f3b2ed Add license headers No new revisions were added by this update. -- To stop receiving notification emails like this one, please contact ['"commits@mynewt.apache.org"'].
[mynewt-core] branch master updated (72a4bbb -> 8d65a27)
This is an automated email from the ASF dual-hosted git repository. andk pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git. from 72a4bbb Merge pull request #675 from ccollins476ad/apollo2-timers add 881eae1 nimble/host: Use static buffer for GAP mempool add a0c8054 nimble/host: Change services pkg init priorities add 2885fec nimble/mesh: Fix #include add f959b1c nimble/mesh: Remove invalid typedef new 8d65a27 Merge pull request #673 from andrzej-kaczmarek/nimble-fixing The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: net/nimble/host/mesh/include/mesh/glue.h | 1 - net/nimble/host/mesh/src/beacon.c| 2 +- net/nimble/host/services/ans/pkg.yml | 2 +- net/nimble/host/services/gap/pkg.yml | 2 +- net/nimble/host/services/gatt/pkg.yml| 2 +- net/nimble/host/services/ias/pkg.yml | 2 +- net/nimble/host/services/lls/pkg.yml | 2 +- net/nimble/host/services/tps/pkg.yml | 2 +- net/nimble/host/src/ble_gap.c| 20 9 files changed, 15 insertions(+), 20 deletions(-) -- To stop receiving notification emails like this one, please contact ['"commits@mynewt.apache.org"'].
[mynewt-core] 01/01: Merge pull request #673 from andrzej-kaczmarek/nimble-fixing
This is an automated email from the ASF dual-hosted git repository. andk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git commit 8d65a27b9e147100b6bb35747de456640b130570 Merge: 72a4bbb f959b1c Author: Andrzej KaczmarekAuthorDate: Thu Nov 23 09:17:03 2017 +0100 Merge pull request #673 from andrzej-kaczmarek/nimble-fixing nimble: Various fixes net/nimble/host/mesh/include/mesh/glue.h | 1 - net/nimble/host/mesh/src/beacon.c| 2 +- net/nimble/host/services/ans/pkg.yml | 2 +- net/nimble/host/services/gap/pkg.yml | 2 +- net/nimble/host/services/gatt/pkg.yml| 2 +- net/nimble/host/services/ias/pkg.yml | 2 +- net/nimble/host/services/lls/pkg.yml | 2 +- net/nimble/host/services/tps/pkg.yml | 2 +- net/nimble/host/src/ble_gap.c| 20 9 files changed, 15 insertions(+), 20 deletions(-) -- To stop receiving notification emails like this one, please contact "commits@mynewt.apache.org" .
[mynewt-newt] 01/01: Merge pull request #96 from andrzej-kaczmarek/newt-size-workaround
This is an automated email from the ASF dual-hosted git repository. andk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git commit 6280d2e488eaa73cccfee961005f6566e5042c2b Merge: 7ae1b43 7e523bf Author: Andrzej KaczmarekAuthorDate: Thu Nov 23 09:18:37 2017 +0100 Merge pull request #96 from andrzej-kaczmarek/newt-size-workaround newt: Workaound incorrectly resolved symbols in 'newt size' newt/builder/size_report.go | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact "commits@mynewt.apache.org" .
[GitHub] andrzej-kaczmarek closed pull request #96: newt: Workaound incorrectly resolved symbols in 'newt size'
andrzej-kaczmarek closed pull request #96: newt: Workaound incorrectly resolved symbols in 'newt size' URL: https://github.com/apache/mynewt-newt/pull/96 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/newt/builder/size_report.go b/newt/builder/size_report.go index 5c9fa02..ebe8063 100644 --- a/newt/builder/size_report.go +++ b/newt/builder/size_report.go @@ -35,7 +35,7 @@ func runNmCommand(elfFilePath string) ([]byte, error) { errerror ) cmdName := "arm-none-eabi-nm" - cmdArgs := []string{elfFilePath, "-S", "-l", "--size-sort", "--radix=d"} + cmdArgs := []string{elfFilePath, "-S", "-l", "--size-sort"} if cmdOut, err = exec.Command(cmdName, cmdArgs...).Output(); err != nil { fmt.Fprintln(os.Stderr, "There was an error running nm command: ", err) @@ -61,6 +61,22 @@ func runObjdumpCommand(elfFilePath string, params string) ([]byte, error) { return cmdOut, err } +func runAddr2lineCommand(elfFilePath string, address string) ([]byte, error) { + var ( + cmdOut []byte + errerror + ) + cmdName := "arm-none-eabi-addr2line" + cmdArgs := []string{"-e", elfFilePath, address} + + cmdOut, err = exec.Command(cmdName, cmdArgs...).Output() + + /* This can fail and it's not a critical error */ + + return cmdOut, err +} + + func loadSymbolsAndPaths(elfFilePath, pathToStrip string) (map[string]string, error) { symbolsPath := make(map[string]string) @@ -80,7 +96,13 @@ func loadSymbolsAndPaths(elfFilePath, pathToStrip string) (map[string]string, var path string if len(fields) < 5 { - path = "(other)" + addr2lineOut, err := runAddr2lineCommand(elfFilePath, fields[0]) + if err != nil { + path = "(other)" + } else { + aline := strings.Split(string(addr2lineOut), "\n")[0] + path = strings.Split(aline, ":")[0] + } } else { path = strings.Split(fields[4], ":")[0] } This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] andrzej-kaczmarek closed pull request #673: nimble: Various fixes
andrzej-kaczmarek closed pull request #673: nimble: Various fixes URL: https://github.com/apache/mynewt-core/pull/673 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/net/nimble/host/mesh/include/mesh/glue.h b/net/nimble/host/mesh/include/mesh/glue.h index 18ed6b227..ec7febcb1 100644 --- a/net/nimble/host/mesh/include/mesh/glue.h +++ b/net/nimble/host/mesh/include/mesh/glue.h @@ -49,7 +49,6 @@ #define u64_t uint64_t #define s64_t int64_t #define s32_t int32_t -typedef size_t ssize_t; /** @brief Helper to declare elements of bt_data arrays * diff --git a/net/nimble/host/mesh/src/beacon.c b/net/nimble/host/mesh/src/beacon.c index 9558ae58f..ad7464a93 100644 --- a/net/nimble/host/mesh/src/beacon.c +++ b/net/nimble/host/mesh/src/beacon.c @@ -16,7 +16,7 @@ #include "host/ble_hs_log.h" #include "adv.h" -#include +#include "mesh_priv.h" #include "net.h" #include "prov.h" #include "crypto.h" diff --git a/net/nimble/host/services/ans/pkg.yml b/net/nimble/host/services/ans/pkg.yml index 8a14adfe7..345c93b68 100644 --- a/net/nimble/host/services/ans/pkg.yml +++ b/net/nimble/host/services/ans/pkg.yml @@ -31,4 +31,4 @@ pkg.deps: - net/nimble/host pkg.init: -ble_svc_ans_init: 300 +ble_svc_ans_init: 303 diff --git a/net/nimble/host/services/gap/pkg.yml b/net/nimble/host/services/gap/pkg.yml index 1b1900bd4..c68acea25 100644 --- a/net/nimble/host/services/gap/pkg.yml +++ b/net/nimble/host/services/gap/pkg.yml @@ -31,4 +31,4 @@ pkg.deps: - net/nimble/host pkg.init: -ble_svc_gap_init: 300 +ble_svc_gap_init: 301 diff --git a/net/nimble/host/services/gatt/pkg.yml b/net/nimble/host/services/gatt/pkg.yml index 278d67b09..8af1c9eee 100644 --- a/net/nimble/host/services/gatt/pkg.yml +++ b/net/nimble/host/services/gatt/pkg.yml @@ -31,4 +31,4 @@ pkg.deps: - net/nimble/host pkg.init: -ble_svc_gatt_init: 300 +ble_svc_gatt_init: 302 diff --git a/net/nimble/host/services/ias/pkg.yml b/net/nimble/host/services/ias/pkg.yml index a2c674875..0af4d5c07 100644 --- a/net/nimble/host/services/ias/pkg.yml +++ b/net/nimble/host/services/ias/pkg.yml @@ -31,4 +31,4 @@ pkg.deps: - net/nimble/host pkg.init: -ble_svc_ias_init: 300 +ble_svc_ias_init: 303 diff --git a/net/nimble/host/services/lls/pkg.yml b/net/nimble/host/services/lls/pkg.yml index 0a228847c..bab70ff0c 100644 --- a/net/nimble/host/services/lls/pkg.yml +++ b/net/nimble/host/services/lls/pkg.yml @@ -31,4 +31,4 @@ pkg.deps: - net/nimble/host pkg.init: -ble_svc_lls_init: 300 +ble_svc_lls_init: 303 diff --git a/net/nimble/host/services/tps/pkg.yml b/net/nimble/host/services/tps/pkg.yml index 59e536f0a..821d389dd 100644 --- a/net/nimble/host/services/tps/pkg.yml +++ b/net/nimble/host/services/tps/pkg.yml @@ -31,4 +31,4 @@ pkg.deps: - net/nimble/host pkg.init: -ble_svc_tps_init: 300 +ble_svc_tps_init: 303 diff --git a/net/nimble/host/src/ble_gap.c b/net/nimble/host/src/ble_gap.c index ed8fb0c13..ba58f79e7 100644 --- a/net/nimble/host/src/ble_gap.c +++ b/net/nimble/host/src/ble_gap.c @@ -22,7 +22,6 @@ #include #include "bsp/bsp.h" #include "os/os.h" -#include "mem/mem.h" #include "nimble/nimble_opt.h" #include "host/ble_hs_adv.h" #include "host/ble_hs_hci.h" @@ -172,7 +171,9 @@ struct ble_gap_snapshot { void *cb_arg; }; -static void *ble_gap_update_entry_mem; +static os_membuf_t ble_gap_update_entry_mem[ +OS_MEMPOOL_SIZE(BLE_GAP_MAX_UPDATE_ENTRIES, +sizeof (struct ble_gap_update_entry))]; static struct os_mempool ble_gap_update_entry_pool; static struct ble_gap_update_entry_list ble_gap_update_entries; @@ -4413,18 +4414,16 @@ ble_gap_init(void) { int rc; -free(ble_gap_update_entry_mem); - memset(_gap_master, 0, sizeof ble_gap_master); memset(ble_gap_slave, 0, sizeof ble_gap_slave); SLIST_INIT(_gap_update_entries); -rc = mem_malloc_mempool(_gap_update_entry_pool, -BLE_GAP_MAX_UPDATE_ENTRIES, -sizeof (struct ble_gap_update_entry), -"ble_gap_update", -_gap_update_entry_mem); +rc = os_mempool_init(_gap_update_entry_pool, + BLE_GAP_MAX_UPDATE_ENTRIES, + sizeof (struct ble_gap_update_entry), + ble_gap_update_entry_mem, + "ble_gap_update"); switch (rc) { case 0: break; @@ -4446,8 +4445,5 @@ ble_gap_init(void) return 0; err: -free(ble_gap_update_entry_mem); -ble_gap_update_entry_mem = NULL; - return rc; }
[GitHub] sjanc closed pull request #671: Extended Advertising API
sjanc closed pull request #671: Extended Advertising API URL: https://github.com/apache/mynewt-core/pull/671 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/apps/bletiny/src/cmd.c b/apps/bletiny/src/cmd.c index 4ff2f9294..ed1c45e1c 100644 --- a/apps/bletiny/src/cmd.c +++ b/apps/bletiny/src/cmd.c @@ -412,16 +412,6 @@ bletiny_help_disabled(void) } #endif -#if MYNEWT_VAL(BLE_EXT_ADV) -static struct kv_pair cmd_ext_adv_phy_opts[] = { -{ "none",0x00 }, -{ "1M", 0x01 }, -{ "2M", 0x02 }, -{ "coded", 0x03 }, -{ NULL } -}; -#endif - static void bletiny_adv_help(void) { @@ -446,11 +436,6 @@ bletiny_adv_help(void) help_cmd_long_bounds_dflt("itvl_max", 0, UINT16_MAX, 0); help_cmd_long_bounds_dflt("hd", 0, 1, 0); help_cmd_long_bounds_dflt("dur", 1, INT32_MAX, BLE_HS_FOREVER); -#if MYNEWT_VAL(BLE_EXT_ADV) -help_cmd_long_bounds_dflt("tx_power", -127, 127, 127); -help_cmd_kv_dflt("primary_phy", cmd_ext_adv_phy_opts, 0); -help_cmd_kv_dflt("secondary_phy", cmd_ext_adv_phy_opts, 0); -#endif } static int @@ -462,10 +447,6 @@ cmd_adv(int argc, char **argv) ble_addr_t *peer_addr_param = _addr; uint8_t own_addr_type; int rc; -#if MYNEWT_VAL(BLE_EXT_ADV) -int8_t tx_power; -uint8_t primary_phy, secondary_phy; -#endif if (argc > 1 && strcmp(argv[1], "help") == 0) { bletiny_adv_help(); @@ -572,43 +553,6 @@ cmd_adv(int argc, char **argv) return rc; } -#if MYNEWT_VAL(BLE_EXT_ADV) -tx_power = parse_arg_long_bounds_default("tx_power", -127, 127, 127, ); -if (rc != 0) { -console_printf("invalid 'tx_power' parameter\n"); -help_cmd_long_bounds_dflt("tx_power", -127, 127, 127); -return rc; -} - -primary_phy = parse_arg_kv_default("primary_phy", cmd_ext_adv_phy_opts, - 0, ); -if (rc != 0) { -console_printf("invalid 'primary_phy' parameter\n"); -help_cmd_kv_dflt("primary_phy", cmd_ext_adv_phy_opts, 0); -return rc; -} - -secondary_phy = parse_arg_kv_default("secondary_phy", cmd_ext_adv_phy_opts, - primary_phy, ); -if (rc != 0) { -console_printf("invalid 'secondary_phy' parameter\n"); -help_cmd_kv_dflt("secondary_phy", cmd_ext_adv_phy_opts, 0); -return rc; -} - -rc = ble_gap_adv_set_tx_power(tx_power); -if (rc != 0) { -console_printf("setting advertise TX power fail: %d\n", rc); -return rc; -} - -rc = ble_gap_adv_set_phys(primary_phy, secondary_phy); -if (rc != 0) { -console_printf("setting advertise PHYs fail: %d\n", rc); -return rc; -} -#endif - rc = bletiny_adv_start(own_addr_type, peer_addr_param, duration_ms, ); if (rc != 0) { diff --git a/apps/btshell/src/btshell.h b/apps/btshell/src/btshell.h index c636d15cc..ddbd5da53 100644 --- a/apps/btshell/src/btshell.h +++ b/apps/btshell/src/btshell.h @@ -114,6 +114,11 @@ int btshell_write_long(uint16_t conn_handle, uint16_t attr_handle, uint16_t offset, struct os_mbuf *om); int btshell_write_reliable(uint16_t conn_handle, struct ble_gatt_attr *attrs, int num_attrs); +#if MYNEWT_VAL(BLE_EXT_ADV) +int btshell_ext_adv_configure(uint8_t instance, + const struct ble_gap_ext_adv_params *params, + int8_t *selected_tx_power); +#endif int btshell_adv_start(uint8_t own_addr_type, const ble_addr_t *direct_addr, int32_t duration_ms, const struct ble_gap_adv_params *params); @@ -138,7 +143,6 @@ int btshell_ext_scan(uint8_t own_addr_type, uint16_t duration, uint16_t period, const struct ble_gap_ext_disc_params *uncoded_params, const struct ble_gap_ext_disc_params *coded_params); int btshell_scan_cancel(void); -int btshell_set_adv_data(struct ble_hs_adv_fields *adv_fields); int btshell_update_conn(uint16_t conn_handle, struct ble_gap_upd_params *params); void btshell_notify(uint16_t attr_handle); diff --git a/apps/btshell/src/cmd.c b/apps/btshell/src/cmd.c index 60820fb18..de752251f 100644 --- a/apps/btshell/src/cmd.c +++ b/apps/btshell/src/cmd.c @@ -46,6 +46,16 @@ #define BTSHELL_MODULE "btshell" +#if MYNEWT_VAL(BLE_EXT_ADV) + +#define EXT_ADV_POOL_SIZE (MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE) + \ +sizeof(struct os_mbuf) + sizeof(struct os_mbuf_pkthdr)) + +/* 1 mbuf is enough for configuring adv data */ +static os_membuf_t ext_adv_mem[OS_MEMPOOL_SIZE(1, EXT_ADV_POOL_SIZE)]; +static struct os_mempool
[mynewt-core] 01/01: Merge pull request #671 from sjanc/ext_adv_host
This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git commit 50a0295e04f7e9a88ad4e5f5f4ae6c1e3d73dfbb Merge: 8d65a27 18d4ed3 Author: Szymon JancAuthorDate: Thu Nov 23 10:30:18 2017 +0100 Merge pull request #671 from sjanc/ext_adv_host Extended Advertising API apps/bletiny/src/cmd.c | 56 -- apps/btshell/src/btshell.h |6 +- apps/btshell/src/cmd.c | 622 +++-- apps/btshell/src/main.c | 26 +- net/nimble/host/include/host/ble_gap.h | 44 +- net/nimble/host/include/host/ble_hs_adv.h |3 + net/nimble/host/src/ble_gap.c | 1063 --- net/nimble/host/src/ble_gap_priv.h |3 +- net/nimble/host/src/ble_hs_adv.c| 232 +++-- net/nimble/host/src/ble_hs_hci_cmd.c| 33 +- net/nimble/host/src/ble_hs_hci_evt.c| 46 +- net/nimble/host/src/ble_hs_hci_priv.h | 16 +- net/nimble/host/src/ble_hs_hci_util.c | 24 - net/nimble/host/test/src/ble_gap_test.c | 12 +- net/nimble/host/test/src/ble_hs_conn_test.c |6 +- net/nimble/host/test/src/ble_hs_test_util.c |2 +- net/nimble/host/test/src/ble_hs_test_util_hci.c |2 +- net/nimble/host/test/src/ble_os_test.c |6 +- net/nimble/include/nimble/hci_common.h | 16 + 19 files changed, 1649 insertions(+), 569 deletions(-) diff --cc net/nimble/host/src/ble_gap.c index ba58f79,20db133..be8f113 --- a/net/nimble/host/src/ble_gap.c +++ b/net/nimble/host/src/ble_gap.c @@@ -4417,13 -4897,17 +4898,15 @@@ ble_gap_init(void memset(_gap_master, 0, sizeof ble_gap_master); memset(ble_gap_slave, 0, sizeof ble_gap_slave); + os_mutex_init(_done_mutex); + SLIST_INIT(_gap_update_entries); -rc = mem_malloc_mempool(_gap_update_entry_pool, -BLE_GAP_MAX_UPDATE_ENTRIES, -sizeof (struct ble_gap_update_entry), -"ble_gap_update", -_gap_update_entry_mem); +rc = os_mempool_init(_gap_update_entry_pool, + BLE_GAP_MAX_UPDATE_ENTRIES, + sizeof (struct ble_gap_update_entry), + ble_gap_update_entry_mem, + "ble_gap_update"); switch (rc) { case 0: break; -- To stop receiving notification emails like this one, please contact "commits@mynewt.apache.org" .
[mynewt-newt] branch master updated (7ae1b43 -> 6280d2e)
This is an automated email from the ASF dual-hosted git repository. andk pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git. from 7ae1b43 Merge pull request #107 from ccollins476ad/pkg-name-validate add 7e523bf newt: Workaound incorrectly resolved symbols in 'newt size' new 6280d2e Merge pull request #96 from andrzej-kaczmarek/newt-size-workaround 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: newt/builder/size_report.go | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact ['"commits@mynewt.apache.org"'].
[GitHub] andrzej-kaczmarek commented on issue #96: newt: Workaound incorrectly resolved symbols in 'newt size'
andrzej-kaczmarek commented on issue #96: newt: Workaound incorrectly resolved symbols in 'newt size' URL: https://github.com/apache/mynewt-newt/pull/96#issuecomment-346553568 since this works fine and fixes the problem I'll merge this now and will take another look (as suggested in comment) later This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] cwanda opened a new pull request #341: Updated 1.2.0 install doc to simplify adding new releases
cwanda opened a new pull request #341: Updated 1.2.0 install doc to simplify adding new releases URL: https://github.com/apache/mynewt-site/pull/341 **NOTE: This PR updates the 1.2.0 docs to make it easier to update new releases. It does not have the updates needed for the 1.3.0 release.** - Removed note that brew bottles are created for el-capitan. Now we only release bottles for the latest(sierra) mac os. - Removed output of brew commands - Updated link for downloading debian packages manually from debian-mynewt to binary-releases repo. - Fixed link in previous windows releases to point to tar files instead of deb files This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services