Skip to content

Commit

Permalink
samples: hci_uart_3wire: remove USB related code
Browse files Browse the repository at this point in the history
There is no advantage to using the USB CDC ACM UART in this sample.

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no authored and kartben committed Dec 12, 2024
1 parent e42476f commit 8f44b86
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions samples/bluetooth/hci_uart_3wire/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ You can use following targets:
Check the :zephyr:code-sample:`ble_direction_finding_connectionless_rx` and the
:zephyr:code-sample:`ble_direction_finding_connectionless_tx` for more details.

Using a USB CDC ACM UART
========================

The sample can be configured to use a USB UART instead. See :zephyr_file:`samples/bluetooth/hci_uart_3wire/boards/nrf52840dongle_nrf52840.conf`.

Using the controller with the Zephyr host
=========================================

Expand Down

This file was deleted.

9 changes: 0 additions & 9 deletions samples/bluetooth/hci_uart_3wire/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include <zephyr/init.h>
#include <zephyr/drivers/uart.h>

#include <zephyr/usb/usb_device.h>

#include <zephyr/net_buf.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/l2cap.h>
Expand Down Expand Up @@ -751,13 +749,6 @@ static int hci_uart_init(void)
{
LOG_DBG("");

if (IS_ENABLED(CONFIG_USB_CDC_ACM)) {
if (usb_enable(NULL)) {
LOG_ERR("Failed to enable USB");
return -EINVAL;
}
}

if (!device_is_ready(h5_dev)) {
LOG_ERR("HCI UART %s is not ready", h5_dev->name);
return -EINVAL;
Expand Down

0 comments on commit 8f44b86

Please sign in to comment.