Skip to content

Commit 6a2b6b8

Browse files
use existing macro names
1 parent 4b0296a commit 6a2b6b8

File tree

2 files changed

+25
-27
lines changed

2 files changed

+25
-27
lines changed
Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,58 @@
11
{
22
"name": "cordio",
33
"config": {
4-
"cordio-cfg-max-connections": {
4+
"max-connections": {
55
"help": "Maximum number of connections",
66
"value": 3,
7-
"macro_name": "CORDIO_CFG_MAX_CONNECTIONS"
7+
"macro_name": "DM_CONN_MAX"
88
},
9-
"cordio-cfg-max-syncs": {
9+
"max-syncs": {
1010
"help": "Maximum number of periodic advertising synchronizations",
1111
"value": 1,
12-
"macro_name": "CORDIO_CFG_MAX_SYNCS"
12+
"macro_name": "DM_SYNC_MAX"
1313
},
14-
"cordio-cfg-max-advertising-sets": {
14+
"max-advertising-sets": {
1515
"help": "Number of supported advertising sets: must be set to 1 for legacy advertising",
1616
"value": 3,
17-
"macro_name": "CORDIO_CFG_MAX_ADVERTISING_SETS"
17+
"macro_name": "DM_NUM_ADV_SETS"
1818
},
19-
"cordio-cfg-max-phys": {
19+
"max-phys": {
2020
"help": "Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for legacy scanner and initiator",
2121
"value": 3,
22-
"macro_name": "CORDIO_CFG_MAX_PHYS"
22+
"macro_name": "DM_NUM_PHYS"
2323
},
24-
"cordio-cfg-max-l2cap-channels": {
24+
"max-l2cap-channels": {
2525
"help": "Maximum number of connection oriented channels",
2626
"value": 8,
27-
"macro_name": "CORDIO_CFG_MAX_L2CAP_CHANNELS"
27+
"macro_name": "L2C_COC_CHAN_MAX"
2828
},
29-
"cordio-cfg-max-l2cap-clients": {
29+
"max-l2cap-clients": {
3030
"help": "Maximum number of connection oriented channel registered clients",
3131
"value": 4,
32-
"macro_name": "CORDIO_CFG_MAX_L2CAP_CLIENTS"
32+
"macro_name": "L2C_COC_REG_MAX"
3333
},
34-
"cordio-cfg-max-att-writes": {
34+
"max-att-writes": {
3535
"help": "Maximum number of simultaneous ATT write commands",
3636
"value": 1,
37-
"macro_name": "CORDIO_CFG_MAX_ATT_WRITES"
37+
"macro_name": "ATT_NUM_SIMUL_WRITE_CMD"
3838
},
39-
"cordio-cfg-max-att-notifications": {
39+
"max-att-notifications": {
4040
"help": "Maximum number of simultaneous ATT notifications",
4141
"value": 1,
42-
"macro_name": "CORDIO_CFG_MAX_ATT_NOTIFICATIONS"
42+
"macro_name": "ATT_NUM_SIMUL_NTF"
4343
},
44-
"cordio-cfg-max-smp-devices": {
44+
"max-smp-devices": {
4545
"help": "Max number of devices in the security database",
4646
"value": 3,
47-
"macro_name": "CORDIO_CFG_MAX_SMP_DEVICES"
47+
"macro_name": "SMP_DB_MAX_DEVICES"
4848
},
49-
"cordio-cfg-desired-att-mtu": {
49+
"desired-att-mtu": {
5050
"help": "Desired ATT_MTU, this needs to be between 23 and 517 (inclusive).",
5151
"value": 23,
52-
"macro_name": "CORDIO_CFG_DESIRED_ATT_MTU"
5352
},
54-
"cordio-cfg-max-prepared-writes": {
53+
"max-prepared-writes": {
5554
"help": "Number of queued prepare writes supported by server.",
56-
"value": 23,
57-
"macro_name": "CORDIO_CFG_MAX_PREPARED_WRITES"
55+
"value": 4,
5856
}
5957
}
6058
}

features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ l2cCfg_t *pL2cCfg = &l2cCfg;
6969
/* Configuration structure */
7070
attCfg_t attCfg =
7171
{
72-
15, /* ATT server service discovery connection idle timeout in seconds */
73-
CORDIO_CFG_DESIRED_ATT_MTU, /* desired ATT MTU */
74-
ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */
75-
CORDIO_CFG_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */
72+
15, /* ATT server service discovery connection idle timeout in seconds */
73+
MBED_CONF_CORDIO_DESIRED_ATT_MT, /* desired ATT MTU */
74+
ATT_MAX_TRANS_TIMEOUT, /* transcation timeout in seconds */
75+
MBED_CONF_CORDIO_MAX_PREPARED_WRITES /* number of queued prepare writes supported by server */
7676
};
7777

7878
/* Configuration pointer */

0 commit comments

Comments
 (0)