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/12/02 02:35:10 UTC
incubator-mynewt-core git commit: BLE Host - rename
BLE_ATT_MAX_PREP_ENTRIES
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 198143989 -> e679552c1
BLE Host - rename BLE_ATT_MAX_PREP_ENTRIES
Rename BLE_ATT_MAX_PREP_ENTRIES to BLE_ATT_SVR_MAX_PREP_ENTRIES. The
new name is consistent with the other settings.
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/e679552c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e679552c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e679552c
Branch: refs/heads/develop
Commit: e679552c15d00b8164bccb408e207d2b6c8f55e6
Parents: 1981439
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Dec 1 18:32:20 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Dec 1 18:32:20 2016 -0800
----------------------------------------------------------------------
net/nimble/host/src/ble_att_svr.c | 6 +++---
net/nimble/host/syscfg.yml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e679552c/net/nimble/host/src/ble_att_svr.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_att_svr.c b/net/nimble/host/src/ble_att_svr.c
index 25aa341..3e5f277 100644
--- a/net/nimble/host/src/ble_att_svr.c
+++ b/net/nimble/host/src/ble_att_svr.c
@@ -34,7 +34,7 @@ static void *ble_att_svr_entry_mem;
static struct os_mempool ble_att_svr_entry_pool;
static os_membuf_t ble_att_svr_prep_entry_mem[
- OS_MEMPOOL_SIZE(MYNEWT_VAL(BLE_ATT_MAX_PREP_ENTRIES),
+ OS_MEMPOOL_SIZE(MYNEWT_VAL(BLE_ATT_SVR_MAX_PREP_ENTRIES),
sizeof (struct ble_att_prep_entry))
];
@@ -2781,9 +2781,9 @@ ble_att_svr_init(void)
{
int rc;
- if (MYNEWT_VAL(BLE_ATT_MAX_PREP_ENTRIES) > 0) {
+ if (MYNEWT_VAL(BLE_ATT_SVR_MAX_PREP_ENTRIES) > 0) {
rc = os_mempool_init(&ble_att_svr_prep_entry_pool,
- MYNEWT_VAL(BLE_ATT_MAX_PREP_ENTRIES),
+ MYNEWT_VAL(BLE_ATT_SVR_MAX_PREP_ENTRIES),
sizeof (struct ble_att_prep_entry),
ble_att_svr_prep_entry_mem,
"ble_att_svr_prep_entry_pool");
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e679552c/net/nimble/host/syscfg.yml
----------------------------------------------------------------------
diff --git a/net/nimble/host/syscfg.yml b/net/nimble/host/syscfg.yml
index 361b4b5..6b4565c 100644
--- a/net/nimble/host/syscfg.yml
+++ b/net/nimble/host/syscfg.yml
@@ -202,7 +202,7 @@ syscfg.defs:
value: 1
# ATT options.
- BLE_ATT_MAX_PREP_ENTRIES:
+ BLE_ATT_SVR_MAX_PREP_ENTRIES:
description: >
A GATT server uses these when a peer performs a "write long
characteristic values" or "write long characteristic descriptors"