Expose softdevice configurations via new nordic-ble library definition file

pull/6860/head
Andrew Leech 2018-05-14 16:29:24 +10:00
parent ff5ca11253
commit c1c425af08
3 changed files with 30 additions and 12 deletions

View File

@ -12,13 +12,7 @@
"NRF_SDH_ENABLED=1",
"NRF_SDH_BLE_ENABLED=1",
"PEER_MANAGER_ENABLED=1",
"NRF_SDH_BLE_PERIPHERAL_LINK_COUNT=1",
"NRF_SDH_BLE_CENTRAL_LINK_COUNT=3",
"NRF_SDH_BLE_TOTAL_LINK_COUNT=4",
"NRF_SDH_BLE_SERVICE_CHANGED=1",
"NRF_SDH_BLE_GATT_MAX_MTU_SIZE=23",
"NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE=0x600",
"NRF_SDH_BLE_VS_UUID_COUNT=4",
"NRF_SDH_BLE_OBSERVER_PRIO_LEVELS=4",
"NRF_SDH_BLE_GAP_EVENT_LENGTH=3",
"BLE_ADV_BLE_OBSERVER_PRIO=1",

View File

@ -12,13 +12,7 @@
"NRF_SDH_ENABLED=1",
"NRF_SDH_BLE_ENABLED=1",
"PEER_MANAGER_ENABLED=1",
"NRF_SDH_BLE_PERIPHERAL_LINK_COUNT=1",
"NRF_SDH_BLE_CENTRAL_LINK_COUNT=3",
"NRF_SDH_BLE_TOTAL_LINK_COUNT=4",
"NRF_SDH_BLE_SERVICE_CHANGED=1",
"NRF_SDH_BLE_GATT_MAX_MTU_SIZE=23",
"NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE=0x600",
"NRF_SDH_BLE_VS_UUID_COUNT=4",
"NRF_SDH_BLE_OBSERVER_PRIO_LEVELS=4",
"NRF_SDH_BLE_GAP_EVENT_LENGTH=3",
"BLE_ADV_BLE_OBSERVER_PRIO=1",

View File

@ -0,0 +1,30 @@
{
"name": "nordic-ble",
"config": {
"central_link_count": {
"help": "When acting as BLE central, how many peripherals can connect",
"value": "3",
"macro_name": "NRF_SDH_BLE_CENTRAL_LINK_COUNT"
},
"peripheral_link_count": {
"help": "When acting as BLE peripheral, how many centrals can we conenct to",
"value": "1",
"macro_name": "NRF_SDH_BLE_PERIPHERAL_LINK_COUNT"
},
"gatt_attr_tab_size": {
"help": "The size of the table used to hold gatts. Can be adjusted by trial and error",
"value": "0x600",
"macro_name": "NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE"
},
"uuid_table_max_entries": {
"help": "maximum number of 128-bit UUIDs with distinct bases that we expect to be in use",
"value": "4",
"macro_name": "NRF_SDH_BLE_VS_UUID_COUNT"
},
"is_srvc_changed_charact_present": {
"help": "select whether to include the Service Changed characteristic in the GATT Server",
"value": "1",
"macro_name": "NRF_SDH_BLE_SERVICE_CHANGED"
}
}
}