|
19 | 19 | #ifndef MBED_BLE_ROLES_H__
|
20 | 20 | #define MBED_BLE_ROLES_H__
|
21 | 21 |
|
| 22 | +/* we provide default values if no configuration is present (e.g. in unittests) */ |
| 23 | +#if !defined(BLE_ROLE_OBSERVER) |
| 24 | +#define BLE_ROLE_OBSERVER 1 |
| 25 | +#endif |
| 26 | +#if !defined(BLE_ROLE_BROADCASTER) |
| 27 | +#define BLE_ROLE_BROADCASTER 1 |
| 28 | +#endif |
| 29 | +#if !defined(BLE_ROLE_CENTRAL) |
| 30 | +#define BLE_ROLE_CENTRAL 1 |
| 31 | +#endif |
| 32 | +#if !defined(BLE_ROLE_PERIPHERAL) |
| 33 | +#define BLE_ROLE_PERIPHERAL 1 |
| 34 | +#endif |
| 35 | +#if !defined(BLE_FEATURE_GATT_CLIENT) |
| 36 | +#define BLE_FEATURE_GATT_CLIENT 1 |
| 37 | +#endif |
| 38 | +#if !defined(BLE_FEATURE_GATT_SERVER) |
| 39 | +#define BLE_FEATURE_GATT_SERVER 1 |
| 40 | +#endif |
| 41 | +#if !defined(BLE_FEATURE_SECURITY) |
| 42 | +#define BLE_FEATURE_SECURITY 1 |
| 43 | +#endif |
| 44 | +#if !defined(BLE_FEATURE_SECURE_CONNECTIONS) |
| 45 | +#define BLE_FEATURE_SECURE_CONNECTIONS 1 |
| 46 | +#endif |
| 47 | +#if !defined(BLE_FEATURE_SIGNING) |
| 48 | +#define BLE_FEATURE_SIGNING 1 |
| 49 | +#endif |
| 50 | +#if !defined(BLE_FEATURE_WHITELIST) |
| 51 | +#define BLE_FEATURE_WHITELIST 1 |
| 52 | +#endif |
| 53 | +#if !defined(BLE_FEATURE_PRIVACY) |
| 54 | +#define BLE_FEATURE_PRIVACY 1 |
| 55 | +#endif |
| 56 | +#if !defined(BLE_FEATURE_PHY_MANAGEMENT) |
| 57 | +#define BLE_FEATURE_PHY_MANAGEMENT 1 |
| 58 | +#endif |
| 59 | +#if !defined(BLE_FEATURE_EXTENDED_ADVERTISING) |
| 60 | +#define BLE_FEATURE_EXTENDED_ADVERTISING 1 |
| 61 | +#endif |
| 62 | +#if !defined(BLE_FEATURE_PERIODIC_ADVERTISING) |
| 63 | +#define BLE_FEATURE_PERIODIC_ADVERTISING 1 |
| 64 | +#endif |
| 65 | + |
22 | 66 | #if !(BLE_ROLE_OBSERVER) && !(BLE_ROLE_BROADCASTER)
|
23 | 67 | #error "BLE requires at least one role 'BROADCASTER' or 'OBSERVER' to be enabled"
|
24 | 68 | #endif
|
|
0 commit comments