diff --git a/features/FEATURE_BLE/mbed_lib.json b/features/FEATURE_BLE/mbed_lib.json new file mode 100644 index 0000000000..b1aea3fa08 --- /dev/null +++ b/features/FEATURE_BLE/mbed_lib.json @@ -0,0 +1,75 @@ +{ + "name": "ble", + "config": { + "ble-feature-observer": { + "help": "Include observer BLE role support, allows listening for and processing advertising packets.", + "value": true, + "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": true, + "macro_name": "BLE_ROLE_CENTRAL" + }, + "ble-feature-security": { + "help": "Include security BLE role support, 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, depends on the security feature.", + "value": true, + "macro_name": "BLE_FEATURE_SIGNING" + }, + "ble-feature-whitelist": { + "help": "Include whitelist support, depends on the security feature.", + "value": true, + "macro_name": "BLE_FEATURE_WHITELIST" + }, + "ble-feature-privacy": { + "help": "Include privacy support, depends on the security feature.", + "value": true, + "macro_name": "BLE_FEATURE_PRIVACY" + }, + "ble-feature-phy-management": { + "help": "Include additional PHY support.", + "value": true, + "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": true, + "macro_name": "BLE_FEATURE_PERIODIC_ADVERTISING" + }, + "ble-feature-gatt-client": { + "help": "Include Gatt Client BLE role support, 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, depends on peripheral or central role.", + "value": true, + "macro_name": "BLE_FEATURE_GATT_SERVER" + } + } +} \ No newline at end of file diff --git a/targets/targets.json b/targets/targets.json index 96d45329f0..8d93ad216a 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -39,76 +39,6 @@ "default-form-factor": { "help": "Default form factor of this board taken from supported_form_factors. This must be a lowercase string such as 'arduino'", "value": null - }, - "ble-feature-observer": { - "help": "Include observer BLE role support, allows listening for and processing advertising packets.", - "value": true, - "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": true, - "macro_name": "BLE_ROLE_CENTRAL" - }, - "ble-feature-security": { - "help": "Include security BLE role support, 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, depends on the security feature.", - "value": true, - "macro_name": "BLE_FEATURE_SIGNING" - }, - "ble-feature-whitelist": { - "help": "Include whitelist support, depends on the security feature.", - "value": true, - "macro_name": "BLE_FEATURE_WHITELIST" - }, - "ble-feature-privacy": { - "help": "Include privacy support, depends on the security feature.", - "value": true, - "macro_name": "BLE_FEATURE_PRIVACY" - }, - "ble-feature-phy-management": { - "help": "Include additional PHY support.", - "value": true, - "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": true, - "macro_name": "BLE_FEATURE_PERIODIC_ADVERTISING" - }, - "ble-feature-gatt-client": { - "help": "Include Gatt Client BLE role support, 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, depends on peripheral or central role.", - "value": true, - "macro_name": "BLE_FEATURE_GATT_SERVER" } } },