You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/02/09 22:09:04 UTC
[1/3] incubator-mynewt-larva git commit: Increase ble_hs stack size
to allow for logging.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master edb635795 -> 3485a6a05
Increase ble_hs stack size to allow for logging.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/c50e8b8d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/c50e8b8d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/c50e8b8d
Branch: refs/heads/master
Commit: c50e8b8d2fe3dc556f95546270e63303ad055c96
Parents: edb6357
Author: Christopher Collins <cc...@gmail.com>
Authored: Tue Feb 9 13:05:38 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Tue Feb 9 13:05:38 2016 -0800
----------------------------------------------------------------------
net/nimble/host/src/ble_hs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/c50e8b8d/net/nimble/host/src/ble_hs.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_hs.c b/net/nimble/host/src/ble_hs.c
index 15f2e07..ad6b57f 100644
--- a/net/nimble/host/src/ble_hs.c
+++ b/net/nimble/host/src/ble_hs.c
@@ -39,7 +39,7 @@
#ifdef ARCH_sim
#define BLE_HS_STACK_SIZE (1024)
#else
-#define BLE_HS_STACK_SIZE (176)
+#define BLE_HS_STACK_SIZE (240)
#endif
static struct log_handler ble_hs_log_console_handler;
[3/3] incubator-mynewt-larva git commit: Reduce nimble ll RAM usage
for low-memory devices.
Posted by cc...@apache.org.
Reduce nimble ll RAM usage for low-memory devices.
Specifically:
* Reduce default max connections to 1 (from 4).
* Reduce ble_ll stack size to 64 words (from 256 words).
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/3485a6a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/3485a6a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/3485a6a0
Branch: refs/heads/master
Commit: 3485a6a051a12e72b229bae0fb662e44cd0f5ea9
Parents: c4ff442
Author: Christopher Collins <cc...@gmail.com>
Authored: Tue Feb 9 13:06:56 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Tue Feb 9 13:06:56 2016 -0800
----------------------------------------------------------------------
net/nimble/controller/src/ble_ll.c | 2 +-
net/nimble/controller/src/ble_ll_conn.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/3485a6a0/net/nimble/controller/src/ble_ll.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll.c b/net/nimble/controller/src/ble_ll.c
index f38b6ae..687e79d 100644
--- a/net/nimble/controller/src/ble_ll.c
+++ b/net/nimble/controller/src/ble_ll.c
@@ -66,7 +66,7 @@ struct ble_ll_stats g_ble_ll_stats;
/* The BLE LL task data structure */
#define BLE_LL_TASK_PRI (OS_TASK_PRI_HIGHEST)
-#define BLE_LL_STACK_SIZE (256)
+#define BLE_LL_STACK_SIZE (64)
struct os_task g_ble_ll_task;
os_stack_t g_ble_ll_stack[BLE_LL_STACK_SIZE];
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/3485a6a0/net/nimble/controller/src/ble_ll_conn.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_conn.c b/net/nimble/controller/src/ble_ll_conn.c
index ccc96db..978c066 100644
--- a/net/nimble/controller/src/ble_ll_conn.c
+++ b/net/nimble/controller/src/ble_ll_conn.c
@@ -98,7 +98,7 @@ extern int ble_hs_rx_data(struct os_mbuf *om);
#define BLE_LL_CFG_CONN_TX_WIN_SIZE (1)
#define BLE_LL_CFG_CONN_TX_WIN_OFF (0)
#define BLE_LL_CFG_CONN_MASTER_SCA (BLE_MASTER_SCA_51_75_PPM << 5)
-#define BLE_LL_CFG_CONN_MAX_CONNS (4)
+#define BLE_LL_CFG_CONN_MAX_CONNS (1)
#define BLE_LL_CFG_CONN_OUR_SCA (60) /* in ppm */
#define BLE_LL_CFG_CONN_INIT_SLOTS (4)
[2/3] incubator-mynewt-larva git commit: Increase bletiny stack size
to allow for logging.
Posted by cc...@apache.org.
Increase bletiny stack size to allow for logging.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/c4ff4428
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/c4ff4428
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/c4ff4428
Branch: refs/heads/master
Commit: c4ff4428490978ccf1a14037577eade1d937fdc6
Parents: c50e8b8
Author: Christopher Collins <cc...@gmail.com>
Authored: Tue Feb 9 13:06:21 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Tue Feb 9 13:06:21 2016 -0800
----------------------------------------------------------------------
project/bletiny/src/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/c4ff4428/project/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/project/bletiny/src/main.c b/project/bletiny/src/main.c
index 1a8ad4d..2a7f371 100755
--- a/project/bletiny/src/main.c
+++ b/project/bletiny/src/main.c
@@ -47,8 +47,8 @@
#define HOST_TASK_PRIO (1)
#define SHELL_TASK_PRIO (3)
-#define SHELL_MAX_INPUT_LEN (256)
-#define SHELL_TASK_STACK_SIZE (OS_STACK_ALIGN(96))
+#define SHELL_MAX_INPUT_LEN (128)
+#define SHELL_TASK_STACK_SIZE (OS_STACK_ALIGN(160))
static bssnz_t os_stack_t shell_stack[SHELL_TASK_STACK_SIZE];
static struct os_mutex bletiny_mutex;
@@ -80,7 +80,7 @@ struct os_mbuf_pool default_mbuf_pool;
struct os_mempool default_mbuf_mpool;
/* BLETINY variables */
-#define BLETINY_STACK_SIZE (OS_STACK_ALIGN(128))
+#define BLETINY_STACK_SIZE (OS_STACK_ALIGN(160))
#define BLETINY_TASK_PRIO (HOST_TASK_PRIO + 1)
#define BLETINY_MAX_SVCS 1