You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/FEATURE_BLE/targets/TARGET_CORDIO/doc/PortingGuide.md
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ There are two main steps to enable the Mbed BLE Cordio port:
4
4
5
5
1. Configure your target to include Cordio BLE port and Cordio libraries during the build process.
6
6
7
-
1. Implement the `CordioHCIDriver` class targeting the Bluetooth controller.
7
+
2. Implement the `CordioHCIDriver` class targeting the Bluetooth controller.
8
8
9
9
### Configure the target
10
10
@@ -42,7 +42,8 @@ Include an HCI driver for the BLE module used by the target, and a factory funct
42
42
1. Navigate to the folder of the BLE API that hosts the target port `features/FEATURE_BLE/targets`.
43
43
44
44
1. Create a folder containing the port code to isolate it from other code.
45
-
* Begin this folder's name with `TARGET_` and the rest of the name in capital letters.
45
+
46
+
1. Begin this folder's name with `TARGET_` and the rest of the name in capital letters.
46
47
47
48
#### Create the HCI driver
48
49
@@ -54,7 +55,9 @@ More information about the architecture can be found in [HCI abstraction archite
54
55
55
56
<spanclass="notes">**Note:** If the Bluetooth controller uses an H4 communication interface and the host exposes serial flow control in Mbed, you can skip this step. Use the class `ble::vendor::cordio::H4TransportDriver` as the transport driver.</span>
56
57
57
-
To code an empty transport driver:
58
+
The transport driver shall inherit publicly from the base class `CordioHCITransportDriver`.
59
+
60
+
To code a basic transport driver:
58
61
59
62
```
60
63
#include "CordioHCITransportDriver.h"
@@ -84,8 +87,6 @@ private:
84
87
} // namespace ble
85
88
```
86
89
87
-
It inherits publicly from the base class `CordioHCITransportDriver`.
88
-
89
90
##### Functions
90
91
91
92
***Initialization/termination**: The functions `initialize` and `terminate` are responsible for initializing and terminating the transport driver. It is not necessary to initialize the transport in the constructor.
0 commit comments