Skip to content

Commit dac86ea

Browse files
remove config for implementations
1 parent cb9eed5 commit dac86ea

File tree

13 files changed

+24
-58
lines changed

13 files changed

+24
-58
lines changed

connectivity/FEATURE_BLE/include/ble/Gap.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,11 +1473,9 @@ class Gap {
14731473
#endif // !defined(DOXYGEN_ONLY)
14741474
} // namespace ble
14751475

1476-
#if (BLE_API_IMPLEMENTATION == 1)
1476+
/* This includes the concrete class implementation, to provide a an alternative API implementation
1477+
* disable ble-api-implementation and place your header in a path with the same structure */
14771478
#include "ble/internal/GapImpl.h"
1478-
#else
1479-
#error "please provide alternate BLE implementation"
1480-
#endif
14811479

14821480
/** @deprecated Use the namespaced ble::Gap instead of the global Gap. */
14831481
using ble::Gap;

connectivity/FEATURE_BLE/include/ble/GattClient.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,9 @@ class GattClient {
716716
#endif // !defined(DOXYGEN_ONLY)
717717
} // namespace ble
718718

719-
#if (BLE_API_IMPLEMENTATION == 1)
719+
/* This includes the concrete class implementation, to provide a an alternative API implementation
720+
* disable ble-api-implementation and place your header in a path with the same structure */
720721
#include "ble/internal/GattClientImpl.h"
721-
#else
722-
#error "please provide alternate BLE implementation"
723-
#endif
724722

725723
/** @deprecated Use the namespaced ble::GattClient instead of the global GattClient. */
726724
using ble::GattClient;

connectivity/FEATURE_BLE/include/ble/GattServer.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,11 +667,9 @@ class GattServer {
667667
#endif // !defined(DOXYGEN_ONLY)
668668
} // ble
669669

670-
#if (BLE_API_IMPLEMENTATION == 1)
670+
/* This includes the concrete class implementation, to provide a an alternative API implementation
671+
* disable ble-api-implementation and place your header in a path with the same structure */
671672
#include "ble/internal/GattServerImpl.h"
672-
#else
673-
#error "please provide alternate BLE implementation"
674-
#endif
675673

676674
/** @deprecated Use the namespaced ble::GattServer instead of the global GattServer. */
677675
using ble::GattServer;

connectivity/FEATURE_BLE/include/ble/SecurityManager.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -938,11 +938,9 @@ class SecurityManager
938938
#endif // !defined(DOXYGEN_ONLY)
939939
} // ble
940940

941-
#if (BLE_API_IMPLEMENTATION == 1)
941+
/* This includes the concrete class implementation, to provide a an alternative API implementation
942+
* disable ble-api-implementation and place your header in a path with the same structure */
942943
#include "ble/internal/SecurityManagerImpl.h"
943-
#else
944-
#error "please provide alternate BLE implementation"
945-
#endif
946944

947945
/** @deprecated Use the namespaced ble::SecurityManager instead of the global SecurityManager. */
948946
using ble::SecurityManager;

connectivity/FEATURE_BLE/include/ble/internal/BLEInstanceBase.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ class BLEInstanceBase {
257257
*/
258258
extern ble::BLEInstanceBase *createBLEInstance(void);
259259

260-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
260+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
261+
* disable Cordio and place your header in a path with the same structure */
261262
#include "ble/internal/BLEInstanceBaseImpl.h"
262-
#else
263-
#error "please provide alternate BLE implementation"
264-
#endif
265263

266264
/**
267265
* @}

connectivity/FEATURE_BLE/include/ble/internal/PalAttClient.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,8 @@ class PalAttClient {
630630
} // namespace interface
631631
} // namespace ble
632632

633-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
633+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
634+
* disable Cordio and place your header in a path with the same structure */
634635
#include "ble/internal/PalAttClientImpl.h"
635-
#else
636-
#error "please provide alternate BLE implementation"
637-
#endif
638636

639637
#endif /* BLE_PAL_ATTCLIENT_H_ */

connectivity/FEATURE_BLE/include/ble/internal/PalEventQueue.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ class PalEventQueue {
5858
} // namespace interface
5959
} // namespace ble
6060

