Skip to content

Commit 63ffef4

Browse files
committed
squashme: Adapt to both mbed cores
1 parent 70af909 commit 63ffef4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/utility/HCICordioTransport.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
#if (MBED_VERSION > MBED_ENCODE_VERSION(6, 2, 0))
5151
#define BLE_NAMESPACE ble
5252
#else
53-
#define BLE_NAMESPACE ble::cordio::vendor
53+
#define BLE_NAMESPACE ble::vendor::cordio
5454
#endif
5555

56-
extern ble::CordioHCIDriver& ble_cordio_get_hci_driver();
56+
extern BLE_NAMESPACE::CordioHCIDriver& ble_cordio_get_hci_driver();
5757

58-
namespace ble {
58+
namespace BLE_NAMESPACE {
5959
struct CordioHCIHook {
6060
static CordioHCIDriver& getDriver() {
6161
return ble_cordio_get_hci_driver();
@@ -71,13 +71,13 @@ namespace ble {
7171
};
7272
}
7373

74-
using ble::CordioHCIHook;
74+
using BLE_NAMESPACE::CordioHCIHook;
7575

7676
#if CORDIO_ZERO_COPY_HCI
7777
extern uint8_t *SystemHeapStart;
7878
extern uint32_t SystemHeapSize;
7979

80-
void init_wsf(ble::buf_pool_desc_t& buf_pool_desc) {
80+
void init_wsf(BLE_NAMESPACE::buf_pool_desc_t& buf_pool_desc) {
8181
static bool init = false;
8282

8383
if (init) {
@@ -197,7 +197,7 @@ int HCICordioTransportClass::begin()
197197
_rxBuf.clear();
198198

199199
#if CORDIO_ZERO_COPY_HCI
200-
ble::buf_pool_desc_t bufPoolDesc = CordioHCIHook::getDriver().get_buffer_pool_description();
200+
BLE_NAMESPACE::buf_pool_desc_t bufPoolDesc = CordioHCIHook::getDriver().get_buffer_pool_description();
201201
init_wsf(bufPoolDesc);
202202
#endif
203203

0 commit comments

Comments
 (0)