File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
features/FEATURE_BLE/targets/TARGET_CORDIO Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ More information about the architecture can be found in the
93
93
94
94
#### HCITransport
95
95
96
- > ** Note:** If the Bluetooth controller uses an H4 communication interface, this
97
- step can be skipped.
96
+ > ** Note:** If the Bluetooth controller uses an H4 communication interface and
97
+ the host exposes serial flow control in mbed then this step can be skipped and
98
+ the class ` ble::vendor::cordio::H4TransportDriver ` can be used as the transport
99
+ driver.
98
100
99
101
An empty transport driver can be coded as:
100
102
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ #if DEVICE_SERIAL && DEVICE_SERIAL_FC
18
+
17
19
#include " H4TransportDriver.h"
18
20
19
21
namespace ble {
@@ -68,3 +70,5 @@ void H4TransportDriver::on_controller_irq()
68
70
} // namespace cordio
69
71
} // namespace vendor
70
72
} // namespace ble
73
+
74
+ #endif
Original file line number Diff line number Diff line change 17
17
#ifndef CORDIO_H4_TRANSPORT_DRIVER_H_
18
18
#define CORDIO_H4_TRANSPORT_DRIVER_H_
19
19
20
+ #if (DEVICE_SERIAL && DEVICE_SERIAL_FC) || defined(DOXYGEN_ONLY)
21
+
20
22
#include < stdint.h>
21
23
#include " mbed.h"
22
24
#include " CordioHCITransportDriver.h"
@@ -27,6 +29,9 @@ namespace cordio {
27
29
28
30
/* *
29
31
* Implementation of the H4 driver.
32
+ *
33
+ * @note This HCI transport implementation is not accessible to devices that do
34
+ * not expose serial flow control.
30
35
*/
31
36
class H4TransportDriver : public CordioHCITransportDriver {
32
37
public:
@@ -73,4 +78,6 @@ class H4TransportDriver : public CordioHCITransportDriver {
73
78
} // namespace vendor
74
79
} // namespace ble
75
80
81
+ #endif
82
+
76
83
#endif /* CORDIO_H4_TRANSPORT_DRIVER_H_ */
You can’t perform that action at this time.
0 commit comments