File tree Expand file tree Collapse file tree 13 files changed +24
-58
lines changed Expand file tree Collapse file tree 13 files changed +24
-58
lines changed Original file line number Diff line number Diff line change @@ -1473,11 +1473,9 @@ class Gap {
1473
1473
#endif // !defined(DOXYGEN_ONLY)
1474
1474
} // namespace ble
1475
1475
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 */
1477
1478
#include " ble/internal/GapImpl.h"
1478
- #else
1479
- #error "please provide alternate BLE implementation"
1480
- #endif
1481
1479
1482
1480
/* * @deprecated Use the namespaced ble::Gap instead of the global Gap. */
1483
1481
using ble::Gap;
Original file line number Diff line number Diff line change @@ -716,11 +716,9 @@ class GattClient {
716
716
#endif // !defined(DOXYGEN_ONLY)
717
717
} // namespace ble
718
718
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 */
720
721
#include " ble/internal/GattClientImpl.h"
721
- #else
722
- #error "please provide alternate BLE implementation"
723
- #endif
724
722
725
723
/* * @deprecated Use the namespaced ble::GattClient instead of the global GattClient. */
726
724
using ble::GattClient;
Original file line number Diff line number Diff line change @@ -667,11 +667,9 @@ class GattServer {
667
667
#endif // !defined(DOXYGEN_ONLY)
668
668
} // ble
669
669
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 */
671
672
#include " ble/internal/GattServerImpl.h"
672
- #else
673
- #error "please provide alternate BLE implementation"
674
- #endif
675
673
676
674
/* * @deprecated Use the namespaced ble::GattServer instead of the global GattServer. */
677
675
using ble::GattServer;
Original file line number Diff line number Diff line change @@ -938,11 +938,9 @@ class SecurityManager
938
938
#endif // !defined(DOXYGEN_ONLY)
939
939
} // ble
940
940
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 */
942
943
#include " ble/internal/SecurityManagerImpl.h"
943
- #else
944
- #error "please provide alternate BLE implementation"
945
- #endif
946
944
947
945
/* * @deprecated Use the namespaced ble::SecurityManager instead of the global SecurityManager. */
948
946
using ble::SecurityManager;
Original file line number Diff line number Diff line change @@ -257,11 +257,9 @@ class BLEInstanceBase {
257
257
*/
258
258
extern ble::BLEInstanceBase *createBLEInstance (void );
259
259
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 */
261
262
#include " ble/internal/BLEInstanceBaseImpl.h"
262
- #else
263
- #error "please provide alternate BLE implementation"
264
- #endif
265
263
266
264
/* *
267
265
* @}
Original file line number Diff line number Diff line change @@ -630,10 +630,8 @@ class PalAttClient {
630
630
} // namespace interface
631
631
} // namespace ble
632
632
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 */
634
635
#include " ble/internal/PalAttClientImpl.h"
635
- #else
636
- #error "please provide alternate BLE implementation"
637
- #endif
638
636
639
637
#endif /* BLE_PAL_ATTCLIENT_H_ */
Original file line number Diff line number Diff line change @@ -58,10 +58,8 @@ class PalEventQueue {
58
58
} // namespace interface
59
59
} // namespace ble
60
60
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 */
62
63
#include " ble/internal/PalEventQueueImpl.h"
63
- #else
64
- #error "please provide alternate BLE implementation"
65
- #endif
66
64
67
65
#endif /* BLE_PAL_EVENT_QUEUE_H_ */
Original file line number Diff line number Diff line change @@ -1644,10 +1644,8 @@ class PalGap {
1644
1644
} // namespace ble
1645
1645
1646
1646
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 */
1648
1649
#include " ble/internal/PalGapImpl.h"
1649
- #else
1650
- #error "please provide alternate BLE implementation"
1651
- #endif
1652
1650
1653
1651
#endif /* BLE_PAL_GAP_H_ */
Original file line number Diff line number Diff line change @@ -630,10 +630,8 @@ class PalGattClient {
630
630
} // namespace interface
631
631
} // namespace ble
632
632
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 */
634
635
#include " ble/internal/PalGattClientImpl.h"
635
- #else
636
- #error "please provide alternate BLE implementation"
637
- #endif
638
636
639
637
#endif /* BLE_PAL_GATT_CLIENT_H_ */
Original file line number Diff line number Diff line change @@ -73,10 +73,8 @@ struct PalGenericAccessService {
73
73
} // namespace interface
74
74
} // namespace ble
75
75
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 */
77
78
#include " ble/internal/PalGenericAccessServiceImpl.h"
78
- #else
79
- #error "please provide alternate BLE implementation"
80
- #endif
81
79
82
80
#endif /* BLE_PAL_GENERIC_ACCESS_SERVICE_H_ */
Original file line number Diff line number Diff line change @@ -1029,10 +1029,8 @@ class PalSecurityManager {
1029
1029
} /* namespace interface */
1030
1030
} /* namespace ble */
1031
1031
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 */
1033
1034
#include " ble/internal/PalSecurityManagerImpl.h"
1034
- #else
1035
- #error "please provide alternate BLE implementation"
1036
- #endif
1037
1035
1038
1036
#endif /* MBED_OS_FEATURES_FEATURE_BLE_BLE_PAL_PALSM_H_ */
Original file line number Diff line number Diff line change @@ -76,10 +76,8 @@ class PalSigningMonitor {
76
76
} // namespace interface
77
77
} // namespace ble
78
78
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 */
80
81
#include " ble/internal/PalSigningMonitorImpl.h"
81
- #else
82
- #error "please provide alternate BLE implementation"
83
- #endif
84
82
85
83
#endif /* MBED_BLE_SIGNING_EVENT_MONITOR */
Original file line number Diff line number Diff line change 2
2
"name" : " ble" ,
3
3
"config" : {
4
4
"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
- },
15
5
"ble-role-observer" : {
16
6
"help" : " Include observer BLE role support (scanning for and processing advertising packets)." ,
17
7
"value" : true ,
You can’t perform that action at this time.
0 commit comments