Commit 36e8144b authored by Johann Fischer's avatar Johann Fischer Committed by Fabio Baltieri
Browse files

usb: device: remove USB H4 Bluetooth function and sample

The Bluetooth HCI USB transport layer implementation is provided by
"subsys/usb/device/class/bluetooth.c". The USB H4 Bluetooth function
implements a non-standard transport layer. There is no known host-side
equivalent that uses this protocol.

Note that the H4 protocol functionality is also provided by the
"subsys/usb/device/class/bluetooth.c".

Since that there are no real USB H4 Bluetooth users, remove the
implementation and sample without deprecation.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 733241d7
Loading
Loading
Loading
Loading
+1 −1
Changes for doc/connectivity/usb/device/usb_device.rst: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -596,7 +596,7 @@ The following Product IDs are currently used:
+----------------------------------------------------+--------+
| :zephyr:code-sample:`bluetooth_hci_usb`            | 0x000B |
+----------------------------------------------------+--------+
| :zephyr:code-sample:`bluetooth_hci_usb_h4`         | 0x000C |
| Reserved (previously: bluetooth_hci_usb_h4)        | 0x000C |
+----------------------------------------------------+--------+
| Reserved (previously: wpan-usb)                    | 0x000D |
+----------------------------------------------------+--------+
+0 −7
Changes for samples/bluetooth/hci_usb_h4/CMakeLists.txt: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hci_usb_h4)

target_sources(app PRIVATE src/main.c)
+0 −25
Changes for samples/bluetooth/hci_usb_h4/README.rst: 0 added lines, 25 removed lines.
Original line number Diff line number Diff line
.. zephyr:code-sample:: bluetooth_hci_usb_h4
   :name: HCI H4 over USB
   :relevant-api: hci_raw bluetooth _usb_device_core_api usbd_api

   Turn a Zephyr board into a USB H4 Bluetooth dongle (Linux/BlueZ only).

Overview
********

Make a USB H4 Bluetooth dongle out of Zephyr. Requires USB device support from
the board it runs on (e.g. :ref:`nrf52840dk_nrf52840` supports both Bluetooth LE and
USB).

Requirements
************

* Bluetooth stack running on the host (e.g. BlueZ)
* A board with Bluetooth and USB support in Zephyr

Building and Running
********************
This sample can be found under :zephyr_file:`samples/bluetooth/hci_usb_h4` in
the Zephyr tree.

See :zephyr:code-sample-category:`bluetooth` samples for details.
+0 −13
Changes for samples/bluetooth/hci_usb_h4/prj.conf: 0 added lines, 13 removed lines.
Original line number Diff line number Diff line
CONFIG_STDOUT_CONSOLE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n

CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PID=0x000C
CONFIG_USB_DEVICE_BT_H4=y

# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does not follow normal flow control.
CONFIG_BT_BUF_CMD_TX_COUNT=10
+0 −15
Changes for samples/bluetooth/hci_usb_h4/sample.yaml: 0 added lines, 15 removed lines.
Original line number Diff line number Diff line
sample:
  name: Bluetooth over USB sample
tests:
  sample.bluetooth.hci_usb_h4:
    harness: bluetooth
    depends_on:
      - usb_device
      - ble
    tags:
      - usb
      - bluetooth
    # FIXME: exclude due to build error
    platform_exclude:
      - 96b_carbon/stm32f401xe
      - stm32l562e_dk
Loading