From 86546440d7e49d5abe4e250815cfcef30bd5f5c9 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Fri, 22 Feb 2019 11:28:28 +0000 Subject: [PATCH 1/8] put cordio cfg in mbed_lib.json --- .../targets/TARGET_CORDIO/mbed_lib.json | 60 +++++++++++++++++++ .../ble-host/sources/stack/cfg/cfg_stack.c | 6 +- .../ble-host/sources/stack/cfg/cfg_stack.h | 18 +++--- 3 files changed, 74 insertions(+), 10 deletions(-) create mode 100644 features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json b/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json new file mode 100644 index 00000000000..f5205abebf9 --- /dev/null +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json @@ -0,0 +1,60 @@ +{ + "name": "cordio", + "config": { + "cordio-cfg-max-connections": { + "help": "Maximum number of connections", + "value": 3, + "macro_name": "CORDIO_CFG_MAX_CONNECTIONS" + }, + "cordio-cfg-max-syncs": { + "help": "Maximum number of periodic advertising synchronizations", + "value": 1, + "macro_name": "CORDIO_CFG_MAX_SYNCS" + }, + "cordio-cfg-max-advertising-sets": { + "help": "Number of supported advertising sets: must be set to 1 for legacy advertising", + "value": 3, + "macro_name": "CORDIO_CFG_MAX_ADVERTISING_SETS" + }, + "cordio-cfg-max-phys": { + "help": "Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for legacy scanner and initiator", + "value": 3, + "macro_name": "CORDIO_CFG_MAX_PHYS" + }, + "cordio-cfg-max-l2cap-channels": { + "help": "Maximum number of connection oriented channels", + "value": 8, + "macro_name": "CORDIO_CFG_MAX_L2CAP_CHANNELS" + }, + "cordio-cfg-max-l2cap-clients": { + "help": "Maximum number of connection oriented channel registered clients", + "value": 4, + "macro_name": "CORDIO_CFG_MAX_L2CAP_CLIENTS" + }, + "cordio-cfg-max-att-writes": { + "help": "Maximum number of simultaneous ATT write commands", + "value": 1, + "macro_name": "CORDIO_CFG_MAX_ATT_WRITES" + }, + "cordio-cfg-max-att-notifications": { + "help": "Maximum number of simultaneous ATT notifications", + "value": 1, + "macro_name": "CORDIO_CFG_MAX_ATT_NOTIFICATIONS" + }, + "cordio-cfg-max-smp-devices": { + "help": "Max number of devices in the security database", + "value": 3, + "macro_name": "CORDIO_CFG_MAX_SMP_DEVICES" + }, + "cordio-cfg-desired-att-mtu": { + "help": "Desired ATT_MTU, this needs to be between 23 and 517 (inclusive).", + "value": 23, + "macro_name": "CORDIO_CFG_DESIRED_ATT_MTU" + }, + "cordio-cfg-max-prepared-writes": { + "help": "Number of queued prepare writes supported by server.", + "value": 23, + "macro_name": "CORDIO_CFG_MAX_PREPARED_WRITES" + } + } +} \ No newline at end of file diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c index 78a756b753c..dcd285228fd 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c @@ -62,11 +62,15 @@ l2cCfg_t *pL2cCfg = &l2cCfg; ATT **************************************************************************************************/ +#if CORDIO_CFG_DESIRED_ATT_MTU < ATT_DEFAULT_MTU || CORDIO_CFG_DESIRED_ATT_MTU > ATT_MAX_MTU +#error "CORDIO_CFG_DESIRED_ATT_MTU value is outside valid range" +#endif + /* Configuration structure */ attCfg_t attCfg = { 15, /* ATT server service discovery connection idle timeout in seconds */ - ATT_DEFAULT_MTU, /* desired ATT MTU */ + CORDIO_CFG_DESIRED_ATT_MTU, /* desired ATT MTU */ ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */ 4 /* number of queued prepare writes supported by server */ }; diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h index b06685ad467..22ff899b56e 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h @@ -76,23 +76,23 @@ extern "C" { /**@{*/ /*! \brief Maximum number of connections */ #ifndef DM_CONN_MAX -#define DM_CONN_MAX 3 +#define DM_CONN_MAX CORDIO_CFG_MAX_CONNECTIONS #endif /*! \brief Maximum number of periodic advertising synchronizations */ #ifndef DM_SYNC_MAX -#define DM_SYNC_MAX 1 +#define DM_SYNC_MAX CORDIO_CFG_MAX_SYNCS #endif /*! \brief Number of supported advertising sets: must be set to 1 for legacy advertising */ #ifndef DM_NUM_ADV_SETS -#define DM_NUM_ADV_SETS 3 +#define DM_NUM_ADV_SETS CORDIO_CFG_MAX_ADVERTISING_SETS #endif /*! \brief Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for legacy scanner and initiator */ #ifndef DM_NUM_PHYS -#define DM_NUM_PHYS 3 +#define DM_NUM_PHYS CORDIO_CFG_MAX_PHYS #endif /**@}*/ @@ -106,12 +106,12 @@ extern "C" { /**@{*/ /*! \brief Maximum number of connection oriented channels */ #ifndef L2C_COC_CHAN_MAX -#define L2C_COC_CHAN_MAX 8 +#define L2C_COC_CHAN_MAX CORDIO_CFG_MAX_L2CAP_CHANNELS #endif /*! \brief Maximum number of connection oriented channel registered clients */ #ifndef L2C_COC_REG_MAX -#define L2C_COC_REG_MAX 4 +#define L2C_COC_REG_MAX CORDIO_CFG_MAX_L2CAP_CLIENTS #endif /**@}*/ @@ -125,12 +125,12 @@ extern "C" { /**@{*/ /*! \brief Maximum number of simultaneous ATT write commands */ #ifndef ATT_NUM_SIMUL_WRITE_CMD -#define ATT_NUM_SIMUL_WRITE_CMD 1 +#define ATT_NUM_SIMUL_WRITE_CMD CORDIO_CFG_MAX_ATT_WRITES #endif /*! \brief Maximum number of simultaneous ATT notifications */ #ifndef ATT_NUM_SIMUL_NTF -#define ATT_NUM_SIMUL_NTF 1 +#define ATT_NUM_SIMUL_NTF CORDIO_CFG_MAX_ATT_NOTIFICATIONS #endif /**@}*/ @@ -144,7 +144,7 @@ extern "C" { /**@{*/ /*! Max number of devices in the database */ #ifndef SMP_DB_MAX_DEVICES -#define SMP_DB_MAX_DEVICES 3 +#define SMP_DB_MAX_DEVICES CORDIO_CFG_MAX_SMP_DEVICES #endif /**@}*/ From 4470f64581e8da3d1a95c89e8c63ad2e074d4310 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Fri, 22 Feb 2019 11:33:23 +0000 Subject: [PATCH 2/8] mention config in readme --- features/FEATURE_BLE/targets/TARGET_CORDIO/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/README.md b/features/FEATURE_BLE/targets/TARGET_CORDIO/README.md index 82a93bdf7bf..1f1c8a8bed8 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/README.md +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/README.md @@ -21,6 +21,11 @@ implementation. * `cordio_stack`: Headers and sources of the cordio stack * `mbed_os_adaptation`: Headers of the interface responsible for the bridge between BLE API and the Cordio stack. + +## Build time configuration + +Build time configuration may be controlled through options set in: +`features\FEATURE_BLE\targets\TARGET_CORDIO\mbed_lib.json` ## Documentation From 4b0296a6e182f016669f1b88db19b6acaf4b679f Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Fri, 22 Feb 2019 13:52:21 +0000 Subject: [PATCH 3/8] prepared writes options --- .../stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c index dcd285228fd..e423ccfc7b4 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c @@ -72,7 +72,7 @@ attCfg_t attCfg = 15, /* ATT server service discovery connection idle timeout in seconds */ CORDIO_CFG_DESIRED_ATT_MTU, /* desired ATT MTU */ ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */ - 4 /* number of queued prepare writes supported by server */ + CORDIO_CFG_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */ }; /* Configuration pointer */ From 6a2b6b891a8adc2f40ebab1a505466b3ba1882d3 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 25 Feb 2019 09:49:16 +0000 Subject: [PATCH 4/8] use existing macro names --- .../targets/TARGET_CORDIO/mbed_lib.json | 44 +++++++++---------- .../ble-host/sources/stack/cfg/cfg_stack.c | 8 ++-- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json b/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json index f5205abebf9..0f86b9c8afd 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json @@ -1,60 +1,58 @@ { "name": "cordio", "config": { - "cordio-cfg-max-connections": { + "max-connections": { "help": "Maximum number of connections", "value": 3, - "macro_name": "CORDIO_CFG_MAX_CONNECTIONS" + "macro_name": "DM_CONN_MAX" }, - "cordio-cfg-max-syncs": { + "max-syncs": { "help": "Maximum number of periodic advertising synchronizations", "value": 1, - "macro_name": "CORDIO_CFG_MAX_SYNCS" + "macro_name": "DM_SYNC_MAX" }, - "cordio-cfg-max-advertising-sets": { + "max-advertising-sets": { "help": "Number of supported advertising sets: must be set to 1 for legacy advertising", "value": 3, - "macro_name": "CORDIO_CFG_MAX_ADVERTISING_SETS" + "macro_name": "DM_NUM_ADV_SETS" }, - "cordio-cfg-max-phys": { + "max-phys": { "help": "Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for legacy scanner and initiator", "value": 3, - "macro_name": "CORDIO_CFG_MAX_PHYS" + "macro_name": "DM_NUM_PHYS" }, - "cordio-cfg-max-l2cap-channels": { + "max-l2cap-channels": { "help": "Maximum number of connection oriented channels", "value": 8, - "macro_name": "CORDIO_CFG_MAX_L2CAP_CHANNELS" + "macro_name": "L2C_COC_CHAN_MAX" }, - "cordio-cfg-max-l2cap-clients": { + "max-l2cap-clients": { "help": "Maximum number of connection oriented channel registered clients", "value": 4, - "macro_name": "CORDIO_CFG_MAX_L2CAP_CLIENTS" + "macro_name": "L2C_COC_REG_MAX" }, - "cordio-cfg-max-att-writes": { + "max-att-writes": { "help": "Maximum number of simultaneous ATT write commands", "value": 1, - "macro_name": "CORDIO_CFG_MAX_ATT_WRITES" + "macro_name": "ATT_NUM_SIMUL_WRITE_CMD" }, - "cordio-cfg-max-att-notifications": { + "max-att-notifications": { "help": "Maximum number of simultaneous ATT notifications", "value": 1, - "macro_name": "CORDIO_CFG_MAX_ATT_NOTIFICATIONS" + "macro_name": "ATT_NUM_SIMUL_NTF" }, - "cordio-cfg-max-smp-devices": { + "max-smp-devices": { "help": "Max number of devices in the security database", "value": 3, - "macro_name": "CORDIO_CFG_MAX_SMP_DEVICES" + "macro_name": "SMP_DB_MAX_DEVICES" }, - "cordio-cfg-desired-att-mtu": { + "desired-att-mtu": { "help": "Desired ATT_MTU, this needs to be between 23 and 517 (inclusive).", "value": 23, - "macro_name": "CORDIO_CFG_DESIRED_ATT_MTU" }, - "cordio-cfg-max-prepared-writes": { + "max-prepared-writes": { "help": "Number of queued prepare writes supported by server.", - "value": 23, - "macro_name": "CORDIO_CFG_MAX_PREPARED_WRITES" + "value": 4, } } } \ No newline at end of file diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c index e423ccfc7b4..89bfb890775 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c @@ -69,10 +69,10 @@ l2cCfg_t *pL2cCfg = &l2cCfg; /* Configuration structure */ attCfg_t attCfg = { - 15, /* ATT server service discovery connection idle timeout in seconds */ - CORDIO_CFG_DESIRED_ATT_MTU, /* desired ATT MTU */ - ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */ - CORDIO_CFG_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */ + 15, /* ATT server service discovery connection idle timeout in seconds */ + MBED_CONF_CORDIO_DESIRED_ATT_MT, /* desired ATT MTU */ + ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */ + MBED_CONF_CORDIO_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */ }; /* Configuration pointer */ From 6842c8718b1bd8d85292374c7fb5122015f7814d Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 25 Feb 2019 09:52:21 +0000 Subject: [PATCH 5/8] revert macros --- .../ble-host/sources/stack/cfg/cfg_stack.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h index 22ff899b56e..b06685ad467 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h @@ -76,23 +76,23 @@ extern "C" { /**@{*/ /*! \brief Maximum number of connections */ #ifndef DM_CONN_MAX -#define DM_CONN_MAX CORDIO_CFG_MAX_CONNECTIONS +#define DM_CONN_MAX 3 #endif /*! \brief Maximum number of periodic advertising synchronizations */ #ifndef DM_SYNC_MAX -#define DM_SYNC_MAX CORDIO_CFG_MAX_SYNCS +#define DM_SYNC_MAX 1 #endif /*! \brief Number of supported advertising sets: must be set to 1 for legacy advertising */ #ifndef DM_NUM_ADV_SETS -#define DM_NUM_ADV_SETS CORDIO_CFG_MAX_ADVERTISING_SETS +#define DM_NUM_ADV_SETS 3 #endif /*! \brief Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for legacy scanner and initiator */ #ifndef DM_NUM_PHYS -#define DM_NUM_PHYS CORDIO_CFG_MAX_PHYS +#define DM_NUM_PHYS 3 #endif /**@}*/ @@ -106,12 +106,12 @@ extern "C" { /**@{*/ /*! \brief Maximum number of connection oriented channels */ #ifndef L2C_COC_CHAN_MAX -#define L2C_COC_CHAN_MAX CORDIO_CFG_MAX_L2CAP_CHANNELS +#define L2C_COC_CHAN_MAX 8 #endif /*! \brief Maximum number of connection oriented channel registered clients */ #ifndef L2C_COC_REG_MAX -#define L2C_COC_REG_MAX CORDIO_CFG_MAX_L2CAP_CLIENTS +#define L2C_COC_REG_MAX 4 #endif /**@}*/ @@ -125,12 +125,12 @@ extern "C" { /**@{*/ /*! \brief Maximum number of simultaneous ATT write commands */ #ifndef ATT_NUM_SIMUL_WRITE_CMD -#define ATT_NUM_SIMUL_WRITE_CMD CORDIO_CFG_MAX_ATT_WRITES +#define ATT_NUM_SIMUL_WRITE_CMD 1 #endif /*! \brief Maximum number of simultaneous ATT notifications */ #ifndef ATT_NUM_SIMUL_NTF -#define ATT_NUM_SIMUL_NTF CORDIO_CFG_MAX_ATT_NOTIFICATIONS +#define ATT_NUM_SIMUL_NTF 1 #endif /**@}*/ @@ -144,7 +144,7 @@ extern "C" { /**@{*/ /*! Max number of devices in the database */ #ifndef SMP_DB_MAX_DEVICES -#define SMP_DB_MAX_DEVICES CORDIO_CFG_MAX_SMP_DEVICES +#define SMP_DB_MAX_DEVICES 3 #endif /**@}*/ From e75c5344451e674318e5848ef33c5150ce6381c0 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 25 Feb 2019 15:23:35 +0000 Subject: [PATCH 6/8] stray comma --- features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json b/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json index 0f86b9c8afd..cd868d130ab 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json @@ -48,11 +48,11 @@ }, "desired-att-mtu": { "help": "Desired ATT_MTU, this needs to be between 23 and 517 (inclusive).", - "value": 23, + "value": 23 }, "max-prepared-writes": { "help": "Number of queued prepare writes supported by server.", - "value": 4, + "value": 4 } } } \ No newline at end of file From a7297186b5f84b278a62020fc840c0ef0e589662 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 25 Feb 2019 15:30:55 +0000 Subject: [PATCH 7/8] fixed names --- .../stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c index 89bfb890775..e7002bb5310 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c @@ -62,7 +62,7 @@ l2cCfg_t *pL2cCfg = &l2cCfg; ATT **************************************************************************************************/ -#if CORDIO_CFG_DESIRED_ATT_MTU < ATT_DEFAULT_MTU || CORDIO_CFG_DESIRED_ATT_MTU > ATT_MAX_MTU +#if MBED_CONF_CORDIO_DESIRED_ATT_MTU < ATT_DEFAULT_MTU || MBED_CONF_CORDIO_DESIRED_ATT_MTU > ATT_MAX_MTU #error "CORDIO_CFG_DESIRED_ATT_MTU value is outside valid range" #endif @@ -70,7 +70,7 @@ l2cCfg_t *pL2cCfg = &l2cCfg; attCfg_t attCfg = { 15, /* ATT server service discovery connection idle timeout in seconds */ - MBED_CONF_CORDIO_DESIRED_ATT_MT, /* desired ATT MTU */ + MBED_CONF_CORDIO_DESIRED_ATT_MTU, /* desired ATT MTU */ ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */ MBED_CONF_CORDIO_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */ }; From f62217b3ddb9793df22090138d8d5fd31cc24b4d Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 25 Feb 2019 15:33:52 +0000 Subject: [PATCH 8/8] typos --- .../stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c index e7002bb5310..572405d0a9d 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c @@ -70,8 +70,8 @@ l2cCfg_t *pL2cCfg = &l2cCfg; attCfg_t attCfg = { 15, /* ATT server service discovery connection idle timeout in seconds */ - MBED_CONF_CORDIO_DESIRED_ATT_MTU, /* desired ATT MTU */ - ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */ + MBED_CONF_CORDIO_DESIRED_ATT_MTU, /* desired ATT MTU */ + ATT_MAX_TRANS_TIMEOUT, /* transaction timeout in seconds */ MBED_CONF_CORDIO_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */ };