Skip to content

Commit 8f44b86

Browse files
jfischer-nokartben
authored andcommitted
samples: hci_uart_3wire: remove USB related code
There is no advantage to using the USB CDC ACM UART in this sample. Signed-off-by: Johann Fischer <[email protected]>
1 parent e42476f commit 8f44b86

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

samples/bluetooth/hci_uart_3wire/README.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ You can use following targets:
146146
Check the :zephyr:code-sample:`ble_direction_finding_connectionless_rx` and the
147147
:zephyr:code-sample:`ble_direction_finding_connectionless_tx` for more details.
148148

149-
Using a USB CDC ACM UART
150-
========================
151-
152-
The sample can be configured to use a USB UART instead. See :zephyr_file:`samples/bluetooth/hci_uart_3wire/boards/nrf52840dongle_nrf52840.conf`.
153-
154149
Using the controller with the Zephyr host
155150
=========================================
156151

samples/bluetooth/hci_uart_3wire/boards/nrf52840dongle_nrf52840.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

samples/bluetooth/hci_uart_3wire/src/main.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include <zephyr/init.h>
2121
#include <zephyr/drivers/uart.h>
2222

23-
#include <zephyr/usb/usb_device.h>
24-
2523
#include <zephyr/net_buf.h>
2624
#include <zephyr/bluetooth/bluetooth.h>
2725
#include <zephyr/bluetooth/l2cap.h>
@@ -751,13 +749,6 @@ static int hci_uart_init(void)
751749
{
752750
LOG_DBG("");
753751

754-
if (IS_ENABLED(CONFIG_USB_CDC_ACM)) {
755-
if (usb_enable(NULL)) {
756-
LOG_ERR("Failed to enable USB");
757-
return -EINVAL;
758-
}
759-
}
760-
761752
if (!device_is_ready(h5_dev)) {
762753
LOG_ERR("HCI UART %s is not ready", h5_dev->name);
763754
return -EINVAL;

0 commit comments

Comments
 (0)