diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.cpp index 5ceff2b12e..431876efdc 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#if DEVICE_SERIAL && DEVICE_SERIAL_FC + #include "H4TransportDriver.h" namespace ble { @@ -68,3 +70,5 @@ void H4TransportDriver::on_controller_irq() } // namespace cordio } // namespace vendor } // namespace ble + +#endif diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.h b/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.h index 6e6e1d4b01..e90325b472 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.h +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/driver/H4TransportDriver.h @@ -17,6 +17,8 @@ #ifndef CORDIO_H4_TRANSPORT_DRIVER_H_ #define CORDIO_H4_TRANSPORT_DRIVER_H_ +#if (DEVICE_SERIAL && DEVICE_SERIAL_FC) || defined(DOXYGEN_ONLY) + #include #include "mbed.h" #include "CordioHCITransportDriver.h" @@ -27,6 +29,9 @@ namespace cordio { /** * Implementation of the H4 driver. + * + * @note This HCI transport implementation is not accessible to devices that do + * not expose serial flow control. */ class H4TransportDriver : public CordioHCITransportDriver { public: @@ -73,4 +78,6 @@ private: } // namespace vendor } // namespace ble +#endif + #endif /* CORDIO_H4_TRANSPORT_DRIVER_H_ */