cordio extended peripheral pass

pull/9790/head
paul-szczepanek-arm 2019-02-22 17:10:22 +00:00 committed by Vincent Coubard
parent e950da11f2
commit c3a72073be
2 changed files with 76 additions and 73 deletions

View File

@ -1,75 +1,75 @@
{
"name": "ble",
"config": {
"ble-role-observer": {
"help": "Include observer BLE role support (scanning for and processing advertising packets).",
"value": true,
"macro_name": "BLE_ROLE_OBSERVER"
},
"ble-role-broadcaster": {
"help": "Include broadcaster BLE role support (sending advertising packets).",
"value": true,
"macro_name": "BLE_ROLE_BROADCASTER"
},
"ble-role-central": {
"help": "Include central BLE role support (initiates connections), depends on observer role.",
"value": true,
"macro_name": "BLE_ROLE_CENTRAL"
},
"ble-role-peripheral": {
"help": "Include peripheral BLE role support (accepts connections), depends on broadcaster role.",
"value": true,
"macro_name": "BLE_ROLE_PERIPHERAL"
},
"ble-feature-gatt-client": {
"help": "Include Gatt Client BLE role support (requests remote operations on attributes), depends on peripheral and central role.",
"value": true,
"macro_name": "BLE_FEATURE_GATT_CLIENT"
},
"ble-feature-gatt-server": {
"help": "Include Gatt Server BLE role support (executes operations on stored attributes), depends on peripheral or central role.",
"value": true,
"macro_name": "BLE_FEATURE_GATT_SERVER"
},
"ble-feature-security": {
"help": "Include security support (key management), depends on peripheral or central role.",
"value": true,
"macro_name": "BLE_FEATURE_SECURITY"
},
"ble-feature-secure-connections": {
"help": "Include secure connections support, depends on the security feature.",
"value": true,
"macro_name": "BLE_FEATURE_SECURE_CONNECTIONS"
},
"ble-feature-signing": {
"help": "Include signing support (signed attribute writes), depends on the security feature.",
"value": true,
"macro_name": "BLE_FEATURE_SIGNING"
},
"ble-feature-whitelist": {
"help": "Include whitelist support (peer filtering), depends on the security feature.",
"value": true,
"macro_name": "BLE_FEATURE_WHITELIST"
},
"ble-feature-privacy": {
"help": "Include privacy support (random resolvable addresses), depends on the security feature.",
"value": true,
"macro_name": "BLE_FEATURE_PRIVACY"
},
"ble-feature-phy-management": {
"help": "Additional PHY support (2M and Coded)",
"value": true,
"macro_name": "BLE_FEATURE_PHY_MANAGEMENT"
},
"ble-feature-extended-advertising": {
"help": "Include extended advertising support (advertising sets, secondary channels).",
"value": true,
"macro_name": "BLE_FEATURE_EXTENDED_ADVERTISING"
},
"ble-feature-periodic-advertising": {
"help": "Include periodic advertising support, depends on the extended advertising feature.",
"value": true,
"macro_name": "BLE_FEATURE_PERIODIC_ADVERTISING"
}
}
"config": {
"ble-feature-observer": {
"help": "Include observer BLE role support, allows listening for and processing advertising packets.",
"value": false,
"macro_name": "BLE_ROLE_OBSERVER"
},
"ble-role-broadcaster": {
"help": "Include broadcaster BLE role support, allows sending advertising packets.",
"value": true,
"macro_name": "BLE_ROLE_BROADCASTER"
},
"ble-role-peripheral": {
"help": "Include peripheral BLE role support, depends on observer role.",
"value": true,
"macro_name": "BLE_ROLE_PERIPHERAL"
},
"ble-role-central": {
"help": "Include central BLE role support, depends on broadcaster role.",
"value": false,
"macro_name": "BLE_ROLE_CENTRAL"
},
"ble-feature-security": {
"help": "Include security BLE role support, depends on peripheral or central role.",
"value": false,
"macro_name": "BLE_FEATURE_SECURITY"
},
"ble-feature-secure-connections": {
"help": "Include secure connections support, depends on the security feature.",
"value": false,
"macro_name": "BLE_FEATURE_SECURE_CONNECTIONS"
},
"ble-feature-signing": {
"help": "Include signing support, depends on the security feature.",
"value": false,
"macro_name": "BLE_FEATURE_SIGNING"
},
"ble-feature-whitelist": {
"help": "Include whitelist support, depends on the security feature.",
"value": false,
"macro_name": "BLE_FEATURE_WHITELIST"
},
"ble-feature-privacy": {
"help": "Include privacy support, depends on the security feature.",
"value": false,
"macro_name": "BLE_FEATURE_PRIVACY"
},
"ble-feature-phy-management": {
"help": "Include additional PHY support.",
"value": false,
"macro_name": "BLE_FEATURE_PHY_MANAGEMENT"
},
"ble-feature-extended-advertising": {
"help": "Include extended advertising support, depends on the phy management feature.",
"value": true,
"macro_name": "BLE_FEATURE_EXTENDED_ADVERTISING"
},
"ble-feature-periodic-advertising": {
"help": "Include periodic advertising support, depends on the extended advertising feature.",
"value": false,
"macro_name": "BLE_FEATURE_PERIODIC_ADVERTISING"
},
"ble-feature-gatt-client": {
"help": "Include Gatt Client BLE role support, depends on peripheral and central role.",
"value": false,
"macro_name": "BLE_FEATURE_GATT_CLIENT"
},
"ble-feature-gatt-server": {
"help": "Include Gatt Server BLE role support, depends on peripheral or central role.",
"value": false,
"macro_name": "BLE_FEATURE_GATT_SERVER"
}
}
}

View File

@ -1526,12 +1526,14 @@ ble_error_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEve
NULL
);
}
#if BLE_FEATURE_PERIODIC_ADVERTISING
if (_active_periodic_sets.get(i)) {
_pal_gap.periodic_advertising_enable(
/* enable */ false,
(advertising_handle_t)i
);
}
#endif // BLE_FEATURE_PERIODIC_ADVERTISING
}
/* clear state of all advertising sets */
@ -2328,10 +2330,11 @@ ble_error_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEve
if (_active_sets.get(handle)) {
return BLE_ERROR_OPERATION_NOT_PERMITTED;
}
#if BLE_FEATURE_PERIODIC_ADVERTISING
if (_active_periodic_sets.get(handle)) {
return BLE_ERROR_OPERATION_NOT_PERMITTED;
}
#endif // BLE_FEATURE_PERIODIC_ADVERTISING
ble_error_t err = _pal_gap.remove_advertising_set(handle);
if (err) {