|
47 | 47 |
|
48 | 48 | #include "HCICordioTransport.h"
|
49 | 49 |
|
50 |
| -extern ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver(); |
| 50 | +extern ble::CordioHCIDriver& ble_cordio_get_hci_driver(); |
51 | 51 |
|
52 | 52 | namespace ble {
|
53 |
| - namespace vendor { |
54 |
| - namespace cordio { |
55 |
| - struct CordioHCIHook { |
56 |
| - static CordioHCIDriver& getDriver() { |
57 |
| - return ble_cordio_get_hci_driver(); |
58 |
| - } |
59 |
| - |
60 |
| - static CordioHCITransportDriver& getTransportDriver() { |
61 |
| - return getDriver()._transport_driver; |
62 |
| - } |
63 |
| - |
64 |
| - static void setDataReceivedHandler(void (*handler)(uint8_t*, uint8_t)) { |
65 |
| - getTransportDriver().set_data_received_handler(handler); |
66 |
| - } |
67 |
| - }; |
| 53 | + struct CordioHCIHook { |
| 54 | + static CordioHCIDriver& getDriver() { |
| 55 | + return ble_cordio_get_hci_driver(); |
68 | 56 | }
|
69 |
| - } |
| 57 | + |
| 58 | + static CordioHCITransportDriver& getTransportDriver() { |
| 59 | + return getDriver()._transport_driver; |
| 60 | + } |
| 61 | + |
| 62 | + static void setDataReceivedHandler(void (*handler)(uint8_t*, uint8_t)) { |
| 63 | + getTransportDriver().set_data_received_handler(handler); |
| 64 | + } |
| 65 | + }; |
70 | 66 | }
|
71 | 67 |
|
72 |
| -using ble::vendor::cordio::CordioHCIHook; |
| 68 | +using ble::CordioHCIHook; |
73 | 69 |
|
74 | 70 | #if CORDIO_ZERO_COPY_HCI
|
75 | 71 | extern uint8_t *SystemHeapStart;
|
76 | 72 | extern uint32_t SystemHeapSize;
|
77 | 73 |
|
78 |
| -void init_wsf(ble::vendor::cordio::buf_pool_desc_t& buf_pool_desc) { |
| 74 | +void init_wsf(ble::buf_pool_desc_t& buf_pool_desc) { |
79 | 75 | static bool init = false;
|
80 | 76 |
|
81 | 77 | if (init) {
|
@@ -195,7 +191,7 @@ int HCICordioTransportClass::begin()
|
195 | 191 | _rxBuf.clear();
|
196 | 192 |
|
197 | 193 | #if CORDIO_ZERO_COPY_HCI
|
198 |
| - ble::vendor::cordio::buf_pool_desc_t bufPoolDesc = CordioHCIHook::getDriver().get_buffer_pool_description(); |
| 194 | + ble::buf_pool_desc_t bufPoolDesc = CordioHCIHook::getDriver().get_buffer_pool_description(); |
199 | 195 | init_wsf(bufPoolDesc);
|
200 | 196 | #endif
|
201 | 197 |
|
|
0 commit comments