import ble modules into global namespace

pull/13365/head
Paul Szczeanek 2020-08-03 11:48:46 +01:00
parent 7e64019074
commit 9603708fc5
13 changed files with 37 additions and 60 deletions

View File

@ -1453,11 +1453,11 @@ public:
#endif // !defined(DOXYGEN_ONLY)
} // namespace ble
/* This includes the concrete class implementation, to provide a an alternative API implementation
* disable ble-api-implementation and place your header in a path with the same structure */
#include "ble/internal/GapImpl.h"
/** @deprecated Use the namespaced ble::Gap instead of the global Gap. */
using ble::Gap;
#endif // BLE_GAP_GAP_H
#if (BLE_API_IMPLEMENTATION == 1)
#include "ble/internal/GapImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif

View File

@ -716,10 +716,11 @@ public:
#endif // !defined(DOXYGEN_ONLY)
} // namespace ble
#if (BLE_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative API implementation
* disable ble-api-implementation and place your header in a path with the same structure */
#include "ble/internal/GattClientImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
/** @deprecated Use the namespaced ble::GattClient instead of the global GattClient. */
using ble::GattClient;
#endif /* ifndef MBED_GATT_CLIENT_H__ */

View File

@ -667,10 +667,11 @@ protected:
#endif // !defined(DOXYGEN_ONLY)
} // ble
#if (BLE_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative API implementation
* disable ble-api-implementation and place your header in a path with the same structure */
#include "ble/internal/GattServerImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
/** @deprecated Use the namespaced ble::GattServer instead of the global GattServer. */
using ble::GattServer;
#endif /* ifndef MBED_GATT_SERVER_H__ */

View File

@ -938,10 +938,11 @@ public:
#endif // !defined(DOXYGEN_ONLY)
} // ble
#if (BLE_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative API implementation
* disable ble-api-implementation and place your header in a path with the same structure */
#include "ble/internal/SecurityManagerImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
/** @deprecated Use the namespaced ble::SecurityManager instead of the global SecurityManager. */
using ble::SecurityManager;
#endif /*BLE_SECURITY_MANAGER_H_*/

View File

@ -257,11 +257,9 @@ public:
*/
extern ble::BLEInstanceBase *createBLEInstance(void);
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/BLEInstanceBaseImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
/**
* @}

View File

@ -630,10 +630,8 @@ public:
} // namespace interface
} // namespace ble
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalAttClientImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* BLE_PAL_ATTCLIENT_H_ */

View File

@ -58,10 +58,8 @@ public:
} // namespace interface
} // namespace ble
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalEventQueueImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* BLE_PAL_EVENT_QUEUE_H_ */

View File

@ -1635,10 +1635,8 @@ public:
} // namespace ble
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalGapImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* BLE_PAL_GAP_H_ */

View File

@ -630,10 +630,8 @@ public:
} // namespace interface
} // namespace ble
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalGattClientImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* BLE_PAL_GATT_CLIENT_H_ */

View File

@ -73,10 +73,8 @@ public:
} // namespace interface
} // namespace ble
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalGenericAccessServiceImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* BLE_PAL_GENERIC_ACCESS_SERVICE_H_ */

View File

@ -1029,10 +1029,8 @@ public:
} /* namespace interface */
} /* namespace ble */
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalSecurityManagerImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* MBED_OS_FEATURES_FEATURE_BLE_BLE_PAL_PALSM_H_ */

View File

@ -76,10 +76,8 @@ public:
} // namespace interface
} // namespace ble
#if (BLE_PAL_API_IMPLEMENTATION == 1)
/* This includes the concrete class implementation, to provide a an alternative BLE PAL implementation
* disable Cordio and place your header in a path with the same structure */
#include "ble/internal/PalSigningMonitorImpl.h"
#else
#error "please provide alternate BLE implementation"
#endif
#endif /* MBED_BLE_SIGNING_EVENT_MONITOR */

View File

@ -2,16 +2,6 @@
"name": "ble",
"config": {
"present": 1,
"ble-api-implementation": {
"help": "What BLE user API implementation is used. Available options: 1 (Mbed). You may add more. See headers in include/ble/.",
"value": 1,
"macro_name": "BLE_API_IMPLEMENTATION"
},
"ble-pal-api-implementation": {
"help": "What Pal API implementation is used. Available options: 1 (Cordio). You may add more. See headers in include/ble/internal/Pal*.",
"value": 1,
"macro_name": "BLE_PAL_API_IMPLEMENTATION"
},
"ble-role-observer": {
"help": "Include observer BLE role support (scanning for and processing advertising packets).",
"value": true,