Commit 2534ab11 authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by Johan Hedberg
Browse files

USB: Add driver and PID for Bluetooth H4



This adds USB_PID_BLE_HCI_H4_SAMPLE along with it driver which uses H4
over bulk endpoints.

Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 8c749ffc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ The following Product IDs are currently used:
* :option:`CONFIG_USB_PID_MASS_SAMPLE`
* :option:`CONFIG_USB_PID_TESTUSB_SAMPLE`
* :option:`CONFIG_USB_PID_WEBUSB_SAMPLE`
* :option:`CONFIG_USB_PID_BLE_HCI_H4_SAMPLE`

USB device controller drivers
*****************************
+4 −0
Original line number Diff line number Diff line
@@ -44,3 +44,7 @@ config USB_PID_WEBUSB_SAMPLE
config USB_PID_BLE_HCI_SAMPLE
	hex
	default 0x000B

config USB_PID_BLE_HCI_H4_SAMPLE
	hex
	default 0x000C
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ config BT_HCI_RAW
config BT_HCI_RAW_RESERVE
	int "Buffer headroom needed for HCI transport"
	depends on BT_HCI_RAW
	default 1 if USB_DEVICE_BT_H4
	default 0
	help
	  This option is used by the HCI raw transport implementation to
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
zephyr_sources_ifdef(CONFIG_USB_CDC_ACM cdc_acm.c)
zephyr_sources_ifdef(CONFIG_USB_MASS_STORAGE mass_storage.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_DFU_CLASS usb_dfu.c)
zephyr_sources_ifdef(CONFIG_USB_DEVICE_LOOPBACK loopback.c)

+7 −0
Original line number Diff line number Diff line
@@ -107,6 +107,13 @@ config BLUETOOTH_BULK_EP_MPS
	help
	  Bluetooth device class bulk endpoint size

config USB_DEVICE_BT_H4
	bool "USB Bluetooth H4 Device Class Driver"
	select BT
	select BT_HCI_RAW
	help
	  USB Bluetooth H4 device class driver

config USB_DEVICE_LOOPBACK
	bool "USB Loopback Function Driver"
	help
Loading