61-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
61+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
62+
* disable Cordio and place your header in a path with the same structure */
6263
#include "ble/internal/PalEventQueueImpl.h"
63-
#else
64-
#error "please provide alternate BLE implementation"
65-
#endif
6664

6765
#endif /* BLE_PAL_EVENT_QUEUE_H_ */

connectivity/FEATURE_BLE/include/ble/internal/PalGap.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,10 +1644,8 @@ class PalGap {
16441644
} // namespace ble
16451645

16461646

1647-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
1647+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
1648+
* disable Cordio and place your header in a path with the same structure */
16481649
#include "ble/internal/PalGapImpl.h"
1649-
#else
1650-
#error "please provide alternate BLE implementation"
1651-
#endif
16521650

16531651
#endif /* BLE_PAL_GAP_H_ */

connectivity/FEATURE_BLE/include/ble/internal/PalGattClient.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,8 @@ class PalGattClient {
630630
} // namespace interface
631631
} // namespace ble
632632

633-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
633+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
634+
* disable Cordio and place your header in a path with the same structure */
634635
#include "ble/internal/PalGattClientImpl.h"
635-
#else
636-
#error "please provide alternate BLE implementation"
637-
#endif
638636

639637
#endif /* BLE_PAL_GATT_CLIENT_H_ */

connectivity/FEATURE_BLE/include/ble/internal/PalGenericAccessService.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ struct PalGenericAccessService {
7373
} // namespace interface
7474
} // namespace ble
7575

76-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
76+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
77+
* disable Cordio and place your header in a path with the same structure */
7778
#include "ble/internal/PalGenericAccessServiceImpl.h"
78-
#else
79-
#error "please provide alternate BLE implementation"
80-
#endif
8179

8280
#endif /* BLE_PAL_GENERIC_ACCESS_SERVICE_H_ */

connectivity/FEATURE_BLE/include/ble/internal/PalSecurityManager.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,10 +1029,8 @@ class PalSecurityManager {
10291029
} /* namespace interface */
10301030
} /* namespace ble */
10311031

1032-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
1032+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
1033+
* disable Cordio and place your header in a path with the same structure */
10331034
#include "ble/internal/PalSecurityManagerImpl.h"
1034-
#else
1035-
#error "please provide alternate BLE implementation"
1036-
#endif
10371035

10381036
#endif /* MBED_OS_FEATURES_FEATURE_BLE_BLE_PAL_PALSM_H_ */

connectivity/FEATURE_BLE/include/ble/internal/PalSigningMonitor.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ class PalSigningMonitor {
7676
} // namespace interface
7777
} // namespace ble
7878

79-
#if (BLE_PAL_API_IMPLEMENTATION == 1)
79+
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
80+
* disable Cordio and place your header in a path with the same structure */
8081
#include "ble/internal/PalSigningMonitorImpl.h"
81-
#else
82-
#error "please provide alternate BLE implementation"
83-
#endif
8482

8583
#endif /* MBED_BLE_SIGNING_EVENT_MONITOR */

connectivity/FEATURE_BLE/mbed_lib.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
"name": "ble",
33
"config": {
44
"present": 1,
5-
"ble-api-implementation": {
6-
"help": "What BLE user API implementation is used. Available options: 1 (Mbed). You may add more. See headers in include/ble/.",
7-
"value": 1,
8-
"macro_name": "BLE_API_IMPLEMENTATION"
9-
},
10-
"ble-pal-api-implementation": {
11-
"help": "What Pal API implementation is used. Available options: 1 (Cordio). You may add more. See headers in include/ble/internal/Pal*.",
12-
"value": 1,
13-
"macro_name": "BLE_PAL_API_IMPLEMENTATION"
14-
},
155
"ble-role-observer": {
166
"help": "Include observer BLE role support (scanning for and processing advertising packets).",
177
"value": true,

0 commit comments

Comments
 (0)