Skip to content

Commit 0baa92d

Browse files
committed
BLE: Expose HCI driver in public API.
1 parent dd54bae commit 0baa92d

File tree

23 files changed

+25
-24
lines changed

23 files changed

+25
-24
lines changed

connectivity/FEATURE_BLE/source/impl/driver/CordioHCIDriver.h renamed to connectivity/FEATURE_BLE/include/ble/driver/CordioHCIDriver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <stddef.h>
2121
#include <stdint.h>
2222
#include <BLETypes.h>
23+
// FIXME: make this invisible!
2324
#include "wsf_buf.h"
2425
#include "CordioHCITransportDriver.h"
2526
#include "ble/common/blecommon.h"

connectivity/FEATURE_BLE/source/impl/driver/H4TransportDriver.h renamed to connectivity/FEATURE_BLE/include/ble/driver/H4TransportDriver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <stdint.h>
2323
#include "mbed.h"
24-
#include "CordioHCITransportDriver.h"
24+
#include "driver/CordioHCITransportDriver.h"
2525

2626
namespace ble {
2727

connectivity/FEATURE_BLE/source/impl/doc/HCIAbstraction.md renamed to connectivity/FEATURE_BLE/include/ble/driver/doc/HCIAbstraction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ in the future with an implementation of the H5 interface. However, there is no
2525
plan to provide the SDIO implementation at the moment.
2626

2727
This interface is defined in the header file
28-
[CordioHCITransportDriver.h](../driver/CordioHCITransportDriver.h)
28+
[CordioHCITransportDriver.h](../CordioHCITransportDriver.h)
2929

3030
## CordioHCIDriver
3131

@@ -35,10 +35,10 @@ The responsibilities of this driver are:
3535
* Handle the reset/startup sequence of the Bluetooth controller.
3636

3737
This interface is defined in the header file
38-
[CordioHCIDriver.h](../driver/CordioHCIDriver.h)
38+
[CordioHCIDriver.h](../CordioHCIDriver.h)
3939

4040
A partial implementation is present in the file
41-
[CordioHCIDriver.cpp](../driver/CordioHCIDriver.cpp). It defines the function
41+
[CordioHCIDriver.cpp](../../../../source/impl/driver/CordioHCIDriver.cpp). It defines the function
4242
delivering memory to the stack and a complete reset sequence. However, it does
4343
not define any initialization for the Bluetooth controller, this part being
4444
specific to the controller used.
File renamed without changes.

connectivity/FEATURE_BLE/source/impl/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Build time configuration may be controlled through options set in:
2929

3030
## Documentation
3131

32-
* [HCI architecture](doc/HCIAbstraction.md)
33-
* [Porting guide](doc/PortingGuide.md)
32+
* [HCI architecture](../../include/ble/driver/doc/HCIAbstraction.md)
33+
* [Porting guide](../../include/ble/driver/doc/PortingGuide.md)

connectivity/FEATURE_BLE/source/impl/driver/CordioHCIDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "ble/BLE.h"
2121
#include "ble/Gap.h"
22-
#include "CordioHCIDriver.h"
22+
#include "ble/driver/CordioHCIDriver.h"
2323
#include "hci_api.h"
2424
#include "hci_cmd.h"
2525
#include "hci_core.h"

connectivity/FEATURE_BLE/source/impl/driver/CordioHCITransportDriver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include <algorithm>
1818
#include <limits>
1919

20-
#include "CordioHCITransportDriver.h"
21-
#include "CordioHCIDriver.h"
20+
#include "ble/driver/CordioHCITransportDriver.h"
21+
#include "ble/driver/CordioHCIDriver.h"
2222

2323
extern "C" void hciTrSerialRxIncoming(uint8_t *pBuf, uint8_t len);
2424

0 commit comments

Comments
 (0)