File tree Expand file tree Collapse file tree 13 files changed +37
-60
lines changed Expand file tree Collapse file tree 13 files changed +37
-60
lines changed Original file line number Diff line number Diff line change @@ -1453,11 +1453,11 @@ class Gap {
1453
1453
#endif // !defined(DOXYGEN_ONLY)
1454
1454
} // namespace ble
1455
1455
1456
+ /* This includes the concrete class implementation, to provide a an alternative API implementation
1457
+ * disable ble-api-implementation and place your header in a path with the same structure */
1458
+ #include " ble/internal/GapImpl.h"
1456
1459
1457
- #endif // BLE_GAP_GAP_H
1460
+ /* * @deprecated Use the namespaced ble::Gap instead of the global Gap. */
1461
+ using ble::Gap;
1458
1462
1459
- #if (BLE_API_IMPLEMENTATION == 1)
1460
- #include " ble/internal/GapImpl.h"
1461
- #else
1462
- #error "please provide alternate BLE implementation"
1463
- #endif
1463
+ #endif // BLE_GAP_GAP_H
Original file line number Diff line number Diff line change @@ -716,10 +716,11 @@ 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
722
+
723
+ /* * @deprecated Use the namespaced ble::GattClient instead of the global GattClient. */
724
+ using ble::GattClient;
724
725
725
726
#endif /* ifndef MBED_GATT_CLIENT_H__ */
Original file line number Diff line number Diff line change @@ -667,10 +667,11 @@ 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
673
+
674
+ /* * @deprecated Use the namespaced ble::GattServer instead of the global GattServer. */
675
+ using ble::GattServer;
675
676
676
677
#endif /* ifndef MBED_GATT_SERVER_H__ */
Original file line number Diff line number Diff line change @@ -938,10 +938,11 @@ 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
944
+
945
+ /* * @deprecated Use the namespaced ble::SecurityManager instead of the global SecurityManager. */
946
+ using ble::SecurityManager;
946
947
947
948
#endif /* BLE_SECURITY_MANAGER_H_*/
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 @@ -1635,10 +1635,8 @@ class PalGap {
1635
1635
} // namespace ble
1636
1636
1637
1637
1638
- #if (BLE_PAL_API_IMPLEMENTATION == 1)
1638
+ /* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
1639
+ * disable Cordio and place your header in a path with the same structure */
1639
1640
#include " ble/internal/PalGapImpl.h"
1640
- #else
1641
- #error "please provide alternate BLE implementation"
1642
- #endif
1643
1641
1644
1642
#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_ */
You can’t perform that action at this time.
0 commit comments