Skip to content

Commit

Permalink
usb: device: remove USB H4 Bluetooth function and sample
Browse files Browse the repository at this point in the history
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: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no committed Dec 16, 2024
1 parent 5dfd41e commit 0448609
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 355 deletions.
2 changes: 1 addition & 1 deletion doc/connectivity/usb/device/usb_device.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
+----------------------------------------------------+--------+
Expand Down
7 changes: 0 additions & 7 deletions samples/bluetooth/hci_usb_h4/CMakeLists.txt

This file was deleted.

25 changes: 0 additions & 25 deletions samples/bluetooth/hci_usb_h4/README.rst

This file was deleted.

13 changes: 0 additions & 13 deletions samples/bluetooth/hci_usb_h4/prj.conf

This file was deleted.

15 changes: 0 additions & 15 deletions samples/bluetooth/hci_usb_h4/sample.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions samples/bluetooth/hci_usb_h4/src/main.c

This file was deleted.

1 change: 0 additions & 1 deletion subsys/usb/device/class/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
zephyr_sources_ifdef(CONFIG_USB_CDC_ACM cdc_acm.c)
zephyr_sources_ifdef(CONFIG_USB_MASS_STORAGE msc.c)
zephyr_sources_ifdef(CONFIG_USB_DEVICE_BLUETOOTH bluetooth.c)
zephyr_sources_ifdef(CONFIG_USB_DEVICE_BT_H4 bt_h4.c)
zephyr_sources_ifdef(CONFIG_USB_DEVICE_LOOPBACK loopback.c)

add_subdirectory_ifdef(CONFIG_USB_DEVICE_AUDIO audio)
Expand Down
9 changes: 0 additions & 9 deletions subsys/usb/device/class/Kconfig.bt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,3 @@ config USB_DEVICE_BLUETOOTH_VS_H4
help
Enables vendor command to switch to H:4 transport using the bulk
endpoint.

config USB_DEVICE_BT_H4
bool "USB Bluetooth H4 Device Class support"
select BT
select BT_HCI_RAW
select BT_HCI_RAW_H4
select BT_HCI_RAW_H4_ENABLE
help
USB Bluetooth H4 device class support
261 changes: 0 additions & 261 deletions subsys/usb/device/class/bt_h4.c

This file was deleted.

0 comments on commit 0448609

Please sign in to comment.