Skip to content

Commit c1c425a

Browse files
committed
Expose softdevice configurations via new nordic-ble library definition file
1 parent ff5ca11 commit c1c425a

File tree

3 files changed

+30
-12
lines changed

3 files changed

+30
-12
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/TARGET_SOFTDEVICE_S132_FULL/mbed_lib.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@
1212
"NRF_SDH_ENABLED=1",
1313
"NRF_SDH_BLE_ENABLED=1",
1414
"PEER_MANAGER_ENABLED=1",
15-
"NRF_SDH_BLE_PERIPHERAL_LINK_COUNT=1",
16-
"NRF_SDH_BLE_CENTRAL_LINK_COUNT=3",
17-
"NRF_SDH_BLE_TOTAL_LINK_COUNT=4",
18-
"NRF_SDH_BLE_SERVICE_CHANGED=1",
1915
"NRF_SDH_BLE_GATT_MAX_MTU_SIZE=23",
20-
"NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE=0x600",
21-
"NRF_SDH_BLE_VS_UUID_COUNT=4",
2216
"NRF_SDH_BLE_OBSERVER_PRIO_LEVELS=4",
2317
"NRF_SDH_BLE_GAP_EVENT_LENGTH=3",
2418
"BLE_ADV_BLE_OBSERVER_PRIO=1",

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/TARGET_SOFTDEVICE_S140_FULL/mbed_lib.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@
1212
"NRF_SDH_ENABLED=1",
1313
"NRF_SDH_BLE_ENABLED=1",
1414
"PEER_MANAGER_ENABLED=1",
15-
"NRF_SDH_BLE_PERIPHERAL_LINK_COUNT=1",
16-
"NRF_SDH_BLE_CENTRAL_LINK_COUNT=3",
17-
"NRF_SDH_BLE_TOTAL_LINK_COUNT=4",
18-
"NRF_SDH_BLE_SERVICE_CHANGED=1",
1915
"NRF_SDH_BLE_GATT_MAX_MTU_SIZE=23",
20-
"NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE=0x600",
21-
"NRF_SDH_BLE_VS_UUID_COUNT=4",
2216
"NRF_SDH_BLE_OBSERVER_PRIO_LEVELS=4",
2317
"NRF_SDH_BLE_GAP_EVENT_LENGTH=3",
2418
"BLE_ADV_BLE_OBSERVER_PRIO=1",
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "nordic-ble",
3+
"config": {
4+
"central_link_count": {
5+
"help": "When acting as BLE central, how many peripherals can connect",
6+
"value": "3",
7+
"macro_name": "NRF_SDH_BLE_CENTRAL_LINK_COUNT"
8+
},
9+
"peripheral_link_count": {
10+
"help": "When acting as BLE peripheral, how many centrals can we conenct to",
11+
"value": "1",
12+
"macro_name": "NRF_SDH_BLE_PERIPHERAL_LINK_COUNT"
13+
},
14+
"gatt_attr_tab_size": {
15+
"help": "The size of the table used to hold gatts. Can be adjusted by trial and error",
16+
"value": "0x600",
17+
"macro_name": "NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE"
18+
},
19+
"uuid_table_max_entries": {
20+
"help": "maximum number of 128-bit UUIDs with distinct bases that we expect to be in use",
21+
"value": "4",
22+
"macro_name": "NRF_SDH_BLE_VS_UUID_COUNT"
23+
},
24+
"is_srvc_changed_charact_present": {
25+
"help": "select whether to include the Service Changed characteristic in the GATT Server",
26+
"value": "1",
27+
"macro_name": "NRF_SDH_BLE_SERVICE_CHANGED"
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)